Developing sites locally after switching to OS X 10.9
Yesterday, I upgraded to Mavericks and went to hack on one of my local sites. I was greeted by the rather ironic "It Works!" apache page instead of the site I was expecting.
This is no problem to sort out. OS X 10.9 replaces your old
/private/etc/php.ini.default files with its own. Just replace these new files with your old ones, restart apache and you're good to go:
cd /private/etc/ mv apache2/httpd.conf.pre-update apache2/httpd.conf mv php.ini.default-5.2-previous php.ini.default
You might need to
sudo these commands.
Check out this post for information on how to set up apache and php from scratch on OS X Mavericks.