Search code examples
phplamp

How can one run multiple versions of PHP 5.x on a development LAMP server?


I need to test my PHP applications with multiple versions of PHP 5.x, such as PHP 5.0.0 and PHP 5.2.8.

Is there a way that I can configure a development LAMP server so I can quickly test applications with multiple versions of PHP5?


Solution

  • One way to do this is to have your main version of php set up with mod_php and run all of the others through fast cgi on different ports (i.e. 81, 82, 83 etc). This won't guarantee totally consistent behavior though.