Build and install PHP 5.3.29 from source on an Ubuntu 14.04 LTS server

Few days ago, the PHP development team announced the availability of a new PHP 5.3.29 version. This release contains about 25 potentially security related fixes back-ported from PHP 5.4 and PHP 5.5. So, if you’re running some older CMSes, scripts or web applications or whatever, I strongly recommend you make them compatible with the latest PHP version available.

In the following write-up, I’ll cover the steps I used to upgrade PHP to version 5.3.29. I’m running two different PHP versions simultaneously on an Ubuntu 14.04 LTS based server and as you can imagine, the PHP 5.3 version has been built from source so I had to re-compile PHP in order to upgrade.