Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

504 Gateway Time-out Error on PHP Script

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.

like image 403
birlikbilisim Avatar asked Sep 01 '13 18:09

birlikbilisim


1 Answers

You can increase maximum execution time in php.

ini_set('max_execution_time', 300); //300 seconds = 5 minutes
like image 62
Adnan Ahmad Avatar answered Sep 29 '22 19:09

Adnan Ahmad