Want more timely Centmin Mod News Updates?
Become a Member

Nginx Issue with NGINX

Discussion in 'Nginx, PHP-FPM & MariaDB MySQL' started by Chris, Sep 1, 2015.

Tags:
  1. Chris

    Chris Member

    33
    4
    8
    Feb 27, 2015
    Ratings:
    +6
    Local Time:
    6:19 PM
    1.7
    10
    Code:
    [root@li108-164 centminmod]# ngxrestart
    Restarting nginx (via systemctl):  Job for nginx.service failed. See 'systemctl status nginx.service' and 'journalctl -xn' for details.
                                                               [FAILED]
    [root@li108-164 centminmod]# systemctl status nginx.service -l
    nginx.service - SYSV: Nginx is an HTTP(S) server, HTTP(S) reverse proxy and IMAP/POP3 proxy server
       Loaded: loaded (/etc/rc.d/init.d/nginx)
       Active: failed (Result: exit-code) since Mon 2015-08-31 23:02:44 UTC; 2s ago
      Process: 3878 ExecStart=/etc/rc.d/init.d/nginx start (code=exited, status=1/FAILURE)
    
    Aug 31 23:02:44 li108-164.members.linode.com systemd[1]: Starting SYSV: Nginx is an HTTP(S) server, HTTP(S) reverse proxy and IMAP/POP3 proxy server...
    Aug 31 23:02:44 li108-164.members.linode.com nginx[3878]: Starting nginx: nginx: [emerg] unknown directive "vhost_traffic_status_zone" in /usr/local/nginx/conf/vts_http.conf:1
    Aug 31 23:02:44 li108-164.members.linode.com nginx[3878]: [FAILED]
    Aug 31 23:02:44 li108-164.members.linode.com systemd[1]: nginx.service: control process exited, code=exited status=1
    Aug 31 23:02:44 li108-164.members.linode.com systemd[1]: Failed to start SYSV: Nginx is an HTTP(S) server, HTTP(S) reverse proxy and IMAP/POP3 proxy server.
    Aug 31 23:02:44 li108-164.members.linode.com systemd[1]: Unit nginx.service entered failed state

     
  2. Chris

    Chris Member

    33
    4
    8
    Feb 27, 2015
    Ratings:
    +6
    Local Time:
    6:19 PM
    1.7
    10
  3. RoldanLT

    RoldanLT Well-Known Member

    3,899
    949
    113
    May 25, 2014
    Phillipines
    Ratings:
    +1,298
    Local Time:
    6:19 AM
    1.11
    10.2
    Remove this include file "vts_http.conf" on every vhost you have, including the virtual.conf.
     
  4. Chris

    Chris Member

    33
    4
    8
    Feb 27, 2015
    Ratings:
    +6
    Local Time:
    6:19 PM
    1.7
    10
    I edited
    vts_http.conf:1 and
    /usr/local/nginx/conf/vts_mainserver.conf:5

    and it worked so far...
     
  5. Chris

    Chris Member

    33
    4
    8
    Feb 27, 2015
    Ratings:
    +6
    Local Time:
    6:19 PM
    1.7
    10
    Hi Roland...I'm a bit confused on the virtual.conf...

    I found this include
    include /usr/local/nginx/conf/vts_mainserver.conf;
     
  6. RoldanLT

    RoldanLT Well-Known Member

    3,899
    949
    113
    May 25, 2014
    Phillipines
    Ratings:
    +1,298
    Local Time:
    6:19 AM
    1.11
    10.2
    Remove that line.
     
  7. eva2000

    eva2000 Administrator Staff Member

    30,152
    6,782
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +10,133
    Local Time:
    8:19 AM
    Nginx 1.13.x
    MariaDB 5.5
    I'd comment them out not remove just in case.. it might be related to your other issue Nginx - Error upgrading Nginx | Centmin Mod Community in that some github hosted nginx modules didn't download properly due to DNS issues on your VPS preventing resolution of github.com domain. It maybe that other Nginx and github hosted downloads didn't download properly too. I'll reply to that thread for the rest