Nginx / php-fpm timeout

So, I’m working on a Magento upgrade on a LEMP stack server, and in spite of changing 

proxy_read_timeout

to 1 hour (3600s), was still giving me the ugly “502 Bad Gateway” message.

Foud that there is a setting in PHP-FPM that should to hand-in-hand with the one in nginx, 

request_terminate_timeout

to be more specific. Increased that to 3600s in 

/etc/php-fpm.d/www.conf

, restarted the fpm service and voila! Works like a charm!

The default is set to 120s, btw.

Hope that helps someone.

//lateredit: There might be another setting

fastcgi_read_timeout

in your nginx conf file, that one needs to be set to the same value as the previous ones.

Comments