Anyone got Dekiwiki / Mindtouch running with fcgid-module? I get 504 and 500 all the time.
mod_fcgid: can't apply process slot for /var/www/html/dekiwiki/index.php
[Tue Dec 28 06:14:03 2010] [warn] (104)Connection reset by peer: mod_fcgid: read data from fastcgi server error.
[Tue Dec 28 06:14:03 2010] [error] [client 92.75.107.53] Premature end of script headers: index.php
I'm currently fiddling with SuExec and fast-cgi wrapper directory permissions, because I also employ a chrooted SFTP jail. Sometimes the first line about the process slot does not appear now.
I found a solution in german and will work it through now.
http://debianforum.de/forum/viewtopic.php?f=8&t=122758&start=15
Enter in httpd.conf:
LogLevel debug
It will work wonders for your
/var/log/httpd/error_log
file.The rest is permissions, rewrite rules and understanding suexec (see apache docs)
Also pay attention to your
php-fcgi-starter
file settings. You have to export thePHP_FCGI_CHILDREN
variable.Also see here (http://debianforum.de/forum/viewtopic.php?f=8&t=78073&start=105) [german]
This are the final configurations that worked for me:
php-fcgi-starter:
Make sure your
dekiwiki-apache.conf
is tidy and neatly nested. Enable any modules inhttpd.conf
for required options likeProxyPassReverse
.Make sure to nest the rewrite rules into the
<Directory /var/www/html/yourwikiname>
directive. SetAllowOverride All
, make sure it isn't unset anywhere for that directory.Another 'peace of the puzzle' that helped me was to use the latest mod_rewrite rules from mindtouch via SVN.
It's also important to set these values in
httpd.conf
according to the/usr/sbin/suexec
owners.Don't forget if you change suexec's owners you have to set the suid again.