对等方重置连接:mod_fcgid:从 FastCGI 服务器读取数据时出错 [英] Connection reset by peer: mod_fcgid: error reading data from FastCGI server

查看:36
本文介绍了对等方重置连接:mod_fcgid:从 FastCGI 服务器读取数据时出错的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在使用 PHP 时遇到问题,我的应用程序试图运行 php 备份文件并突然收到 HTTP 错误 500 代码.我已经检查了日志和它所说的内容.

I am having issue on PHP where my app is trying to run a php backup file and suddenly getting HTTP Error 500 Code. I have checked the logs and this what it saying.

[Tue Aug 28 14:17:28 2012] [warn] [client xxxx] (104)Connection reset by peer: mod_fcgid: error reading data from FastCGI server, referer: http://example.com/backup/backup.php
[2012 年 8 月 28 日星期二 14:17:28] [错误] [客户端 xxxx] 脚本头提前结束:backup.php,referer:http://example.com/backup/backup.php

[Tue Aug 28 14:17:28 2012] [warn] [client x.x.x.x] (104)Connection reset by peer: mod_fcgid: error reading data from FastCGI server, referer: http://example.com/backup/backup.php
[Tue Aug 28 14:17:28 2012] [error] [client x.x.x.x] Premature end of script headers: backup.php, referer: http://example.com/backup/backup.php

有人知道如何解决这个问题吗?我真的被困在这里,无法在互联网上找到解决方案.

Anyone knows how to fix this? I'm really stuck in here and can't find solution in internet.

希望任何人都可以分享他们的知识.

Hope anyone could share their knowledge.

谢谢.詹姆斯

推荐答案

我通过添加 FcgidBusyTimeout 设法解决了这个问题.以防万一有人跟我有类似的问题.

I managed to solved this by adding FcgidBusyTimeout . Just in case if anyone have similar issue with me.

这是我在 apache.conf 上的设置:

Here is my settings on my apache.conf:

<VirtualHost *:80>
.......
<IfModule mod_fcgid.c>
FcgidBusyTimeout 3600
</IfModule>
</VirtualHost>

这篇关于对等方重置连接:mod_fcgid:从 FastCGI 服务器读取数据时出错的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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