问题
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();


If you still can't fix it please response again :)
来源:https://stackoverflow.com/questions/18561625/504-gateway-time-out-error-on-php-script