jay3ld Posted July 19, 2007 Share Posted July 19, 2007 I have modified PHP 4.4.7, 5.2.3, and 6.0 to all have different handlers so I could run them at the same time as modules in my apache (2.0.59) To even get all 3 to work I had to compile php4 without mysql as it seems to have errors with something about mysql and something defined to much. I receive this error in my error log while trying to use php4. [error] [client 127.0.0.1] Negotiation: discovered file(s) matching request: /Users/me/Sites/index (None could be negotiated). [error] [client 127.0.0.1] Premature end of script headers: php First one was easy. I added /index.php to my url and it stops happening (I will figure it out later I guess). The second one has me stumped. This usually means CGI error. But I set them up as cgi. I even ran the file from command line and it outputs ok with no 500 error. These are the parts in my httpd.conf that really mater that might help # The part that loads the modules. LoadModule php4_module /sw/lib/apache2/modules/libphp4.so LoadModule php6_module /sw/lib/apache2/modules/libphp6.so LoadModule php5_module /sw/lib/apache2/modules/libphp5.so # The part that does the virtual hosts. <VirtualHost *:8080> ScriptAlias /php6/ "/sw/usr/local/php6/" Action php6-script /php6/bin/php AddHandler php6-script .php </VirtualHost> <VirtualHost *:8081> ScriptAlias /php5/ "/sw/usr/local/php523/" Action php5-script /php5/bin/php AddHandler php5-script .php </VirtualHost> <VirtualHost *:8082> ScriptAlias /php4/ "/sw/usr/local/php447/" Action php4-script /php4/bin/php AddHandler php4-script .php </VirtualHost> Any suggestions? PHP6 and PHP5 work just fine. Link to comment https://forums.phpfreaks.com/topic/60710-having-trouble-with-muliple-instances-of-php/ Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.