Want more timely Centmin Mod News Updates?
Become a Member

Install Beta installer issue with Nginx user permissions

Discussion in 'Install & Upgrades or Pre-Install Questions' started by jcat, Mar 1, 2017.

  1. jcat

    jcat Member

    153
    22
    18
    Jun 21, 2015
    New Jersey
    Ratings:
    +64
    Local Time:
    12:28 AM
    Fresh beta install on centos7

    I just did 2 fresh installs to ensure something didn't happen the first time around but any changes that would of caused permission related issues with Nginx?


    Any new site I try to access, in logs it throws:

    Code:
    2017/02/28 19:49:24 [crit] 18767#18767: *45 open() "/home/nginx/domains/test.com/public/wp-content/cache/cache-enabler/test.com/index-webp.html" failed (13: Permission denied), client: 108.24.44.169, server: test.com, request: "GET / HTTP/1.1", host: "test.com"
    2017/02/28 19:49:24 [crit] 18767#18767: *45 open() "/home/nginx/domains/test.com/public/" failed (13: Permission denied), client: 108.24.44.169, server: test.com, request: "GET / HTTP/1.1", host: "test.com"
    2017/02/28 19:49:24 [crit] 18767#18767: *45 open() "/home/nginx/domains/test.com/public/" failed (13: Permission denied), client: 108.24.44.169, server: test.com, request: "GET / HTTP/1.1", host: "test.com"
    2017/02/28 19:49:24 [crit] 18767#18767: *45 open() "/home/nginx/domains/test.com/public/index.php" failed (13: Permission denied), client: 108.24.44.169, server: test.com, request: "GET / HTTP/1.1", host: "test.com"
    2017/02/28 19:49:24 [error] 18767#18767: *45 open() "/home/nginx/domains/test.com/public/favicon.ico.gz" failed (13: Permission denied), client: 108.24.44.169, server: test.com, request: "GET /favicon.ico HTTP/1.1", host: "test.com", referrer: "http://test.com/"
    2017/02/28 19:49:24 [error] 18767#18767: *45 open() "/home/nginx/domains/test.com/public/favicon.ico" failed (13: Permission denied), client: 108.24.44.169, server: test.com, request: "GET /favicon.ico HTTP/1.1", host: "test.com", referrer: "http://test.com/"
    
    Also I noticed this, which is odd, which I think is the root of the problem:

    Code:
    # su -s /bin/bash -l nginx
    Last login: Tue Feb 28 19:44:06 UTC 2017 on pts/0
    su: warning: cannot change directory to /home/nginx: Permission denied
    -bash: /home/nginx/.bash_profile: Permission denied
    -bash-4.2$
    Weird right? We use the same Openvz template for all installs which just basically runs

    Code:
    curl -O https://centminmod.com/betainstaller.sh && chmod 0700 betainstaller.sh && bash betainstaller.sh
     
  2. jcat

    jcat Member

    153
    22
    18
    Jun 21, 2015
    New Jersey
    Ratings:
    +64
    Local Time:
    12:28 AM
    Actually, I think this was on our end, nevermind you can close this out.
     
  3. jcat

    jcat Member

    153
    22
    18
    Jun 21, 2015
    New Jersey
    Ratings:
    +64
    Local Time:
    12:28 AM
    Yep this was my bad, can definitely ignore this :)
     
  4. eva2000

    eva2000 Administrator Staff Member

    55,245
    12,253
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +18,833
    Local Time:
    2:28 PM
    Nginx 1.27.x
    MariaDB 10.x/11.4+
    haha now what did you do ? it could be something i can script to prevent others from doing the same :)
     
  5. jcat

    jcat Member

    153
    22
    18
    Jun 21, 2015
    New Jersey
    Ratings:
    +64
    Local Time:
    12:28 AM
    I was migrating a wordpress install and was rsyncing the files to /home/ while centminmod was installing just to kill 2 birds and it had changed permissions on /home to 750, doh
     
  6. eva2000

    eva2000 Administrator Staff Member

    55,245
    12,253
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +18,833
    Local Time:
    2:28 PM
    Nginx 1.27.x
    MariaDB 10.x/11.4+
    ah the dangers of multi-tasking in linux command line environment :D