OS X Yosemite: How to Set Up Apache, MySQL, and PHP with Homebrew

Love this setup, been using it for a while now. Upgraded to OSX Sierra recently and wanted to post some needed adjustments to set this up for that.

First, for steps 2 and 5 I replaced




for the path to the apache files. And on step on line 271 I added an extra clause for Sierra to use xcode:

<IfModule dir_module>
DirectoryIndex index.html index.php
<FilesMatch \.php$>
SetHandler application/x-httpd-php

This are the only changes I think are relevant to this process. I got these from this article I found while troubleshooting after upgrading from Yosemite to Sierra:


One clap, two clap, three clap, forty?

By clapping more or less, you can signal to us which stories really stand out.