I decided to upgrade to Mavericks today. Things went pretty smooth, right up until trying to continue work. I don’t use Vagrant or MAMP, but rather the built in Apache2 (with PHP, etc installed via Homebrew).
My VirtualHosts in /etc/apache2/extra/httpd-vhosts.conf
were kept, but going to http://localhost/ took me to the default “It Works!” page. I quickly discovered that the httpd.conf file was reset. Stuff I had to do to fix it below.
- In
httpd.conf
, uncommentInclude /private/etc/apache2/extra/httpd-vhosts.conf
- In
httpd.conf
, include the path to mod_php, in my caseLoadModule php5_module /usr/local/Cellar/php54/5.4.19/libexec/apache2/libphp5.so
- Create a file
<yourusername>.conf
in/etc/apache2/users
with content
1 2 3 4 5 6 |
|
- Chown the file
sudo chown root:wheel /etc/apache2/users/<yourusername>.conf
- Restart Apache with
sudo apachectl restart
That fixed it for me.