This is a short description of the steps you need to follow to update your installation of PHP. This is only useful if you followed my installation instructions for PHP.

To upgrade a PHP installation you download the latest version of PHP and follow the normal installation instructions including the ‘sudo make install‘. Make sure you use the same ./configure statement as you used earlier otherwise you might change locations of items.

The new version will activate when you restart Apache. You can use the command ‘sudo /usr/local/apache2/bin/apachectl restart’ to restart Apache.

If something has gone wrong and you want to revert to your previous version you can go to the source directory of the previous PHP installation and execute a ‘sudo make install‘ from there and restart Apache again. All should be well again.