This forum has moved to a new location and is in read-only mode. Please visit talk.octobercms.com to access the new location.

rotaercz19941
rotaercz19941

I'm using Windows 7, NGinX 1.10.2, PHP 7.0.13, MySQL 5.7.16

So I was setting up a development environment on my local machine. I had no problem tweaking the php.ini file for the requirements page and setting up a MySQL database. Then I chose the "Start from Scratch" setting and everything seemed to be going smoothly until all of a sudden I got the following message:

Alt text

So I checked the error log and this is what it shows:

2016/11/20 12:11:29 [error] 5904#5680: *124 upstream timed out (10060: A connection attempt failed because the connected party did not properly respond after a period of time, or established connection failed because connected host has failed to respond) while reading response header from upstream, client: 127.0.0.1, server: localhost, request: "POST /install.php HTTP/1.1", upstream: "fastcgi://127.0.0.1:9000", host: "localhost", referrer: "http://localhost/install.php"

I'm not exactly sure how to fix this? Any help would be appreciated.

Last updated

daftspunky
daftspunky

Looks like you web server might be timing out. Try a fresh copy (no plugins and themes) to lower the time required, and also up the timeout limit in your web server configuration.

rotaercz19941
rotaercz19941

So I tried editing the php.ini file.

I changed the following to 300 from 30.

max_execution_time = 300

And in nginx.conf I added:

fastcgi_read_timeout 300;

Still getting the same error.

Also everything is fresh. Everything is at it's default setting other than the changes needed to get OctoberCMS up and running. Even Windows 7 is a new installation.

How do you install OctoberCMS with no plugins and themes? I just downloaded the files from the front page by clicking on Download Installer and ran install.php.

Last updated

rotaercz19941
rotaercz19941

You were right and I figured it out. Here's my answer and perhaps it will help others with a similar issue:

So in nginx.conf file:

You'll have something similar to this:

    location ~ \.php$ {
        root           html;
        fastcgi_pass   127.0.0.1:9000;
        fastcgi_index  index.php;
        fastcgi_param  SCRIPT_FILENAME  C:/nginx/html$fastcgi_script_name;
        include        fastcgi_params;
    }

Just add...

    fastcgi_read_timeout 600s;

If this doesn't work increase the time so it's even longer.

1-4 of 4

You cannot edit posts or make replies: the forum has moved to talk.octobercms.com.