[英]Laravel 5 Operation timed out
laravel 5 giving me "Operation timed out" after 30 second on hostgator dedicated server. laravel 5在hostgator专用服务器上30秒后给我“操作超时”。
But I change the max time to 3600 second and Its working without error on my localhost 但是我将最大时间更改为3600秒,并且在我的本地主机上没有错误地工作
my code is 我的代码是
$total = '';
for ($i=0;$i<60;$i++){
$total .= $i;
sleep(1);
}
echo $total;
links http://oemsys.net/test2 链接http://oemsys.net/test2
No I use dedicated server so I think i must add in my codes only 不,我使用专用服务器,所以我认为我只能添加我的代码
safe mode = off
memory_limit = 256M
max_execution_time = 3600
max_input_time = 60
post_max_size = 64M
upload_max_filesize = 64M
enable_dl = on
because its looping 60 times it need 60secs, 因为它循环60次需要60秒,
are you shared hosting hostgator? 您是共享托管hostgator吗? if yes, currently hostgator have some PHP settings that cannot be changed..
如果是,当前hostgator的某些PHP设置无法更改。
safe mode = Off (cannot adjust)
memory_limit = 256M (MAXIMUM)
max_execution_time = 30 (MAXIMUM in seconds)
max_input_time = 60 (MAXIMUM in seconds)
post_max_size = 64M (MAXIMUM)
upload_max_filesize = 64M (MAXIMUM)
enable_dl = Off (cannot adjust)
source : http://support.hostgator.com/articles/pre-sales-policies/php-settings-that-cannot-be-changed 来源: http : //support.hostgator.com/articles/pre-sales-policies/php-settings-that-cannot-be-changed
my suggestions why using sleep? 我的建议为什么要使用睡眠? or try upgrade to VPS or other shared hosting can edit your PHP.ini
或尝试升级到VPS或其他共享托管可以编辑您的PHP.ini
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.