OS X Mavericks Breaks Apache/PHP

I had some issues with my local Apache/PHP dev sites after installing OS X Mavericks. To get back up and running again I had to do the following.

Re-enable PHP5
Uncomment the PHP5 module in the Apache configuration file httpd.conf. The following line should be uncommented:

LoadModule php5_module libexec/apache2/libphp5.so

Include the Virtual Hosts File
I have my virtual hosts configured using the httpd-vhosts.conf file so I had to uncomment the following line in httpd.conf:

Include /private/etc/apache2/extra/httpd-vhosts.conf

Setup the Directory Restrictions
Instead of tweaking the general settings in httd.conf, I specified what to open up right on my site’s virtual host settings in httpd-vhost.conf:

<VirtualHost *:80>
    DocumentRoot "PATH_TO_SITE
    ServerName site.local
    <Directory "PATH_TO_SITE">
        Options Indexes FollowSymLinks Includes ExecCGI
        AllowOverride All
        Order deny,allow
        Allow from all

Restart Apache

sudo apachectl restart

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )


Connecting to %s