Jump to content

Recommended Posts

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.

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.