Entry
Can I install both PHP3 and PHP4?
Why would I install multiple versions of PHP simultaneously?
Can I install multiple cgi versions of PHP?
Sep 28th, 2000 09:41
Jeff Frohwein, Nathan Wallace, http://www.valleyasp.com
Both as Module, no.
^^Incorrect. :) You can install both PHP3 & PHP4 as modules.
To do this you need to add the option --enable-versioning
to the PHP ./configure compile options for both PHP3 and
PHP4 compiles and the following to httpd.conf:
LoadModule php3_module libexec/libphp3.so
LoadModule php4_module libexec/libphp4.so
AddModule mod_php3.c
AddModule mod_php4.c
AddType application/x-httpd-php3 .php3
AddType application/x-httpd-php .php4 .php
In this case, .php will default to PHP4.
One as Module, one as CGI stand-alone, yes. Actually, you could compile
and install every version of PHP ever released as a CGI, all with
different extensions, and perform regression testing against each, all
on one box. Have fun. :-)
Why would you want to do it?
- To migrate in a stable fashion from one to the other.
- To test functionality differences.
- Regression testing.
- Because it's there.