faqts : Computers : Programming : Languages : PHP : General Information : About PHP

+ Search
Add Entry AlertManage Folder Edit Entry Add page to http://del.icio.us/
Did You Find This Entry Useful?

40 of 49 people (82%) answered Yes
Recently 8 of 10 people (80%) answered Yes

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.