[Solved] Manual LEMP Install, php-fpm timing out

Hey Folks. Trying to manually install Nextcloud with LEMP setup and am following a few different guides since I’m just learning. No matter what I seem to do, php-fpm seems to be timing out.

2018/10/13 07:47:42 [error] 5764#5764: *353 upstream timed out (110: Connection timed out) while reading response header from upstream, client: 192.168.1.1, server: cloud.spacy.ca, request: “POST /index.php/index.php HTTP/2.0”, upstream: “fastcgi://unix:/run/php/php7.2-fpm.sock”, host: “cloud.spacy.ca”

Raised ‘max_execution_time = 300’ and “request_terminate_timeout = 300” but those didn’t work. I am running everything off a Lenovo Flex 14, dual core w/hyperthreading, 8GB of RAM and hard drive.

Any ideas? Been Googling like crazy for days and coming here as a last resort.

Of course, right after posting I found the solution on here.

Edited ‘/etc/nginx/nginx.conf’ and added the following under the http section.

proxy_connect_timeout 600s;
proxy_send_timeout 600s;
proxy_read_timeout 600s;
fastcgi_send_timeout 600s;
fastcgi_read_timeout 600s;

I read somewhere else about this change but the link above said the exact config file to edit so that was helpful.

The site is running very slow but now that I’m actually able to log in, its recommending a few things to speed it up. Sorry for the waste of a post.