I would like to add this information relating to version 1.7. originally wrriten in Russian by Evgeniy Likov at:
http://www.likov.spb.ru/memoria/Moodle17SFastCGIPHP
The problem was apparent in use of Wiki and Hot Potatoes modules in 1.7 with FastCGI PHP.
If you are using FastCGI PHP as a PHP interpreter there are a number of sitiuations (for example on saving changes to a page in Wiki) when pressing the “save” button gives the page Internal Server Error (code 500) and a line is added to the log:
FastCGI: comm with server “/home/www/data/php-bin/php” aborted: error parsing headers: duplicate header ‘Status’, referer: http://m17/mod/wiki/view.php?id=4&page=edit/approach
The community of PHP users proposes this solution to the problem:
http://bugs.php.net/bug.php?id=36705
i.e. replace all entries of “header(‘Status: xxx” with “header(‘HTTP/1.1 xxx”.
In Moodle 1.7 the system functions normally after this procedure:
Take the following files:
/lib/smarty/Smarty.class.php
/mod/hotpot/attempt.php
/mod/wiki/ewiki/ewiki.php
replace the entries header(“Status: with the line header(“HTTP/1.1 (note there is a space
after the 1.1)
In the file
/mod/wiki/ewiki/fragments/auth.php – make line 37 into a comment and in
/lib/soap/nusoap.php – make line 3719 into a comment.
An easier way to do this is to download the files with changes already made at:
http://www.likov.spb.ru/files/moodle/moodle-1.7-fastcgi-fix.zip
The file structure is already created just unzip and write over your existing files.
1.7 plus FastCGI PHP
Number of replies: 1Re: 1.7 plus FastCGI PHP
You'll probably get the best repsonse if you add this as a bug on the Moodle Tracker