Want to subscribe to topics you're interested in?
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

    51
    10
    8
    Feb 27, 2015
    Ratings:
    +15
    Local Time:
    10:05 AM
    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

    51
    10
    8
    Feb 27, 2015
    Ratings:
    +15
    Local Time:
    10:05 AM
    1.7
    10
  3. rdan

    rdan Well-Known Member

    5,447
    1,408
    113
    May 25, 2014
    Ratings:
    +2,201
    Local Time:
    10:05 PM
    Mainline
    10.2
    Remove this include file "vts_http.conf" on every vhost you have, including the virtual.conf.
     
  4. Chris

    Chris Member

    51
    10
    8
    Feb 27, 2015
    Ratings:
    +15
    Local Time:
    10:05 AM
    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

    51
    10
    8
    Feb 27, 2015
    Ratings:
    +15
    Local Time:
    10:05 AM
    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. rdan

    rdan Well-Known Member

    5,447
    1,408
    113
    May 25, 2014
    Ratings:
    +2,201
    Local Time:
    10:05 PM
    Mainline
    10.2
    Remove that line.
     
  7. eva2000

    eva2000 Administrator Staff Member

    54,907
    12,240
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +18,811
    Local Time:
    12:05 AM
    Nginx 1.27.x
    MariaDB 10.x/11.4+
    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