与fcgid的Mindtouch – 快速CGI apache工作线程

任何人得到Dekiwiki / Mindtouch与fcgid模块运行? 我总是得到504和500。

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 

我目前正在摆弄SuExec和fast-cgi wrapper目录权限,因为我也使用了chroot的SFTP监狱。 有时关于进程槽的第一行现在不出现。

我用德语find了一个解决scheme,现在就开始工作。

http://debianforum.de/forum/viewtopic.php?f=8&t=122758&start=15

inputhttpd.conf: LogLevel debug

它会为你的/var/log/httpd/error_log文件创造奇迹。

其余的权限,重写规则和理解suexec(请参阅apache文档)

另外要注意你的php-fcgi-starter文件设置。 您必须导出PHP_FCGI_CHILDRENvariables。

 export PHP_FCGI_CHILDREN=8 

另见http://debianforum.de/forum/viewtopic.php?f=8&t=78073&start=105 [德语]

这是为我工作的最终configuration:

PHP-FCGI起动:

 #!/bin/sh #PHPRC=/etc/ #export PHPRC export PHP_FCGI_MAX_REQUESTS=50 export PHP_FCGI_CHILDREN=8 exec /usr/bin/php-cgi 

确保你的dekiwiki-apache.conf是整洁和整洁的嵌套。 启用httpd.conf任何模块以获取ProxyPassReverse等必需的选项。

确保将重写规则嵌套到<Directory /var/www/html/yourwikiname>指令中。 设置AllowOverride All ,确保它没有被设置为该目录的任何地方。

另一个帮助我解决问题的方法就是通过SVN从mindtouch中使用最新的mod_rewrite规则。

根据/usr/sbin/suexec所有者在httpd.conf设置这些值也很重要。

 User apache Group chrootJailGroup 

不要忘记,如果你改变suexec的所有者,你必须重新设置suid。

 ls -lisha /usr/sbin/suexec -rs--x--- 1 root chrootJailGroup 14K Aug 30 18:32 /usr/sbin/suexec