• Plesk Uservoice will be deprecated by October. Moving forward, all product feature requests and improvement suggestions will be managed through our new platform Plesk Productboard.
    To continue sharing your ideas and feedback, please visit features.plesk.com

PHP 5 in cgi mode instead of module

D

ddcarnage

Guest
Hi,

I just installed PHP 5.1.6 (from atomicturtle's 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, which suPHP requires.

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


Thanks,


Frank
 
Try doing following:

cp /usr/local/psa/suexec/psa-suexec /usr/sbin/suexec
/etc/init.d/httpd restart

This should fix it.
 
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?
 
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?
 
Back
Top