
有人讓 Dekiwiki / Mindtouch 與 fcgid-module 一起運作嗎?我總是得到 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 包裝器目錄權限,因為我還使用了 chrooted SFTP 監獄。有時,有關進程槽的第一行現在不會出現。
我在德語中找到了解決方案,現在將完成它。
http://debianforum.de/forum/viewtopic.php?f=8&t=122758&start=15
答案1
在httpd.conf輸入:LogLevel debug
它將為您的/var/log/httpd/error_log
文件創造奇蹟。
剩下的就是權限、重寫規則和理解suexec(請參閱apache文件)
另請注意您的php-fcgi-starter
文件設定。您必須匯出該PHP_FCGI_CHILDREN
變數。
export PHP_FCGI_CHILDREN=8
另請參閱此處(http://debianforum.de/forum/viewtopic.php?f=8&t=78073&start=105)[德語]
這是對我有用的最終配置:
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 規則。
httpd.conf
根據所有者設定這些值也很重要/usr/sbin/suexec
。
User apache
Group chrootJailGroup
不要忘記,如果您更改了 suexec 的所有者,則必須重新設定 suid。
ls -lisha /usr/sbin/suexec
-r-s--x--- 1 root chrootJailGroup 14K Aug 30 18:32 /usr/sbin/suexec