Learn about Centmin Mod LEMP Stack today
Register Now

Install Nginx PHP-FPM PHP & Nginx Not Installed By Default.

Discussion in 'Install & Upgrades or Pre-Install Questions' started by Varun, Apr 10, 2018.

  1. Varun

    Varun Premium Member Premium Member

    36
    2
    8
    Apr 6, 2018
    India, Tamil Nadu, Chennai
    Ratings:
    +3
    Local Time:
    2:08 PM
    1.13.11
    I installed Latest Beta Version Using the below CMD

    Add new php 7.2.2+ default installer
    Code (Text):
    yum -y update; curl -O https://centminmod.com/betainstaller72.sh && chmod 0700 betainstaller72.sh && bash betainstaller72.sh 




    And got the below response.
    Code (Text):
    **********************************************************************
    * Starting Services...
    **********************************************************************
    Starting 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]
    ./centmin.sh: line 1943: /etc/init.d/mysql: No such file or directory
    
    
    *************************************************
    * Increase system Entropy pool availability
    *************************************************
    
    
    File contains no section headers.
    file: file:///etc/yum.repos.d/varnishcache_varnish41.repo, line: 1
    'priority=2\n'
    Failed to execute operation: No such file or directory
    Failed to restart haveged.service: Unit not found.
    [Service]
    ExecStart=
    ExecStart=/usr/sbin/haveged -w 4067 -v 1 --Foreground
    *************************************************
    * Post-Install Check List....
    *************************************************
    
    --------------------------------------------------------
    Check ccache Version:
    --------------------------------------------------------
    ccache version 3.4.1
    
    Copyright (C) 2002-2007 Andrew Tridgell
    Copyright (C) 2009-2018 Joel Rosdahl
    
    This program is free software; you can redistribute it and/or modify it under
    the terms of the GNU General Public License as published by the Free Software
    Foundation; either version 3 of the License, or (at your option) any later
    version.
    
    --------------------------------------------------------
    Check Nginx Version:
    --------------------------------------------------------
    which: no nginx in (/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin:/root/bin)
    can not find nginx binary.. install failed
    
    --------------------------------------------------------
    Check PHP-FPM Version:
    --------------------------------------------------------
    which: no php in (/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin:/root/bin)
    inc/centminfinish.inc: line 77: -v: command not found
    
    --------------------------------------------------------
    Check MariaDB installed RPM Versions:
    --------------------------------------------------------
    mariadb-libs-5.5.56-2.el7.x86_64
    
    --------------------------------------------------------
    Check Memcached Server Version:
    --------------------------------------------------------
    memcached 1.5.7
    
    --------------------------------------------------------
    Check CSF Firewall Version:
    --------------------------------------------------------
    csf: v12.02 (generic)
    
    --------------------------------------------------------
    Check Siege Benchmark Version:
    --------------------------------------------------------
    SIEGE 4.0.4
    
    Copyright (C) 2017 by Jeffrey Fulmer, et al.
    This is free software; see the source for copying conditions.
    There is NO warranty; not even for MERCHANTABILITY or FITNESS
    FOR A PARTICULAR PURPOSE.
    
    
    --------------------------------------------------------
    Check mysqlreport version:
    --------------------------------------------------------
    mysqlreport v3.5-maria11 Jul 4 2013
    
    --------------------------------------------------------
    Check pure-ftpd Version:
    --------------------------------------------------------
    which: no pure-ftpd in (/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin:/root/bin)
    inc/centminfinish.inc: line 182: -h: command not found
    
    --------------------------------------------------------
    Check YUM Repo List
    --------------------------------------------------------
    Loaded plugins: fastestmirror, priorities, versionlock
    
    
    File contains no section headers.
    file: file:///etc/yum.repos.d/varnishcache_varnish41.repo, line: 1
    'priority=2\n'
    
    
    



    IN this you can see nginx and php is not installed.

    Till yesterday it was working good. but today i tried 2 times. and PHP & NGINX Is not installing By Default.


    I am using CentOS 7 And a droplet from Digitalocean
     
  2. eva2000

    eva2000 Administrator Staff Member

    35,603
    7,841
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +12,085
    Local Time:
    6:38 PM
    Nginx 1.15.x
    MariaDB 5.5/10.x
    Seems something happened at varnish and yum repo yum priority processing stage to mess up the repo file which will cause a cascading issue as other yum packages depending on working yum repos would also fail.

    You'll need to post on the forums with the following info
    • Server or VPS details ? XEN, KVM, OpenVZ, VMWare or dedicated server ? OS ? CentOS 6.9 or 7.4 ? 32bit or 64bit ?

    Troubleshooting Initial Install



    To troubleshoot initial installation, you need to check the initial install log at /root/centminlogs and instructions under Sharing logs and errors heading for using Pastebin.com or Gists to share a sanitised version of the contents of the initial install log. You can see full details at How to troubleshoot Centmin Mod initial install issues

    Example list /root/centminlogs files in date ascending order and grep for install.log
    Code (Text):
    ls -lahrt /root/centminlogs | grep install.log
    

    example output returns install log at /root/centminlogs/centminmod_1.2.3-eva2000.09.001_111016-112321_install.log
    Code (Text):
    ls -lahrt /root/centminlogs | grep install.log
    -rw-r--r--  1 root root 2.2M Oct 11 01:40 centminmod_1.2.3-eva2000.09.001_111016-112321_install.log
    

    in SSH use cat to ouput contents of /root/centminlogs/centminmod_1.2.3-eva2000.09.001_111016-112321_install.log. Clear your SSH client window/buffer so only output is the contents of the file
    Code (Text):
    cat /root/centminlogs/centminmod_1.2.3-eva2000.09.001_111016-112321_install.log
    

    Then copy and paste into Pastebin.com or Gists entry. If your SSH window scroll buffer isn't that large to get the whole contents of the install log, you can download file manually and copy and paste contents. But makes sure it's sanitised version of the contents of the initial install log as outlined at How to troubleshoot Centmin Mod initial install issues
     
  3. eva2000

    eva2000 Administrator Staff Member

    35,603
    7,841
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +12,085
    Local Time:
    6:38 PM
    Nginx 1.15.x
    MariaDB 5.5/10.x
    Also DO having alot of server reboots due to meltdown/spectre fixes along with vestacp exploit and outbound DDOS attack blocking may cause issues too https://status.digitalocean.com/

    which region was your DO droplet in ?
     
  4. Varun

    Varun Premium Member Premium Member

    36
    2
    8
    Apr 6, 2018
    India, Tamil Nadu, Chennai
    Ratings:
    +3
    Local Time:
    2:08 PM
    1.13.11
    @eva2000

    Here you go with the info


    Please guide me on what i should do.

    I instaled nginx from centmin menu 4
     
  5. eva2000

    eva2000 Administrator Staff Member

    35,603
    7,841
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +12,085
    Local Time:
    6:38 PM
    Nginx 1.15.x
    MariaDB 5.5/10.x
    You sure that is correct server's install log ? as that log shows nginx installed properly as is php

    Code (Text):
    --------------------------------------------------------
    Check Nginx Version:
    --------------------------------------------------------
    nginx version: nginx/1.13.11
    built by gcc 7.2.1 20170829 (Red Hat 7.2.1-1) (GCC)
    built with OpenSSL 1.1.0h  27 Mar 2018
    TLS SNI support enabled
    configure arguments: --with-ld-opt='-ljemalloc -Wl,-z,relro -Wl,-rpath,/usr/local/lib' --with-cc-opt='-m64 -march=native -DTCP_FASTOPEN=23 -g -O3 -fstack-protector-strong -flto -fuse-ld=gold --param=ssp-buffer-size=4 -Wformat -Werror=format-security -Wimplicit-fallthrough=0 -fcode-hoisting -Wp,-D_FORTIFY_SOURCE=2 -gsplit-dwarf' --sbin-path=/usr/local/sbin/nginx --conf-path=/usr/local/nginx/conf/nginx.conf --with-compat --with-http_stub_status_module --with-http_secure_link_module --with-libatomic --with-http_gzip_static_module --with-http_sub_module --with-http_addition_module --with-http_image_filter_module=dynamic --with-http_geoip_module --with-stream_geoip_module --with-stream_realip_module --with-stream_ssl_preread_module --with-threads --with-stream=dynamic --with-stream_ssl_module --with-http_realip_module --add-dynamic-module=../ngx-fancyindex-0.4.2 --add-module=../ngx_cache_purge-2.4.2 --add-module=../ngx_devel_kit-0.3.0 --add-dynamic-module=../set-misc-nginx-module-0.31 --add-dynamic-module=../echo-nginx-module-0.61 --add-module=../redis2-nginx-module-0.14 --add-module=../ngx_http_redis-0.3.7 --add-module=../memc-nginx-module-0.18 --add-module=../srcache-nginx-module-0.31 --add-dynamic-module=../headers-more-nginx-module-0.33 --with-pcre=../pcre-8.42 --with-pcre-jit --with-zlib=../zlib-cloudflare-1.3.0 --with-http_ssl_module --with-http_v2_module --with-openssl=../openssl-1.1.0h --with-openssl-opt='enable-ec_nistp_64_gcc_128'
    
    --------------------------------------------------------
    Check PHP-FPM Version:
    --------------------------------------------------------
    PHP 7.2.4 (cli) (built: Apr  9 2018 09:19:40) ( NTS )
    Copyright (c) 1997-2018 The PHP Group
    Zend Engine v3.2.0, Copyright (c) 1998-2018 Zend Technologies
        with Zend OPcache v7.2.4, Copyright (c) 1999-2018, by Zend Technologies
     
  6. Varun

    Varun Premium Member Premium Member

    36
    2
    8
    Apr 6, 2018
    India, Tamil Nadu, Chennai
    Ratings:
    +3
    Local Time:
    2:08 PM
    1.13.11
    Hi,
    Before posting here. i installed the nginx mannually by using cenmin menu 4

    but this what i got in log

    Code (Text):
    [1;33;40m--------------------------------------------------------
    (B[m[1;33;40mCheck Nginx Version:
    (B[m[1;33;40m--------------------------------------------------------
    (B[mwhich: no nginx in (/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin:/root/bin)
    can not find nginx binary.. install failed
    
    [1;33;40m--------------------------------------------------------
    (B[m[1;33;40mCheck PHP-FPM Version:
    (B[m[1;33;40m--------------------------------------------------------
    (B[mwhich: no php in (/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin:/root/bin)
    inc/centminfinish.inc: line 77: -v: command not found
    
    
     
  7. eva2000

    eva2000 Administrator Staff Member

    35,603
    7,841
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +12,085
    Local Time:
    6:38 PM
    Nginx 1.15.x
    MariaDB 5.5/10.x
    so was a centmin.sh menu option 4 run - which needs nginx upgrade log check

    try re-running centmin.sh menu option 4 again and if it errors post nginx upgrade log

    To troubleshoot, you need to check the full nginx upgrade log at /root/centminlogs and instructions under Sharing logs and errors heading for using Pastebin.com or Gists to share a sanitised version of the contents of the nginx_upgrade.log log. You can see full details at How to troubleshoot Centmin Mod initial install issues

    also what's output of
    Code (Text):
    nginx -t

    when you run centmin.sh menu option 4 there's a nginx upgrade log timestamped at /root/centminlogs

    if you type this command it lists all logs in date ascending order so latest log at bottom
    Code (Text):
    ls -lArt /root/centminlogs

    so copy the entire contents of latest nginx_upgrade log to gist.github.com or pastebin.com

    you can use grep to filter the logs, i.e. look for nginx_upgrade in log name
    Code (Text):
    ls -lahrt /root/centminlogs/ | grep nginx_upgrade
    -rw-r--r--  1 root root 3.2M Oct 11 15:55 centminmod_1.2.3-eva2000.09.001_111016-155345_nginx_upgrade.log
    -rw-r--r--  1 root root 672K Oct 11 22:06 centminmod_1.2.3-eva2000.09.001_111016-220515_nginx_upgrade.log

    So the last nginx upgrade log was named centminmod_1.2.3-eva2000.09.001_111016-220515_nginx_upgrade.log and located at /root/centminlogs/centminmod_1.2.3-eva2000.09.001_111016-220515_nginx_upgrade.log

    then use cat command to output the contents of that log

    clear your ssh window buffer/screen and type
    Code (Text):
    cat /root/centminlogs/centminmod_1.2.3-eva2000.09.001_111016-220515_nginx_upgrade.log

    then select and copy and paste output to pastebin.com or gist.github.com file to share. If your SSH client's scroll buffer isn't large enough using cat might not output the entire log file contents, so you may need to download the log and use local text editor to open and copy and paste.

    so only need content of one specific log, in this case most recent nginx_upgrade.log log
     
  8. Varun

    Varun Premium Member Premium Member

    36
    2
    8
    Apr 6, 2018
    India, Tamil Nadu, Chennai
    Ratings:
    +3
    Local Time:
    2:08 PM
    1.13.11
    Again !! before posting i was succesfully able to install nginx using centmin menu 4 option.

    but is that safe?
     
  9. eva2000

    eva2000 Administrator Staff Member

    35,603
    7,841
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +12,085
    Local Time:
    6:38 PM
    Nginx 1.15.x
    MariaDB 5.5/10.x
    You mean re-trying centmin.sh menu option 4 a 2nd time worked ? Whether it's 100% working would need to check your nginx upgrade log and see if nginx test config and restart works via commands

    Code (Text):
    nginx -t
    ngxrestart
    nginx -V
    
     
  10. eva2000

    eva2000 Administrator Staff Member

    35,603
    7,841
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +12,085
    Local Time:
    6:38 PM
    Nginx 1.15.x
    MariaDB 5.5/10.x
    fyi,
    Code (Text):
    [1;33;40m--------------------------------------------------------
    (B[m[1;33;40mCheck Nginx Version:
    (B[m[1;33;40m--------------------------------------------------------
    (B[mwhich: no nginx in (/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin:/root/bin)
    can not find nginx binary.. install failed
    
    [1;33;40m--------------------------------------------------------
    (B[m[1;33;40mCheck PHP-FPM Version:
    (B[m[1;33;40m--------------------------------------------------------
    (B[mwhich: no php in (/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin:/root/bin)
    inc/centminfinish.inc: line 77: -v: command not found
    

    this output check only happens on centmin initial install runs, centmin.sh menu option 4 runs don't show such check versions that's why i assumed it was initial install errors as centmin.sh menu optio 4 runs do not show such check info

    on centmin.sh menu option 4 recompile of nginx you'll get output similar to below
    Code (Text):
    nginx -V
    nginx version: nginx/1.13.11
    built by gcc 7.2.1 20170829 (Red Hat 7.2.1-1) (GCC) 
    built with OpenSSL 1.1.0h  27 Mar 2018
    TLS SNI support enabled
    configure arguments: --with-ld-opt='-ljemalloc -Wl,-z,relro -Wl,-rpath,/usr/local/lib' --with-cc-opt='-m64 -march=native -g -O3 -fstack-protector-strong -flto -fuse-ld=gold --param=ssp-buffer-size=4 -Wformat -Werror=format-security -Wimplicit-fallthrough=0 -fcode-hoisting -Wp,-D_FORTIFY_SOURCE=2 -gsplit-dwarf' --sbin-path=/usr/local/sbin/nginx --conf-path=/usr/local/nginx/conf/nginx.conf --with-compat --with-http_stub_status_module --with-http_secure_link_module --with-libatomic --with-http_gzip_static_module --with-http_sub_module --with-http_addition_module --with-http_image_filter_module=dynamic --with-http_geoip_module --with-stream_geoip_module --with-stream_realip_module --with-stream_ssl_preread_module --with-threads --with-stream=dynamic --with-stream_ssl_module --with-http_realip_module --add-dynamic-module=../ngx-fancyindex-0.4.2 --add-module=../ngx_cache_purge-2.4.2 --add-module=../ngx_devel_kit-0.3.0 --add-dynamic-module=../set-misc-nginx-module-0.31 --add-dynamic-module=../echo-nginx-module-0.61 --add-module=../redis2-nginx-module-0.14 --add-module=../ngx_http_redis-0.3.7 --add-module=../memc-nginx-module-0.18 --add-module=../srcache-nginx-module-0.31 --add-dynamic-module=../headers-more-nginx-module-0.33 --with-pcre=../pcre-8.42 --with-pcre-jit --with-zlib=../zlib-cloudflare-1.3.0 --with-http_ssl_module --with-http_v2_module --with-openssl=../openssl-1.1.0h --with-openssl-opt='enable-ec_nistp_64_gcc_128'
    
    nginx: the configuration file /usr/local/nginx/conf/nginx.conf syntax is ok
    nginx: configuration file /usr/local/nginx/conf/nginx.conf test is successful
    
    dynamic modules include file /usr/local/nginx/conf/dynamic-modules.conf
    -rw-r--r-- 1 root root 520 Apr 10 13:37 /usr/local/nginx/conf/dynamic-modules.conf
    
    # place custom load_module lines in this dynamic-modules-includes.conf
    # file so that they persistent i.e. for manually dropped in dynamic modules
    include /usr/local/nginx/conf/dynamic-modules-includes.conf;
    load_module "modules/ngx_http_image_filter_module.so";
    load_module "modules/ngx_http_headers_more_filter_module.so";
    load_module "modules/ngx_http_set_misc_module.so";
    load_module "modules/ngx_http_echo_module.so";
    load_module "modules/ngx_http_fancyindex_module.so";
    load_module "modules/ngx_stream_module.so";
    
    dynamic module directory at /usr/local/nginx/modules
    total 824K
    drwxr-xr-x  2 root root 4.0K Apr 10 13:40 .
    drwxr-xr-x 10 root root 4.0K Apr 10 10:23 ..
    -rwxr-xr-x  1 root root  63K Apr 10 13:40 ngx_http_echo_module.so
    -rwxr-xr-x  1 root root  63K Apr 10 10:14 ngx_http_echo_module.so.old
    -rwxr-xr-x  1 root root  29K Apr 10 13:40 ngx_http_fancyindex_module.so
    -rwxr-xr-x  1 root root  29K Apr 10 10:14 ngx_http_fancyindex_module.so.old
    -rwxr-xr-x  1 root root  42K Apr 10 13:40 ngx_http_headers_more_filter_module.so
    -rwxr-xr-x  1 root root  42K Apr 10 10:14 ngx_http_headers_more_filter_module.so.old
    -rwxr-xr-x  1 root root  28K Apr 10 13:40 ngx_http_image_filter_module.so
    -rwxr-xr-x  1 root root  28K Apr 10 10:14 ngx_http_image_filter_module.so.old
    -rwxr-xr-x  1 root root  40K Apr 10 13:40 ngx_http_set_misc_module.so
    -rwxr-xr-x  1 root root  40K Apr 10 10:14 ngx_http_set_misc_module.so.old
    -rwxr-xr-x  1 root root 198K Apr 10 13:40 ngx_stream_module.so
    -rwxr-xr-x  1 root root 198K Apr 10 10:14 ngx_stream_module.so.old
    
    backup dynamic modules to /usr/local/nginx/modules.copy
    total 824K
    drwxr-xr-x  2 root root 4.0K Apr 10 13:40 .
    drwxr-xr-x 11 root root 4.0K Apr 10 13:40 ..
    -rwxr-xr-x  1 root root  63K Apr 10 13:40 ngx_http_echo_module.so
    -rwxr-xr-x  1 root root  63K Apr 10 10:14 ngx_http_echo_module.so.old
    -rwxr-xr-x  1 root root  29K Apr 10 13:40 ngx_http_fancyindex_module.so
    -rwxr-xr-x  1 root root  29K Apr 10 10:14 ngx_http_fancyindex_module.so.old
    -rwxr-xr-x  1 root root  42K Apr 10 13:40 ngx_http_headers_more_filter_module.so
    -rwxr-xr-x  1 root root  42K Apr 10 10:14 ngx_http_headers_more_filter_module.so.old
    -rwxr-xr-x  1 root root  28K Apr 10 13:40 ngx_http_image_filter_module.so
    -rwxr-xr-x  1 root root  28K Apr 10 10:14 ngx_http_image_filter_module.so.old
    -rwxr-xr-x  1 root root  40K Apr 10 13:40 ngx_http_set_misc_module.so
    -rwxr-xr-x  1 root root  40K Apr 10 10:14 ngx_http_set_misc_module.so.old
    -rwxr-xr-x  1 root root 198K Apr 10 13:40 ngx_stream_module.so
    -rwxr-xr-x  1 root root 198K Apr 10 10:14 ngx_stream_module.so.old
    
    log files saved at /root/centminlogs
    -rw-r--r-- 1 root root  12K Apr 10 13:34 centminmod_123.09beta01.b017_100418-133216_yuminstall_centos7.log
    -rw-r--r-- 1 root root  38K Apr 10 13:35 centminmod_yumtimes_100418-133216.log
    -rw-r--r-- 1 root root   38 Apr 10 13:35 centminmod_profiletimes_100418-133216.log
    -rw-r--r-- 1 root root    0 Apr 10 13:35 patch_opensslpatches_100418-133216.log
    -rw-r--r-- 1 root root   45 Apr 10 13:37 centminmod_opensslinstalltime_100418-133216.log
    -rw-r--r-- 1 root root    8 Apr 10 13:37 patch_patchnginx_100418-133216.log
    -rw-r--r-- 1 root root 1.5K Apr 10 13:37 nginx-configure-100418-133216.log
    -rw-r--r-- 1 root root  25K Apr 10 13:40 nginx_autoconf.err.100418-133216.log
    -rw-r--r-- 1 root root 2.7M Apr 10 13:40 centminmod_123.09beta01.b017_100418-133216_nginx_upgrade.log
    
    *************************************************
    * nginx updated
    *************************************************
       _   _         _                _   _             _         _             _ 
      | \ | |  __ _ (_) _ __  __  __ | | | | _ __    __| |  __ _ | |_  ___   __| |
      |  \| | / _` || || '_ \ \ \/ / | | | || '_ \  / _` | / _` || __|/ _ \ / _` |
      | |\  || (_| || || | | | >  <  | |_| || |_) || (_| || (_| || |_|  __/| (_| |
      |_| \_| \__, ||_||_| |_|/_/\_\  \___/ | .__/  \__,_| \__,_| \__|\___| \__,_|
              |___/                         |_|       
    
     
  11. Varun

    Varun Premium Member Premium Member

    36
    2
    8
    Apr 6, 2018
    India, Tamil Nadu, Chennai
    Ratings:
    +3
    Local Time:
    2:08 PM
    1.13.11
    Ok Got it but even after upgrading

    When i try to start nginx i get the below error

    Code (Text):
    ‚óŹ 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; bad; vendor preset: disabled)
       Active: failed (Result: exit-code) since Tue 2018-04-10 13:39:32 UTC; 12s ago
         Docs: man:systemd-sysv-generator(8)
      Process: 15504 ExecStart=/etc/rc.d/init.d/nginx start (code=exited, status=5)
    
    Apr 10 13:39:32 jps.joeshop.co.uk systemd[1]: Starting SYSV: Nginx is an HTTP(S) server, HTTP(S) reverse proxy and IMAP/POP3 proxy server...
    Apr 10 13:39:32 jps.joeshop.co.uk systemd[1]: nginx.service: control process exited, code=exited status=5
    Apr 10 13:39:32 jps.joeshop.co.uk systemd[1]: Failed to start SYSV: Nginx is an HTTP(S) server, HTTP(S) reverse proxy and IMAP/POP3 proxy server.
    Apr 10 13:39:32 jps.joeshop.co.uk systemd[1]: Unit nginx.service entered failed state.
    Apr 10 13:39:32 jps.joeshop.co.uk systemd[1]: nginx.service failed.
    
    
    
     
  12. eva2000

    eva2000 Administrator Staff Member

    35,603
    7,841
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +12,085
    Local Time:
    6:38 PM
    Nginx 1.15.x
    MariaDB 5.5/10.x
  13. Varun

    Varun Premium Member Premium Member

    36
    2
    8
    Apr 6, 2018
    India, Tamil Nadu, Chennai
    Ratings:
    +3
    Local Time:
    2:08 PM
    1.13.11
    Hi,

    This what i got
    Code (Text):
    [13:54][[email protected] ~]# nginx -t
    -bash: nginx: command not found
    [13:54][[email protected] ~]# ngxrestart
    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]
    [13:54][[email protected] ~]# nginx -V
    -bash: nginx: command not found
    [13:54][[email protected] ~]#
    
    
    
    
    
     
  14. eva2000

    eva2000 Administrator Staff Member

    35,603
    7,841
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +12,085
    Local Time:
    6:38 PM
    Nginx 1.15.x
    MariaDB 5.5/10.x
    yup nginx not installed properly - so need that nginx upgrade log to find out why :)
     
  15. Varun

    Varun Premium Member Premium Member

    36
    2
    8
    Apr 6, 2018
    India, Tamil Nadu, Chennai
    Ratings:
    +3
    Local Time:
    2:08 PM
    1.13.11
    Hi,

    i checked but there is no upgrade log ! :-(
    Do you think a fresh install can solve it ?
     
  16. eva2000

    eva2000 Administrator Staff Member

    35,603
    7,841
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +12,085
    Local Time:
    6:38 PM
    Nginx 1.15.x
    MariaDB 5.5/10.x
    Strange there's no upgrade log, should show up on command below
    Code (Text):
    ls -lahrt /root/centminlogs/ | grep nginx_upgrade
    

    which will list most recent last for filename located in /root/centminlogs/ directory - every centmin.sh menu option has automatic logging of run routines to /root/centminlogs/

    Yeah if you had not data on it fresh CentOS 7 reinstall and fresh centmin mod install would be best - for all we know you could ran into DO network issues caused by recent VestaCP exploit which was making compromised VestaCP instance launching outbound DDOS attacks so DO blocked some traffic on those DO droplets and datacenters and also they had maintenance for meltdown/spectre server reboots happening.
     
  17. Varun

    Varun Premium Member Premium Member

    36
    2
    8
    Apr 6, 2018
    India, Tamil Nadu, Chennai
    Ratings:
    +3
    Local Time:
    2:08 PM
    1.13.11
    Ho OK. then i will do a fresh install
     
  18. Varun

    Varun Premium Member Premium Member

    36
    2
    8
    Apr 6, 2018
    India, Tamil Nadu, Chennai
    Ratings:
    +3
    Local Time:
    2:08 PM
    1.13.11
    @eva2000

    Reinstalled and keep getting the same issue.


    Code (Text):
    *WARNING* RESTRICT_SYSLOG is disabled. See SECURITY WARNING in /etc/csf/csf.conf.
    
    check /etc/pure-ftpd/pureftpd.passwd
    ls: cannot access /etc/pure-ftpd/pureftpd.passwd: No such file or directory
    
    check /etc/pure-ftpd/pureftpd.pdb
    ls: cannot access /etc/pure-ftpd/pureftpd.pdb: No such file or directory
    
    source_pcreinstall
    
    **********************************************************************
    * Add cmd shortcuts for php.ini, my.cnf, php-fpm.conf, nginx.conf and virtual.conf
    * Edit /etc/centminmod/custom_config.inc = customconfig
    * Edit php.ini = phpedit
    * Edit my.cnf = mycnf
    * Edit php-fpm.conf = fpmconf
    * Edit nginx.conf = nginxconf
    * Edit virtual.conf = vhostconf
    * nginx stop/start/restart = ngxstop/ngxstart/ngxrestart
    * php-fpm stop/start/restart = fpmstop/fpmstart/fpmrestart
    * mysql stop/start/restart = mysqlstop/mysqlstart/mysqlrestart
    * nginx + php-fpm stop/start/restart = npstop/npstart/nprestart
    * memcached stop/start/restart = memcachedstop/memcachedstart/memcachedrestart
    * csf stop/start/restart = csfstop/csfstart/csfrestart
    **********************************************************************
    grep: /usr/local/lib/php.ini: No such file or directory
    
    **********************************************************************
    * Starting Services...
    **********************************************************************
    Starting 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]
    ./centmin.sh: line 1943: /etc/init.d/mysql: No such file or directory
    
    
    *************************************************
    * Increase system Entropy pool availability
    *************************************************
    
    
    File contains no section headers.
    file: file:///etc/yum.repos.d/varnishcache_varnish41.repo, line: 1
    'priority=2\n'
    Failed to execute operation: No such file or directory
    Failed to restart haveged.service: Unit not found.
    [Service]
    ExecStart=
    ExecStart=/usr/sbin/haveged -w 4067 -v 1 --Foreground
    *************************************************
    * Post-Install Check List....
    *************************************************
    
    --------------------------------------------------------
    Check ccache Version:
    --------------------------------------------------------
    ccache version 3.4.1
    
    Copyright (C) 2002-2007 Andrew Tridgell
    Copyright (C) 2009-2018 Joel Rosdahl
    
    This program is free software; you can redistribute it and/or modify it under
    the terms of the GNU General Public License as published by the Free Software
    Foundation; either version 3 of the License, or (at your option) any later
    version.
    
    --------------------------------------------------------
    Check Nginx Version:
    --------------------------------------------------------
    which: no nginx in (/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin:/root/bin)
    can not find nginx binary.. install failed
    
    --------------------------------------------------------
    Check PHP-FPM Version:
    --------------------------------------------------------
    which: no php in (/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin:/root/bin)
    inc/centminfinish.inc: line 77: -v: command not found
    
    --------------------------------------------------------
    Check MariaDB installed RPM Versions:
    --------------------------------------------------------
    mariadb-libs-5.5.56-2.el7.x86_64
    
    --------------------------------------------------------
    Check Memcached Server Version:
    --------------------------------------------------------
    memcached 1.5.7
    
    --------------------------------------------------------
    Check CSF Firewall Version:
    --------------------------------------------------------
    csf: v12.02 (generic)
    
    --------------------------------------------------------
    Check Siege Benchmark Version:
    --------------------------------------------------------
    SIEGE 4.0.4
    
    Copyright (C) 2017 by Jeffrey Fulmer, et al.
    This is free software; see the source for copying conditions.
    There is NO warranty; not even for MERCHANTABILITY or FITNESS
    FOR A PARTICULAR PURPOSE.
    
    
    --------------------------------------------------------
    Check mysqlreport version:
    --------------------------------------------------------
    mysqlreport v3.5-maria11 Jul 4 2013
    
    --------------------------------------------------------
    Check pure-ftpd Version:
    --------------------------------------------------------
    which: no pure-ftpd in (/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin:/root/bin)
    inc/centminfinish.inc: line 182: -h: command not found
    
    --------------------------------------------------------
    Check YUM Repo List
    --------------------------------------------------------
    Loaded plugins: fastestmirror, priorities, versionlock
    
    
    File contains no section headers.
    file: file:///etc/yum.repos.d/varnishcache_varnish41.repo, line: 1
    'priority=2\n'
    
    
    [[email protected] ~]# ngrestart
    -bash: ngrestart: command not found
    [[email protected] ~]# ngxrestart
    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]
    
    
     
  19. eva2000

    eva2000 Administrator Staff Member

    35,603
    7,841
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +12,085
    Local Time:
    6:38 PM
    Nginx 1.15.x
    MariaDB 5.5/10.x
  20. Varun

    Varun Premium Member Premium Member

    36
    2
    8
    Apr 6, 2018
    India, Tamil Nadu, Chennai
    Ratings:
    +3
    Local Time:
    2:08 PM
    1.13.11
    @eva2000

    Here you go with the log

    Custom Link :

    Gist Link :
     
..