Hello list,
I have been tried for a couple of days now to get php4 and php5 to run on the same apache instance, w/o much success (apache 1.3.33, php 4.3.11, php 5.0.4 on a freebsd 4.9 box). I have based my tries mainly on this article: http://www.digitalsandwich.com/archives/14-PHP5-and-PHP4-Running-on-SAME-apache-server.html but I always got segmentation fault when trying to access a .php page from the webserver (with both LoadModule php4_module and LoadModule php5_module directives active in my apache config file). I'm pretty sure that php4 and php5 can coexist happily on the same apache instance, given enough symbol names are changed in order to avoid conflicts. So, could anyone please give me a list of the symbols which need to be modified so that I can load both modules simultaneously? Up until now I modified in my PHP5's source code only the sapi/apache/mod_php5.c file, and set the following symbol names: application/x-httpd-php -> application/x-httpd-php5 application/x-httpd-php-source -> application/x-httpd-php5-source php_value -> php5_value php_flag -> php5_flag php_admin_value -> php5_admin_value php_admin_flag -> php5_admin_flag As about all the other possibilities (running two apache instances on two different ports/ips or running one php version as cgi) -- they are really not an option for me. Thanks, bgd