Join the community today
Become a Member

Nginx Unable to reboot nginx?

Discussion in 'Nginx, PHP-FPM & MariaDB MySQL' started by joshuah, May 30, 2017.

  1. joshuah

    joshuah Member

    115
    14
    18
    Apr 3, 2017
    Ratings:
    +16
    Local Time:
    1:13 PM
    For some reason I cant restart nginx.. it just hangs on "Restarting nginx (via systemctl):"

    I tried upgrading nginx as well, but same thing?
    • Centmin Mod Version Installed: 123.09beta01
    • Nginx Version Installed: i.e. 1.13.0
    • Persistent Config:
      Code:
       
      cat /etc/centminmod/custom_config.inc
      LETSENCRYPT_DETECT='y'
      CLANG='n'
      PHP_PGO='y'
      GCCINTEL_PHP='y'
      DEVTOOLSETSIX='n'
      NGINX_DEVTOOLSETGCC='y'
      NGXDYNAMIC_BROTLI='y'
      NGINX_LIBBROTLI='y'
      NGXDYNAMIC_NGXPAGESPEED='y'
      NGINX_PAGESPEED='y'
      # LibreSSL
      LIBRESSL_SWITCH='y'        # if set to 'y' it overrides OpenSSL as the default static compiled option for Nginx server
      LIBRESSL_VERSION='2.5.4'   # Use this version of LibreSSL http://www.libressl.org/
     
  2. joshuah

    joshuah Member

    115
    14
    18
    Apr 3, 2017
    Ratings:
    +16
    Local Time:
    1:13 PM
    all good...

    Code:
    May 30 12:58:23 host1 systemd: nginx.service never wrote its PID file. Failing.
    it's fixed now.
     
  3. eva2000

    eva2000 Administrator Staff Member

    29,051
    6,593
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +9,789
    Local Time:
    1:13 PM
    Nginx 1.13.x
    MariaDB 5.5
    in future if nginx is unable to start you can test check the nginx config via
    Code (Text):
    nginx -t
    

    should give you clues as to the problem
     
  4. eva2000

    eva2000 Administrator Staff Member

    29,051
    6,593
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +9,789
    Local Time:
    1:13 PM
    Nginx 1.13.x
    MariaDB 5.5
    FYI, you don't need to set LIBRESSL_VERSION='2.5.4' in persistent config file as it's the default version already :)