504 Gateway Time-out Error on PHP Script

落花浮王杯 提交于 2019-12-07 21:24:51

问题


I coded a script for database import, it makes a few jobs on database. When I work this script, after a few minutes I'm getting "504 Gateway Timeout Error".

I increased all timeout values on php.ini, also I increased execution times but it is still same.


回答1:


You can increase maximum execution time in php.

ini_set('max_execution_time', 300); //300 seconds = 5 minutes



回答2:


write a info file on server

<?php phpinfo();

check max whats comes here if its return 0 then there is something different to do else make sure you changed on correct ini file

You can check your ini file location also from phpinfo() function

If you still can't fix it please response again :)



来源:https://stackoverflow.com/questions/18561625/504-gateway-time-out-error-on-php-script

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!