You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@httpd.apache.org by Giuseppe Battinelli <gi...@gmail.com> on 2015/06/20 12:12:33 UTC
[users@httpd] older version of php for a specific virtual host
Dear all,
I need urgently your help.
I've a web server windows server 2008 on which I installed wamp 2.4.9.
Everything works fine and I manage several site through virtual hosts.
Php version is 5.4.
Problem is I have a old site (managed through virtual host) that needs
php 5.3.8 to run (template doesn't work from 5.4.0 to upper).
Is it possible give instruction to one virtual host to use another
version of php?
If yes could you please post some code?
Thanks
Re: [users@httpd] older version of php for a specific virtual host
Posted by Frederik Nosi <fr...@postecom.it>.
Hi Giuseppe,
On 06/20/2015 12:12 PM, Giuseppe Battinelli wrote:
> Dear all,
> I need urgently your help.
> I've a web server windows server 2008 on which I installed wamp 2.4.9.
> Everything works fine and I manage several site through virtual hosts.
> Php version is 5.4.
> Problem is I have a old site (managed through virtual host) that needs
> php 5.3.8 to run (template doesn't work from 5.4.0 to upper).
> Is it possible give instruction to one virtual host to use another
> version of php?
Depends on how you're "connecting" Apache with PHP. There can be two ways:
1) Most probably you're using mod_php. i dont think it's possible to
have two versions of PHP in the same Apache instace as it works "in
proccess" with apache. In this case you can get around this limit having
two instances of Apache with each having a different version of mod_php,
and putting in front another Apache instance wich reverse proxies to the
other two based on the Virtual Host.
2) Apache with fastcgi, in this case you can use the same Apache
instance to serve requests to two different PHP pools independent of
eachother.
> If yes could you please post some code?
Depends on your config as i said before.
> Thanks
Frederik