[PHP] php4 and php5 on the same apache server
How can I run both php4 and php5 on the same apache server? Could I do it like this: AddType application/x-httpd-php .php AddType application/x-httpd-php5 .php5 And somehow tell php5 to use application/x-httpd-php5 -- Best regards, Jacob Friis Larsen www.webcom.dk | www.journster.com -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] php4 and php5 on the same apache server
Hello Jacob, i've been trying to achieve the very same result but without success. I tried even modifying sources of sapi/apache2(handler|filter)/sapi_apache2.c and relatives but without success. Mime type can be modified without any problem and it compiles fine but then when I tried to parse PHP5 file there is a segfault. I think some PHP developer could explain what is going on actually. lp B. On Monday 13 of September 2004 14:30, Jacob Friis Larsen wrote: How can I run both php4 and php5 on the same apache server? Could I do it like this: AddType application/x-httpd-php .php AddType application/x-httpd-php5 .php5 And somehow tell php5 to use application/x-httpd-php5 -- Best regards, Jacob Friis Larsen www.webcom.dk | www.journster.com -- Best regards, Bostjan Skufca system administrator Domenca d.o.o. Phone: +386 4 5835444 Fax: +386 4 5831999 http://www.domenca.com -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] php4 and php5 on the same apache server
Jacob Friis Larsen wrote: How can I run both php4 and php5 on the same apache server? Could I do it like this: AddType application/x-httpd-php .php AddType application/x-httpd-php5 .php5 And somehow tell php5 to use application/x-httpd-php5 The approach I use is as follows: On port 80 I run an Apache instance with PHP4 On port 81 I run an Apache instance with PHP5 Via an Apache rewriterule I rewrite all .php5 calls to the other webserver (by proxy), and therefore transparent. Like this (not sure, dont have the config at hand right now): RewriteEngine On RewriteRule (.*)\.php5$ http://%{HTTP_HOST}:81$1.php Erwin Kerk Webdeveloper -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] php4 and php5 on the same apache server
It is possible if one is CGI. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php