PHP最大执行时间 [英] PHP maximum execution time
问题描述
在我的Plesk 11,PHP 5.4.7。阿帕奇/ 2.4.3系统,当我做cron作业我得到的error.log文件中这个错误。
In my Plesk 11, PHP 5.4.7. Apache/2.4.3 system, when I make cron jobs I get this error from error.log file.
[Tue Mar 19 21:33:18 2013] [warn] [client 88.44.55.66] mod_fcgid: read data timeout in 45 seconds
[Tue Mar 19 21:33:18 2013] [error] [client 88.44.55.66] Premature end of script headers: index.php
所以,我检查了执行时间是:
So I checked for execution time with this:
echo ini_get('max_execution_time');
我得到这个值: 1560000
这似乎不是一个超时问题,但我得到超时错误?
It doesn't seem a timeout problem but I get timeout error?
答未来的参考:结果
编辑 /etc/httpd/conf.d/fcgid.conf
用vim文件。结果
更改 FcgidIOTimeout 45
到 FcgidIOTimeout 600
。结果
重新启动Apache。
然后快速CGI超时将得到解决。
Answer for the future reference:
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.
推荐答案
这是一个 mod_fcgid
超时,而不是一个PHP超时。看看在 mod_fcgid
文档找到如何去改变它,尤其是在<一个href=\"https://httpd.apache.org/mod_fcgid/mod/mod_fcgid.html#fcgidiotimeout\"><$c$c>FcgidIOTimeout$c$c>.
That's a mod_fcgid
timeout, not a PHP timeout. Take a look at the mod_fcgid
documentation to find out how to change it, especially at FcgidIOTimeout
.
这篇关于PHP最大执行时间的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!