[Gllug] php4 and apache

Bruce Richardson itsbruce at uklinux.net
Mon Apr 15 10:39:52 UTC 2002


On 15/04/02, 11:12:20, Stephen Harker <steve at pauken.co.uk> wrote regarding 
[Gllug] php4 and apache:


> Hello all
> How do I set up different versions of php4 to run under apache at the
> same time.

The AddHandler directive can be placed within Directory or Virtual Host 
sections of httpd.conf, or in .htaccess if the appropriate overrides are 
allowed.  So you can have one version of of php serving one part of the 
file tree and another version serving other branches.  Then he just 
copies the scripts to two different locations and tests them in each.

You could do this relatively painlessly by installing the apache module 
package for one version of php4 and the php4-cgi package for the other 
version.  This would probably avoid nasty conflicts.

-- 

Bruce




-- 
Gllug mailing list  -  Gllug at linux.co.uk
http://list.ftech.net/mailman/listinfo/gllug




More information about the GLLUG mailing list