Wednesday, 23 October 2013

Apache, MySQL and PHP in OS X Mavericks 10.9

Unfortunately upgrading from OS X Mountain Lion ( 10.8) to Mavericks (10.9) stopped my AMP (Apache, MySQL, PHP) installation working.

Luckily, this is just down to an apache configuration file being overwritten and is easy to correct...

1. Edit Apache Configuration

sudo vi /private/etc/apache2/httpd.conf

a. Uncomment following line to re-enable virtual hosts: -

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

b. Uncomment following line to re-enable PHP: -

    LoadModule php5_module libexec/apache2/

2. Restart Apache

sudo apachectl restart

There was no need to change any of my MySQL installation, this continued working after the installation.


  1. Top man! I lost a couple of hours sleep last night when my Mavericks install crashed and got stuck in loop (turns out I just needed to free up some disk space). Spent the day in safe mode and tried another install tonight. This was the missing piece and saved me a lot of hassle. Thanks!

  2. It also upgrades PHP to 5.4 and deletes your php.ini. So make sure you make a copy.