Control Web Panel

WebPanel => Apache => Nginx => Topic started by: DangerD2 on November 09, 2019, 09:05:23 AM

Title: Nginx & Varnish & Apache + php-fpm - Increase timeout (How to?)
Post by: DangerD2 on November 09, 2019, 09:05:23 AM
Trying to increase php script time more than 1 minute:

/etc/nginx/proxy.inc
proxy_connect_timeout 240s;
proxy_send_timeout 600;
proxy_read_timeout 600;

php.ini
max_execution_time 300
default_socket_timeout 600

But i'm keep receiving 504 Gateway timeout...
What extra setting i should change?
Title: Re: Nginx & Varnish & Apache + php-fpm - Increase timeout (How to?)
Post by: DNA on March 22, 2020, 11:01:43 PM
Hi

you can follow : https://www.awsmonster.com/2020/03/part-4-how-to-fix-nginx-504-gateway.html