Nginx / fastcgi 504 error, increasing fastcgi_read_timeout does not help

I need the timeout to be high, so I can use the debugger in my source code. It is correctly passed to fastcgi from nginx, but always expires after 60 seconds. I changed as many timeout parameters as I could find, restarted nginx and fast-cgi after each change, and nothing worked.

I see that most users ask such questions as follows: How to prevent the gateway from FastCGI to Nginx timeout . But this solution did not work for me.

Parameters that I increased:

  • fastcgi_read_timeout (the thread above says it fixed the problem for this user)
  • client_header_timeout
  • client_body_timeout
  • send_timeout
+6
source share
1 answer

Have you checked max_execution_time in php.ini ?

This is the only other custom value that I can think of that can cause a timeout.

+3
source

Source: https://habr.com/ru/post/896892/


All Articles