[Bug 253268] [NEW] php5-cgi not working with suphp in Hardy
ploum at fritalk.com
Wed Jul 30 13:55:06 BST 2008
Public bug reported:
Suphp doesn't work in Hardy. It seems that it is simply ignored and php
processes are executed under www-data.
It was working fine under Gutsy. I dist-upgraded a month ago but I
discovered the problem only recently (because one of my website was
unable to read a config file chmoded to 700). I'm pretty sure it's the
dist-upgrade because the suphp log stopped the day I dist-upgraded
(approximately at least).
I didn't change anything in the config in the meantime. Also, when
investigation the problem, I copied /etc/apache2 /etc/php5 and
/etc/suphp from a working Debian installation. It doesn't work under
The symptoms are the following :
1) if mod_php5 is enabled, processes run with www-data permissions. phpinfo() returns "Apache 2.0 Handler " as the server API. (when suphp is working, it returns "Cgi/FastCgi" AFAIK
2) if mod_php5 is not enabled, you will receive an error 500. The logs contain the following lines :
[Wed Jul 30 14:31:55 2008] [error] [client 22.214.171.124] SecurityException in Application.cpp:440: Handler not found in configuration
[Wed Jul 30 14:31:55 2008] [error] [client 126.96.36.199] Caused by KeyNotFoundException in Configuration.cpp:234: Handler "application/x-httpd-php" not found
[Wed Jul 30 14:31:55 2008] [error] [client 188.8.131.52] Premature end of script headers: index.php
If both suphp and php5 are disabled, then your browser offers you to download the file (which is normal).
Also, it has to be noted that suphp is well active because if you try to
access a software not in the defined root, you will get an error in the
logs. So, it seems like the problem is not suphp but the cgi part of
php5 which is not responding or something like that.
I'm not an expert so I'm not sure about the where to assign this issue.
** Affects: php5 (Ubuntu)
** Affects: suphp (Ubuntu)
** Also affects: php5 (Ubuntu)
php5-cgi not working with suphp in Hardy
You received this bug notification because you are a member of Ubuntu
Server Team, which is subscribed to php5 in ubuntu.
More information about the Ubuntu-server-bugs