I've an script that can run for about 15 min as it is a large data migration tool.
I have the problem that either if i set fastcgi_read_timeout 9900;
it never times out or if i set it to less then it times out before my script finished running.
EDIT: I have taken away the fastcgi_read_timeout 9900;
from nginx.conf
and setted max_execution_time = 1300;
in php.ini and I get a 504 Gateway Time-out now instead of looping forever.
How can I properly set that the page should be live until the script finishes executing?