脚本头premature结束:index.php文件,mod_fcgid:在61秒读取数据超时 [英] Premature end of script headers: index.php, mod_fcgid: read data timeout in 61 seconds

查看:322
本文介绍了脚本头premature结束:index.php文件,mod_fcgid:在61秒读取数据超时的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我写在本地主机一个简单的爬行脚本(PHP)(带4的变化)。他们都在本地主机正常工作。但是,当我让他们迁移到共享主机,他们两个人的工作了内部服务器错误。我看着Error_log和我看到这些行:

I wrote a simple crawling script (in php) at localhost (with 4 variations). All of them worked fine at localhost. But when I made move them to shared hosting, two of them worked others gave internal server error. I looked at error_log and I saw these line:

[Wed Jan 23 22:01:02 2013] [warn] [client ***] mod_fcgid: read data timeout in 61 seconds
[Wed Jan 23 22:01:02 2013] [error] [client ***] Premature end of script headers: index.php

我搜查,但我找不到任何有用的结果。什么是关系到这些错误?任何想法?

I searched but I couldn't find any useful result. What is related to these errors? Any ideas?

推荐答案

如果您可以访问Linux服务器,请编辑 /etc/httpd/conf.d/fcgid.conf 用vim文件。结果
更改 FcgidIOTimeout 45 FcgidIOTimeout 600 。结果
重新启动Apache。结果
然后快速CGI超时将得到解决。

If you can access Linux server please edit /etc/httpd/conf.d/fcgid.conf file with vim.
Change FcgidIOTimeout 45 to FcgidIOTimeout 600.
Restart Apache.
Then Fast CGI timeout will be solved.

这篇关于脚本头premature结束:index.php文件,mod_fcgid:在61秒读取数据超时的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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