3
votes

Is there a chance to have various versions of PHP (right now I'd like to have 5.2 and 5.3 side by side) running on the same machine just within different vHosts? I'm running a Debian server and the PHP packages come from dotdeb.org - is there a easy way to achieve such a setup? Thanks!

1

1 Answers

1
votes

Install to differing module names such as

mod_php52
mod_php53

Don't forget to specify differing config directories if you build using ./configure

In vhost 1

LoadModule mod_php52 modules/mod_php52.so

In vhost 2

LoadModule mod_php53 modules/mod_php53.so

Warning I have not tried this, and there will likely be all sorts of library problems, so be careful that both modules don't try and use the same libs. Build into distinct directories as many of the dependencies as you can. It could get tricky!