Re: Re: php5 + php4 on same server

From: Date: Fri, 25 Jul 2003 22:42:21 +0000
Subject: Re: Re: php5 + php4 on same server
References: 1 2  Groups: php.general 
Request: Send a blank email to php-general+get-156953@lists.php.net to get a copy of this message
<20030725223922.87037.qmail@pb1.pair.com> Comex: > <29793.1059171551@www47.gmx.net> > Thomas Hochstetter: >> Hi guys. >> >> Sorry, i know that was discussed earlier this month ... i just looked >> for the posting again in the archives ... i could only find the >> question post ... but there was an answer. >> >> So, how do you setup the server again to have php4 run on the :80 >> port and php5 on :8080 (apache server). Does it collide? >> >> Thanks >> Thomas > > I've done it... but you have to run one as CGI, one can be module or > CGI. To run one as CGI and one as module: > > LoadModule php5_module "/path/to/php4apache.dll" > ScriptAlias /php/ "/path/to/php4/folder/" > AddType application/x-httpd-php .php5 > AddType application/x-httpd-php4 .php4 > Action application/x-httpd-php4 /php/php.exe (I'm using windows) > > Or to run both as CGI: > ScriptAlias /php4/ "/path/to/php4/folder" > ScriptAlias /php5/ "/path/to/php5/folder" > AddType application/x-httpd-php .php5 > AddType application/x-httpd-php4 .php4 > Action application/x-httpd-php4 /php4/php.exe > Action application/x-httpd-php /php5/php.exe Oh, I'm stupid! That is how you have .php5 as php5 and .php4 as php4... if you're using virtual hosts, you just replace: AddType application/x-httpd-php4 .php4 with: AddType application/x-httpd-php4 .php and put the AddType in the <VirtualHost>.

« previous php.general (#156953) next »