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 <[EMAIL PROTECTED] > 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

Reply via email to