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.



4:32 pm
Seeing this website tells me just how much I don’t know yet. I don’t even know the difference between an original configure of a php install and what it means to re-compile your php. Could anyone give me a simple explanation? Also, I don’t understand the comment above to execute a “sudo make install” from there. What is “there”? Is it before you configure php or is it after? Sorry if this sounds stupid but I’ve been trying to learn all this stuff about PHP, Apache, how to get PHP to recompile with mcryt extension (my biggest goal) and I’m a late bloomer. I’m in my 40’s trying to learn this stuff and finding it overwhelming. Thanks for any help anyone can provide me.
4:46 pm
This page is only for people who have installed PHP using the page http://diymacserver.com/installing-php/ and want to update to a newer version. To get a grip of what to do just start from the beginning http://diymacserver.com/docs/ and you’ll learn