升级到Debian Jessie之后:随机出现mod_fcgid错误 [英] After Upgrade to Debian Jessie: Random mod_fcgid errors

查看:128
本文介绍了升级到Debian Jessie之后:随机出现mod_fcgid错误的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我目前正在拔头发: 从Debian wheezy升级到jessie之后,有时会收到Apache mod_fcgid错误.

I'am currently pulling my hairs out: After upgrading from Debian wheezy to jessie we get Apache mod_fcgid errors sometimes.

当前设置:

  • Debian GNU/Linux 8.6(jessie)/3.16.0-4-amd64
  • Apache/2.4.10(Debian)
  • PHP 5.6.29-0 + deb8u1

一些Apache站点运行良好,并且一些站点在几次重新加载后呈现出一个很好的错误500. Apache日志显示

Some of the Apache sites are just running fine and some sites are presenting a nice error 500 after several reloads. The Apache log shows

[fcgid:warn] [pid 23714](104)对等方重置的连接:[客户端123.456.789.12:53191] mod_fcgid:从FastCGI服务器读取数据时出错

[fcgid:warn] [pid 23714] (104)Connection reset by peer: [client 123.456.789.12:53191] mod_fcgid: error reading data from FastCGI server

[fcgid:warn] [pid 23714](104)对等方重置连接:[客户端123.456.789.12:53191] mod_fcgid:ap_pass_brigade在handle_request_ipc函数中失败

[fcgid:warn] [pid 23714] (104)Connection reset by peer: [client 123.456.789.12:53191] mod_fcgid: ap_pass_brigade failed in handle_request_ipc function

奇怪的是,此错误仅会不时发生.作为用户,我可以再次重新加载页面,一切都很好. 我知道我不是第一个遇到此错误的人,到目前为止,我已经尝试了几件事,但没有任何帮助.

The strange thing is, that this error occurs only from time to time. As a user, I can just do a page reload again and everything is fine again. I know I'm not the first one with this error and I tried several things so far, but nothing helped.

我已经做了什么:

  • 在/etc/apache2/mods-available/fcgid.conf中设置FcgidOutputBufferSize 0 ->没什么
  • 在包装脚本中分隔PHP_FCGI_MAX_REQUESTS=99999->没什么
  • 在/etc/apache2/mods-available/fcgid.conf中设置FcgidMaxRequestsPerProcess 500 ->没什么
  • 在/etc/apache2/mods-available/fcgid.conf中将FcgidMaxRequestsPerProcess增加到3600 ->没什么
  • Setting FcgidOutputBufferSize 0 in /etc/apache2/mods-available/fcgid.conf -> No difference
  • Stetting PHP_FCGI_MAX_REQUESTS=99999 in the wrapper script -> No difference
  • Setting FcgidMaxRequestsPerProcess 500 in /etc/apache2/mods-available/fcgid.conf -> No difference
  • Increasing FcgidMaxRequestsPerProcess to 3600 in /etc/apache2/mods-available/fcgid.conf -> No difference

有什么想法吗? 预先感谢.

Any ideas? Thanks in advance.

马丁

推荐答案

我能够发现问题仅存在于某些站点上,尤其是那些结合使用离子加载器和PHP的站点.我没有重新安装整个计算机,而是将困难的虚拟主机切换到了PHP-FPM.

I was able to figure out that the problem exists only with some sites, especially the ones using ion loader in combination with PHP. Instead of reinstalling the entire machine, I switched the virtual hosts with difficulties over to PHP-FPM.

现在一切运行正常&这样快. 好吧,这不是解决此问题的真正方法,但至少是一个很好的解决方法...

Everything is now running fine & fast this way. Well, this is not a real solution for this problem, but at least a good workaround...

这篇关于升级到Debian Jessie之后:随机出现mod_fcgid错误的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆