• Introducing WebPros Cloud - a fully managed infrastructure platform purpose-built to simplify the deployment of WebPros products !  WebPros Cloud enables you to easily deliver WebPros solutions — without the complexity of managing the infrastructure.
    Join the pilot program today!
  • Support for BIND DNS has been removed from Plesk for Windows due to security and maintenance risks.
    If a Plesk for Windows server is still using BIND, the upgrade to Plesk Obsidian 18.0.70 will be unavailable until the administrator switches the DNS server to Microsoft DNS.

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