Web Hosting Talk







View Full Version : Install additonal copy of PHP in Virtual Host?


Megarry
12-16-2003, 11:29 AM
I have a script running on my server that is written for PHP 4.0.6, it is a very complex script and I'm not in a position to convert it to the latest php at the moment.

That being said, I now have another script that is written for PHP 4.1.x and won't run on the older version of PHP. Is it possible to install a second copy of PHP for just one web site that is a newer version? If so, does anyone have a link to such a quide?

Dennis

Loon
12-16-2003, 02:48 PM
You shouldn't really have any problems running the older script on the more recent version, you wont be able to install your "own" copy of php on a shared server. Having said that, even 4.1.x is pretty outdated also.

carrotweb
12-16-2003, 06:49 PM
Er, you can actually. It's just a matter of configuring Apache correctly to pass the php requests for your domain to the right instance of PHP.

If you manage your own server, then that's readily accomplished. Might be a little tough to get a shared host to do it.

UH-Matt
12-16-2003, 06:55 PM
Ensim allows you to run many different php installations.

If a site is in "High Security" mode then it runs a CGI version of php for that virtual site only. If Its in normal or low mode then the servers module version is used...