【问题标题】:can't apply process slot无法应用进程槽
【发布时间】:2011-05-04 07:32:14
【问题描述】:

我的网络服务器有问题。我没有对 Apache 配置进行任何更改,当我收到这些 500 错误代码时,我只是在网站上工作(typo3 FYI)。其他网站运行良好。会不会是一次性错误,然后 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>

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

【问题讨论】:

    标签: php apache fastcgi


    【解决方案1】:

    根据this页面:

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

    【讨论】:

    • 好吧,我猜那是 apache 登录的默认目录,但我们使用的是 virtualmin,所以它的 /var/log/virtualmin/ 设置为 777(别担心,文件更好权限),所以这不应该是问题
    【解决方案2】:

    是的,

    但这里似乎不遵守 maxProcessCount 规则 http://www.apachelounge.com/viewtopic.php?t=2563

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

    【讨论】:

      猜你喜欢
      • 2013-09-11
      • 1970-01-01
      • 1970-01-01
      • 2011-07-11
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2018-07-27
      • 1970-01-01
      相关资源
      最近更新 更多