Installing php5 as CGI

Hello,

Currently i am running PHP4.3.9 on a Apache 1.3.31 machine as a module.

Some of my customers want to test with PHP5 so i tried to install php5 as CGI since you can't run both PHP versions as a module.

I installed php5 in /ext/php5.

Some snapshots from my config
Code:
ScriptAlias /php5/ /ext/php5/bin/
<Directory /ext/php5/bin/>
        Options +ExecCGI
        AllowOverride none
</Directory>

AddType application/x-httpd-php-5 .php5
Action application/x-httpd-php-5 /php5/php
When i run a .php5 script with the following content
Code:
<?php
phpinfo();
?>
I get
Code:
Premature end of script headers: /ext/php5/bin/php
Well, you'd think my PHP installation is not good. Well, it is.

When i run: /ext/php5/bin/php /var/www/phpinfo.php5 i get some nice output on my screen Installing php5 as CGI

That proves me that PHP5 is installed alright. Even if i am not root i can run the above mentioned command.

My settings in the bin dir
Code:
totaal 15480
drwxr-xr-x  2 root root     4096 2004-09-23 14:32 .
drwxr-xr-x  6 root root     4096 2004-09-23 18:38 ..
-rwxr-xr-x  1 root root      661 2004-09-23 14:32 pear
-rwxr-xr-x  1 root root 15802593 2004-09-23 14:32 php
-rwxr-xr-x  1 root root      889 2004-09-23 14:32 php-config
-rwxr-xr-x  1 root root      593 2004-09-23 14:32 phpextdist
-rwxr-xr-x  1 root root     3080 2004-09-23 14:32 phpize
Does anyone know what i am doing wrong? To me everything seems fine!

 

 

 

 

Top