504 Gateway Time-out Error on PHP Script

2019-02-20 18:11发布

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.

2条回答
唯我独甜
2楼-- · 2019-02-20 18:49

write a info file on server

<?php phpinfo();

check max whats comes here 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

enter image description here You can check your ini file location also from phpinfo() function

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

查看更多
男人必须洒脱
3楼-- · 2019-02-20 18:52

You can increase maximum execution time in php.

ini_set('max_execution_time', 300); //300 seconds = 5 minutes
查看更多
登录 后发表回答