Re: php5 + php4 on same server
| From: | Comex | Date: | Fri, 25 Jul 2003 22:39:17 +0000 |
| Subject: | Re: php5 + php4 on same server | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-156951@lists.php.net to get a copy of this message | ||
<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