• Inviting everyone who uses WordPress management tools in Plesk
    The Plesk team is conducting a 60-minute research session that includes an interview and a moderated usability test.
    To participate, please use this link .
    Your experience will help shape product decisions and ensure the tools better support real-world use cases.

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