I am running a website that allows to import large Excel file. It is using PHP-FPM and Nginx. Nginx response 504 Gateway Time-out after exactly 60s. I have read many questions and try to change the configuration as following:
# Nginx
proxy_connect_timeout 600s;
proxy_send_timeout 600s;
proxy_read_timeout 600s;
fastcgi_send_timeout 600s;
fastcgi_read_timeout 600s;
# PHP
request_terminate_timeout = 600s;
max_execution_time = 600s;
I need to ask Nginx response after 5 minutes or PHP-FPM finish processing the file. But it always response after 60 seconds and return 504 Gateway Time-out. I’ve tried to find where the configuration of PHP or Nginx involve to 60 seconds but nothing found.
Any idea?