it seems that some of my php applications require php 5.2 and some require php 5.3. is there a way to configure apache (v2.2.14) that one virtualhost will work with one php library and a different virtualhost will require a different one?
currently the only solution that i found is to install two apaches and two phps and each of the apache will reside in a different port.
thanks
Yes it is possible. You should use fastcgi mode by "FcgidWrapper" directive in apache configuration. This way you can define different fastcgi handler daemons for different url extension, path, or even virtual hosts. In the background, each fastcgi daemon then can easily executes different php versions.
If you would use PHP 4 and 5 it would be easy to manipulate what module you want to use with:
So there 3 ways to deal with this problem:
You can also run 2 servers on different ports and use a proxy
I use PHPfarm to run many PHP versions on one apache instance. Works absolutely fine.
You basically install alternative PHP versions as CGI and use them to handle
.php
files in certain vhosts.