Re: Install of PHP 4 and PHP 5

From: Date: Fri, 17 Jun 2005 16:00:31 +0000
Subject: Re: Install of PHP 4 and PHP 5
References: 1  Groups: php.install 
Request: Send a blank email to php-install+get-16304@lists.php.net to get a copy of this message
Cedric, I have not actually done this myself, but in theory, what you need to do is add an 'AddType' line for both versions of php. It appears that one can run as a module, but the other would need to run as a cgi (cgi would be slightly slower) Here is what I found on http://www.rshweb.biz/faq/php.html#How%20can%20I%20use%20multiple%20versions%20of%20PHP *Q: How can I use multiple versions of PHP?* *A: *You will need to place the following lines in the httpd.conf file for each version of PHP: #PHP5 AddType application/x-httpd-php .php5 #### #PHP4 AddType application/x-httpd-php4 .php4 Action application/x-httpd-php4 /cgi-bin/php.cgi This means that the php4 version must be built as a cgi binary On 6/17/05, Cédric Petter <cedric.petter@scripts-web.net> wrote: > > Hi, i'm new in this list and I've a question. > > I've install httpd 2.0.54 and I want to install PHP 4 and PHP 5 in the > same Web Server > > I've already install php 4 and 5, but I don't know how tell to apache to > use the both soft, with 2 file extensions ! > > Does someone could help me ??? > > Cédric >

« previous php.install (#16304) next »