Learn about Centmin Mod LEMP Stack today
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

    37
    5
    8
    Feb 27, 2015
    Ratings:
    +9
    Local Time:
    12:51 AM
    1.7
    10
    Code:
    [[email protected] centminmod]# ngxrestart
    Restarting nginx (via systemctl):  Job for nginx.service failed. See 'systemctl status nginx.service' and 'journalctl -xn' for details.
                                                               [FAILED]
    [[email protected] 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

    37
    5
    8
    Feb 27, 2015
    Ratings:
    +9
    Local Time:
    12:51 AM
    1.7
    10
  3. rdan

    rdan Premium Member Premium Member

    4,420
    1,059
    113
    May 25, 2014
    Ratings:
    +1,543
    Local Time:
    1:51 PM
    Mainline
    10.2
    Remove this include file "vts_http.conf" on every vhost you have, including the virtual.conf.
     
  4. Chris

    Chris Member

    37
    5
    8
    Feb 27, 2015
    Ratings:
    +9
    Local Time:
    12:51 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

    37
    5
    8
    Feb 27, 2015
    Ratings:
    +9
    Local Time:
    12:51 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 Premium Member Premium Member

    4,420
    1,059
    113
    May 25, 2014
    Ratings:
    +1,543
    Local Time:
    1:51 PM
    Mainline
    10.2
    Remove that line.
     
  7. eva2000

    eva2000 Administrator Staff Member

    37,355
    8,162
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +12,563
    Local Time:
    3:51 PM
    Nginx 1.15.x
    MariaDB 5.5/10.x
    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
     
..