Page 1 of 1

HowTo: Fix/Change Nginx Timeouts (Nginx + PHP-FPM)

Posted: Mon Dec 03, 2018 11:51 am
by botonakis
Login using SSH:
Then enter:

Code: Select all

cd /etc/nginx/conf.d/
Then enter:

Code: Select all

printf "fastcgi_read_timeout 300;\nfastcgi_buffer_size 128k;\nfastcgi_buffers 8 128k;" > fastcgi.conf
This will create a file called: fastcgi.conf and will add three lines:
fastcgi_read_timeout 300;
fastcgi_buffer_size 128k;
fastcgi_buffers 8 128k;

Now you need to restart NGinx.
So enter the following:

Code: Select all

service nginx restart