HowTo: Fix/Change Nginx Timeouts (Nginx + PHP-FPM)
Posted: Mon Dec 03, 2018 11:51 am
Login using SSH:
Then enter:
Then enter:
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:
Then enter:
Code: Select all
cd /etc/nginx/conf.d/
Code: Select all
printf "fastcgi_read_timeout 300;\nfastcgi_buffer_size 128k;\nfastcgi_buffers 8 128k;" > fastcgi.conf
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