installation stops at Step 2 with nginx

Help with getting the CMS CORE package up and running. This does not include 3rd party modules, PHP scripts, anything downloaded via module manager or from any external source.
Locked
mhzawadi
New Member
New Member
Posts: 4
Joined: Tue Apr 08, 2014 2:29 pm

installation stops at Step 2 with nginx

Post by mhzawadi »

Hi all,

Trying to install a fresh 2.1.5 on a debian 8.5 VM with nginx(1.10.1)/php-fpm(5.6.24), I have found some posts with nginx config that should work but they dont.

I get to step 2 and then get 'It appears that the directory you have selected to install in is a working directory for the installer itself '

If I have the debug tools open on both firefox and opera I can see I get a 304, any help would be good please

Code: Select all

Request URL:http://www2.horwood.biz/install/index.php?m19c234e2=1
Request Method:POST
Status Code:302 Moved Temporarily
Remote Address:149.202.63.244:80
Response Headers
view source
Cache-Control:no-store, no-cache, must-revalidate, post-check=0, pre-check=0
Connection:keep-alive
Content-Type:text/html; charset=UTF-8
Date:Sun, 28 Aug 2016 13:36:31 GMT
Expires:Thu, 19 Nov 1981 08:52:00 GMT
Location:http://www2.horwood.biz/install/index.php?m19c234e2=2
Pragma:no-cache
Server:nginx
Transfer-Encoding:chunked
X-Powered-By:PHP/5.6.24-0+deb8u1
Request Headers
view source
Accept:text/html,application/xhtml+xml,application/xml;q=0.9,image/webp,*/*;q=0.8
Accept-Encoding:gzip, deflate, lzma
Accept-Language:en-GB,en-US;q=0.8,en;q=0.6
Cache-Control:max-age=0
Connection:keep-alive
Content-Length:91
Content-Type:application/x-www-form-urlencoded
Cookie:CMSIC631ceefb74=n8ti9nceidsr1f002jvkfls7m1; CMSICf5704745eb=g3p8g370fno7q6so0f1js4cqm7
Host:www2.horwood.biz
Origin:http://www2.horwood.biz
Referer:http://www2.horwood.biz/install/index.php?m19c234e2=1
Upgrade-Insecure-Requests:1
User-Agent:Mozilla/5.0 (Windows NT 10.0; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/52.0.2743.82 Safari/537.36 OPR/39.0.2256.48
Query String Parameters
view source
view URL encoded
m19c234e2:1
Form Data
view source
view URL encoded
destdir:/var/data/websites/www.horwood.biz
lang:en_US
verbose:0
next:Next →

Code: Select all

server {
    listen   80; ## listen for ipv4; this line is default and implied
    #listen   [::]:80 default_server ipv6only=on; ## listen for ipv6

    root /var/data/websites/www.horwood.biz;
    index index.php;

    # Make site accessible from http://localhost/;
    server_name www2.horwood.biz;
    access_log  /var/log/nginx/vps_access.log main;

    location / {
       try_files $uri $uri/ /index.php?page=$request_uri;
    }

    location ~ \.php$ {
        fastcgi_split_path_info       ^(.+\.php)(.*)$;
        fastcgi_param SCRIPT_FILENAME /path/to/php$fastcgi_script_name;
        fastcgi_param PATH_INFO       $fastcgi_path_info;
        fastcgi_pass vps;
        fastcgi_index index.php;
        include fastcgi_params;
        fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
    }
    location ~*  \.(jpg|jpeg|png|gif|ico|css|js)$ {
        expires 28d;
    }
}
calguy1000
Support Guru
Support Guru
Posts: 8169
Joined: Tue Oct 19, 2004 6:44 pm
Location: Fernie British Columbia, Canada

Re: installation stops at Step 2 with nginx

Post by calguy1000 »

The 304 (Not Modified) implies to me that you have something like varnish installed or something else that overrides http headers as we explicitly set the pages to not-cachable (private) in the phar installer.

The error message indicates that PHP cannot get the current working directory properly.... again probably another nginx configuration issue.

I suggest you try the expanded installer. Be sure you read the README.
Follow me on twitter
Please post system information from "Extensions >> System Information" (there is a bbcode option) on all posts asking for assistance.
--------------------
If you can't bother explaining your problem well, you shouldn't expect much in the way of assistance.
mhzawadi
New Member
New Member
Posts: 4
Joined: Tue Apr 08, 2014 2:29 pm

Re: installation stops at Step 2 with nginx

Post by mhzawadi »

Hi calguy1000,

The error is 302, not 304. Sorry for the confusion.

But I have removed other nginx setting and still cant get the unzipped installer to work, I still get a 302 Moved Temporarily.

any other help?
mhzawadi
New Member
New Member
Posts: 4
Joined: Tue Apr 08, 2014 2:29 pm

[solved] Re: installation stops at Step 2 with nginx

Post by mhzawadi »

I have worked round the issue, by installing apache on loop back address only and using nginx to proxy to apache.

???
Locked

Return to “[locked] Installation, Setup and Upgrade”