My script sometimes takes more than 2 minutes and I am getting "504 Gateway Timeout Error" sometimes.
Following are the php server settings
max_execution_time 6000 (Local), 120 (Master)
max_input_time 120
memory_limit -1
I also tried using set_time_limit(0)
but getting same error.
I also tried creating a php.ini at root directory with max_input_time=-1
but it is not updating
When I check in console Network section, the script timeouts after 1.1 minutes giving 504 gateway timeout error.
I checked the phpinfo()
, Server type is fastCGI
. On my local system (wamp)
the script runs perfect. On local Server type is apache mod_php
. It can be issue?
Please guide me how I can solve this issue.
Any help will be appreciated.