在我的专用服务器 (Debian) 上使用 FastCGI。
我现在有时会出现以下错误(完全随机行为!!)。 导致白页(错误 500)。
[2014 年 5 月 27 日星期二 13:02:09] [错误] [客户端 85.68.183.29] (104)连接由对等方重置:FastCGI:与服务器“/var/www/php5.external”的通信中止:读取失败,引用:[...] [2014年5月27日星期二13:02:09] [错误] [客户端85.68.183.29] FastCGI:从服务器“/var/www/php5.external”收到的不完整 header (0字节),引荐来源:[...]
我找不到与此相关的任何其他错误(任何 PHP 详细信息、MySQL SQL 错误,没有其他!!!)。
有什么办法可以防止这个丑陋的错误吗? 我应该回到 mod-php5 吗??
最佳答案
您可以尝试按照本页上的建议进行操作:https://groups.google.com/d/msg/highload-php-en/4F79Pco-2eg/_tfPMiLFzg4J
复制到这里供引用:
Use -idle-timeout paramater on "FastCgiExternalServer" line to solve this problem.
My FastCgiExternalServer line: FastCgiExternalServer /var/run/fastcgi/USERNAME-fcgi -appConnTimeout 10 -idle-timeout 250 -socket /var/run/fastcgi/USERNAME.socket -pass-header Authorization
More information in mod_fastcgi doc: http://www.fastcgi.com/mod_fastcgi/docs/mod_fastcgi.html
关于fastcgi - 连接被对等方重置 : FastCGI: comm with server aborted: read failed,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/23888020/