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

查看:33
本文介绍了脚本头过早结束: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服务器请用vim编辑/etc/httpd/conf.d/fcgid.conf文件.
FcgidIOTimeout 45 更改为 FcgidIOTimeout 600.
重新启动 Apache.
那么Fast CGI timeout就解决了.

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.

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

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