PHP 5.2 and 5.3 side-by-side on Apache and Ubuntu 10.10

12

Posted on : 31-10-2010 | By : Brett | In : General, Linux, PHP

Painlessly run version 5.2.x and 5.3.x on the same apache port simultaneously.

Several persons have indicated that they could not get this working per my instructions below. For a more thorough explanation, see Chris Breidert’ s follow-up blog post. One of these days, when I get more time, I’ll go through a vanilla installation and add any additional instructions, etc.

I’d just upgraded to Ubuntu 10.10 on my PC. However, the default PHP package was version 5.3.x and I needed 5.2.x. Some projects needed the newest version, others would be crippled by it. While looking for a way to have two versions of PHP running simultaneously on Ubuntu 10.10, I struck success.

In this post, I’ll explain step-by-step how you too can  build a development platform where you can work on PHP 5.2.x and 5.3.x projects simultaneously–without ever having to restart Apache. Read the rest of this entry »