User:Brion VIBBER/Mac homebrew setup

Some notes on installation on macOS High Sierra using Homebrew for dependencies; then follow directions from Download from Git to get stuff.

Avoiding using Apple's provided PHP and Apache packages as they often get surprise-broken on upgrades.

Homebrew

 * Install Xcode from App Store
 * Install brew from directions at https://brew.sh/
 * Install brew from directions at https://brew.sh/

Core
Apache:

PHP:
 * manually edit  as described in the above to enable .php files
 * (optional if not using memcached)
 * manually edit  as described in the above to enable .php files
 * (optional if not using memcached)
 * (optional if not using memcached)

Composer:

MySQL:

Memcached:
 * (optional, but recommended since APCu's in-process cache won't be available to CLI scripts such as job queue)

ImageMagick:

TimedMediaHandler
must be installed with libvorbis, libvpx, opus, and theora enabled manually:



Control
Start:

Stop:

Job queue:
 * runs in foreground
 * fixme: get a reasonable runner and include it
 * fixme: get a reasonable runner and include it

Security
The web and database servers will run as your regular user account unless you change it. This may be "surprising" for security but is kind of convenient for development work, as command-line manipulation of your files is the same.

Apache binds to port 8080 on all interfaces by default. This can be locked to localhost by editing

MySQL installs without a root password by default, but is local-only (no network port enabled).

If enabling uploads, consider disabling PHP execution in the images/ dir of the checkout, etc.