PaulHowarth/Blog/2006-05-24

Wednesday 24th May 2006

Wiki Breakage

Noticed this morning that the wiki wasn't working (Internal Server Error for every page). The web server error log just had this:

[Wed May 24 09:05:05 2006] [notice] mod_fcgid: server /var/www/tips/cgi-bin/moin.fcgi(12213) started
[Wed May 24 09:05:05 2006] [error] [client 212.56.100.58] Premature end of script headers: moin.fcgi
[Wed May 24 09:05:11 2006] [notice] mod_fcgid: process /var/www/tips/cgi-bin/moin.fcgi(12213) exit(communication error), terminated by calling exit(), return code: 255

Spent half an hour or so trying to figure out what had broken mod_fcgid before settling for a temporary workaround of reinstating mod_fastcgi and running the wiki as an external FastCGI application (which worked). About ten minutes later it dawned on me what had gone wrong. Yesterday afternoon I remounted /tmp and /var with the noexec and nodev mount options. So I no longer was able to run CGI applications from /var/www. D'oh! I've now moved the web server directory from the default /var/www to /srv/www where it belongs, and have reinstated mod_fcgid.


Recent