So, I recently updated to Server 3.0 and my PHP installation was obliterated. Since PHP in Mavericks server is something like 5.4, I decided to take this opportunity to upgrade to 5.5.5 through the liil project. To upgrade, fire up Terminal.app and run this script:
curl -s http://php-osx.liip.ch/install.sh | bash -s 5.5
Still in Terminal.app, use pico and modify the Apache .conf file:
sudo pico /Library/Server/Web/Config/apache2/httpd_server_app.conf
While you’re in pico, press “control” and “w” and search for “php5”. Add a hashtag to the line your search results hit and add the line below, as shown here:
#LoadModule php5_module libexec/apache2/libphp5.so
LoadModule php5_module /usr/local/php5/libphp5.so
Finally, press “control” and “x” and save your changes. To reload with your upgraded PHP, run the following:
sudo apachectl restart
To be sure the syntax in your modified .conf is working properly, you can test it this way:
sudo apachectl -t