60秒后Apache Web服务器超时 [英] Apache web server timeout after 60 seconds
问题描述
在IBM softlayer中运行的apache Web服务器+ php,我在60秒后遇到超时.
I am experiencing timeout after 60 seconds for apache web server + php running in IBM softlayer.
这些是我的设置(这些设置后,httpd服务器将重新启动)
These are my settings (httpd server restart after these settings)
httpd.conf
TimeOut 300
Timeout 300
*同时尝试了这两种方法,也只尝试了一次TimeOut和Timeout.
* tried both at the same, also single entry of TimeOut and Timeout only.
php.ini
max_execution_time = 300
PHP代码:
<?php
set_time_limit(10000); //Just to make sure
sleep(70);
echo "Successful";
?>
使用命令提示符
php test.php
结果成功
http://mysite/test.php
结果:完全在60秒后超时!
Result : Timeout exactly at 60 seconds!
php_error.log和httpd error_log
没有错误!
php_error.log and httpd error_log
No errors!
我找到了与此类似的文章,但是每个人都指向max_execution_time和Timeout.到目前为止,没有帮助.
非常感谢!
I've found similar articles about this, but everybody is pointing at max_execution_time and Timeout. So far, no help.
Thanks a lot!
推荐答案
php和apache服务器中也存在许多限制
many limitation are exists in php and apache server too
1. Apache限制:
find httpd.conf in your apache server :
c:\WampDeveloper\Config\Apache\extra\httpd- default.conf
并更改限制:
Timeout 300
max_execution_time = 300
2. php.ini:
upload_max_filesize = 256M
post_max_size = 257M
memory_limit = 258M
max_input_time = 300
max_execution_time = 300
进行所有更改后,重新启动Apache服务器.希望对您有所帮助.
After making all changes, restart your Apache server. I hope it was helpful.
这篇关于60秒后Apache Web服务器超时的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!