不能申请流程槽

时间:2011-05-04 07:32:15

标签: php apache fastcgi

我遇到了网络服务器的问题。我没有在Apache配置上做任何改变,当我得到这500个错误代码时,我只是在网站上工作(错误3)。其他网站运行正常。难道这是一次性的错误,然后apache决定“我不再喜欢你了”?

[Tue May 03 15:44:47 2011] [warn] (104)Connection reset by peer: mod_fcgid: read data from fastcgi server error.
[Tue May 03 16:00:02 2011] [warn] mod_fcgid: can't apply process slot for /home/<customer>/public_html/typo3/ajax.php
[Tue May 03 16:00:08 2011] [warn] mod_fcgid: can't apply process slot for /home/<customer>/public_html/index.php
[Tue May 03 16:00:38 2011] [warn] mod_fcgid: can't apply process slot for /home/<customer>/public_html/index.php
[Tue May 03 16:00:42 2011] [warn] mod_fcgid: can't apply process slot for /home/<customer>/public_html/index.php
[Tue May 03 16:01:00 2011] [warn] mod_fcgid: can't apply process slot for /home/<customer>/public_html/index.php
and so on...

我的fcgid.conf

<IfModule mod_fcgid.c>
  MaxProcessCount 100
  AddHandler    fcgid-script .fcgi
  IPCConnectTimeout 20
</IfModule>

会重启(生产)服务器解决问题吗?

2 个答案:

答案 0 :(得分:2)

根据this页面:

  

修复很简单。就我而言,它是一个   简单的chmod 755 / var / log / httpd,其中   允许Apache实际读取其日志   目录!在改变之前,我是   使用a获得“服务不可用”   [warn] mod_fcgid的日志错误:不能   为[dispatch.fcgi]申请流程槽   完整路径]。现在它有效!

答案 1 :(得分:1)

是的,

但似乎没有在这里找到maxProcessCount规则 http://www.apachelounge.com/viewtopic.php?t=2563

如果你看到你看到你可以设置一个变量以确保它