Bil*_*kin 18 php apache timeout mod-fcgid
我在localhost写了一个简单的爬行脚本(在php中)(有4个版本).所有这些都在localhost上运行良好.但当我将它们移动到共享主机时,其中两个工作其他人给出了内部服务器错误.我查看了error_log,我看到了这些行:
[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
Run Code Online (Sandbox Code Playgroud)
我搜索过但找不到任何有用的结果.这些错误有什么关系?有任何想法吗?
tra*_*nte 31
如果您可以访问Linux服务器,请/etc/httpd/conf.d/fcgid.conf使用vim 编辑文件.
更改FcgidIOTimeout 45到FcgidIOTimeout 600.
重启Apache.
然后将解决快速CGI超时.
| 归档时间: |
|
| 查看次数: |
38808 次 |
| 最近记录: |