PHP 5.1.6 bleeding configured itself as Apache Module

Support/Development for PHP
ddcarnage
New Forum User
New Forum User
Posts: 3
Joined: Thu Jan 18, 2007 4:57 pm

PHP 5.1.6 bleeding configured itself as Apache Module

Unread post 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
ddcarnage
New Forum User
New Forum User
Posts: 3
Joined: Thu Jan 18, 2007 4:57 pm

Unread post 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?
ddcarnage
New Forum User
New Forum User
Posts: 3
Joined: Thu Jan 18, 2007 4:57 pm

Unread post 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?
Post Reply