FastCGI server and internal error

FastCGI server and internal error

by Stéphane Goussault -
Number of replies: 0
Hello,

I use Moodle 1.6.2+ on a Apache/2.0.54 (Debian GNU/Linux) mod_fastcgi/2.4.2 Server

When I try to modify and record a page in a wiki, I've the following error. The page is well recorded but I've an internal error page.

Internal Server Error

The server encountered an internal error or misconfiguration and was unable to complete your request.

Please contact the server administrator, webverso@edres74.ac-grenoble.fr and inform them of the time the error occurred, and anything you might have done that may have caused the error.

More information about this error may be available in the server error log.

Additionally, a 500 Internal Server Error error was encountered while trying to use an ErrorDocument to handle the request.


My web host said to me that the problem is linked with the fastCGI mode. He suggested to me to do the following modification in moodle/mod/wiki/ewiki.php near ligne 1459

if (substr(php_sapi_name(), 0, 3) == 'cgi') {
header("HTTP/1.1 303 Redirect for GET");
}
else {
header("Status: 303 Redirect for GET");
}

instead of:

header("Status: 303 Redirect for GET");
The problem is solved now but my web host said to me that the problem may be present in other files (not only in wiki files).  Moodle developpers must be informed of the problem.

Hope it can help.

Stéphane
Sorry for my poor english
Average of ratings: -