Learn about Centmin Mod LEMP Stack today
Register Now

Nginx Nginx Fails to Start

Discussion in 'Nginx, PHP-FPM & MariaDB MySQL' started by Itworx4me, Apr 14, 2019.

  1. Itworx4me

    Itworx4me Premium Member Premium Member

    196
    21
    18
    Mar 14, 2017
    Ratings:
    +34
    Local Time:
    5:06 AM
    Nginx 1.17.X
    MariaDB 10.3.X
    Please fill in any relevant information that applies to you:
    • CentOS Version: CentOS 7 64bit ?
    • Centmin Mod Version Installed: 123.09beta01
    • Nginx Version Installed: 1.15.11
    • PHP Version Installed: 7.3.4
    • MariaDB MySQL Version Installed: 10.3.14
    • When was last time updated Centmin Mod code base ? : i.e. run centmin.sh menu option 23 submenu option 2 or cmupdate command
    • Persistent Config: Do you have any persistent config file options set in /etc/centminmod/custom_config.inc ? You can check via this command:
      Code (Text):
      PHP_PGO='y'
      LETSENCRYPT_DETECT='y'
      MENUEXIT_ALWAYS_YUMCHECK='y'
      ENABLE_MARIADBTENTWOUPGRADE='y'
      ENABLE_MARIADBTENTHREEUPGRADE='y'
      DISABLE_IPVSIX='y'
      NGINX_GEOIPTWOLITE='y'
      NGXDYNAMIC_GEOIPTWOLITE='y'
      
      

      I rebooted my server and now nginx fails to start
      Code (Text):
      Restarting nginx (via systemctl):  Job for nginx.service failed because the control process exited with error code. See "systemctl status nginx.service" and "journalctl -xe" for details.
                                                                 [FAILED]


      Need some help.
    Thanks,
    Itworx4me
     
  2. eva2000

    eva2000 Administrator Staff Member

    42,751
    9,673
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +14,928
    Local Time:
    11:06 PM
    Nginx 1.17.x
    MariaDB 5.5/10.x
    output for nginx config test check?
    Code (Text):
    nginx -t
     
  3. Itworx4me

    Itworx4me Premium Member Premium Member

    196
    21
    18
    Mar 14, 2017
    Ratings:
    +34
    Local Time:
    5:06 AM
    Nginx 1.17.X
    MariaDB 10.3.X
    It was my fault. I started to install the geolp2 but was waiting for your reply the other day. Never finished the nginx step. So when I rebooted the server it restarted all the services and took nginx down. :( Back everything out and nginx starte working again.


    This step still confuses me: When to expect GeoIp2 in centminmod? as there is no location in the /usr/local/nginx/conf/nginx.conf. Then you suggest something completely different from the original install docs. When to expect GeoIp2 in centminmod?

    I wouldn't be confused if you had said where this code
    Code:
    if ($country_code_allowed = deny) {
      return 444;
    }
    
    location / {
     
    }
    goes and which file to edit.

    Thanks,
    Itworx4me
     
  4. eva2000

    eva2000 Administrator Staff Member

    42,751
    9,673
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +14,928
    Local Time:
    11:06 PM
    Nginx 1.17.x
    MariaDB 5.5/10.x