Page 1 of 1

PHP 5.1.6 bleeding configured itself as Apache Module

Posted: Thu Jan 18, 2007 5:00 pm
by ddcarnage
Hi,

I just installed PHP 5.1.6 bleeding to get the MySQL 5 update. However, PHP configured itself as an apache module instead of cgi so suPHP doesn't work anymore.

I'm having trouble switching back php to cgi mode.

I'm running plesk 8.1. Any hints would be greatly apreciated.


Thanks,


Frank

Posted: Thu Jan 18, 2007 9:48 pm
by ddcarnage
I've added the following to the httpd.conf file

Action php-test "/usr/etc/php-cgi"
AddHandler php-test .php

I get a 404 on all php pages.

When I checked the apache logs, there was the following

[Thu Jan 18 20:43:19 2007] [error] [client xxx] File does not exist: /var/www/vhosts/xxx/httpdocs/usr


Does anyone have a clue?

Posted: Thu Jan 18, 2007 10:52 pm
by ddcarnage
By changing the lines in httpd.conf to

ScriptAlias /php/ "/usr/bin/"
Action php-test "/php/php-cgi"
AddHandler php-test .php4


Now the script launches but I get a 505.

Premature end of script headers: php-cgi


Any clue?