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

    53
    13
    8
    Jun 21, 2015
    Ratings:
    +20
    Local Time:
    9:47 PM
    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

    53
    13
    8
    Jun 21, 2015
    Ratings:
    +20
    Local Time:
    9:47 PM
    Actually, I think this was on our end, nevermind you can close this out.
     
  3. jcat

    jcat Member

    53
    13
    8
    Jun 21, 2015
    Ratings:
    +20
    Local Time:
    9:47 PM
    Yep this was my bad, can definitely ignore this :)
     
    • Funny Funny x 1
  4. eva2000

    eva2000 Administrator Staff Member

    30,884
    6,907
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +10,401
    Local Time:
    12:47 PM
    Nginx 1.13.x
    MariaDB 5.5
    haha now what did you do ? it could be something i can script to prevent others from doing the same :)
     
  5. jcat

    jcat Member

    53
    13
    8
    Jun 21, 2015
    Ratings:
    +20
    Local Time:
    9:47 PM
    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
     
    • Informative Informative x 1
  6. eva2000

    eva2000 Administrator Staff Member

    30,884
    6,907
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +10,401
    Local Time:
    12:47 PM
    Nginx 1.13.x
    MariaDB 5.5
    ah the dangers of multi-tasking in linux command line environment :D