Discover Centmin Mod today
Register Now

Install csf not installed

Discussion in 'Install & Upgrades or Pre-Install Questions' started by Eddie, Sep 24, 2020.

  1. Eddie

    Eddie New Member

    6
    0
    1
    Oct 4, 2018
    Ratings:
    +0
    Local Time:
    8:57 PM
    Please fill in any relevant information that applies to you:
    • CentOS Version: i.e. CentOS 6 32bit or 64bit / CentOS 7 64bit ?
    • Centmin Mod Version Installed: i.e. 123.08stable or 123.09beta01
    • Nginx Version Installed: i.e. 1.15.3
    • PHP Version Installed: i.e. 5.6.37, 7.0.31, 7.1.21, 7.2.9
    • MariaDB MySQL Version Installed: i.e. 10.0.x or 10.1.xx or 10.2.xx
    • 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):
      cat /etc/centminmod/custom_config.inc
      [*]ZONEINFO='[Asia/Seoul]'
      [*]NGINX_SSLCACHE_ALLOWOVERRIDE='y'
      NGINX_STAPLE_CACHE_OVERRIDE='y'
      NGINX_STAPLE_CACHE_TTL='86400'
      AUTOHARDTUNE_NGINXBACKLOG='y'
      LETSENCRYPT_DETECT='y'
      DUALCERTS='y'
      SELFSIGNEDSSL_ECDSA='y'
      NGINX_LIBBROTLI='y'
      NGXDYNAMIC_BROTLI='y'
      PHP_PGO_ALWAYS='y'
      PHP_PGO='y'
      PHP_BROTLI='y'
      PHP_LZFOUR='y'
      PHP_LZF='y'
      PHP_ZSTD='y'
      PHPFINFO='y'
      MARCH_TARGETNATIVE='y'
      PHP_PGO_ALWAYS='y'
      NGINX_IOURING_PATCH='y'
      #####################################################
      # Timestamp Install
      TIME_NGINX='y'
      TIME_PHPCONFIGURE='y'
      TIME_MEMCACHED='y'
      TIME_IMAGEMAGICK='y'
      TIME_REDIS='y'
      #####################################################
      LIBRESSL_SWITCH='y'
      #LIBRESSL_VERSION='2.9.2'
      LETSENCRYPT_DETECT='y'
      #####################################################
      # Nginx Dynamic Module Switches
      NGINX_DYNAMICTLS='y'
      NGXDYNAMIC_GEOIPTWOLITE='y'
      NGXDYNAMIC_BROTLI='y'
      NGXDYNAMIC_NGXPAGESPEED='n'     # PageSpeed
      NGXDYNAMIC_HEADERSMORE='y'
      NGXDYNAMIC_SETMISC='y'
      NGXDYNAMIC_ECHO='y'
      NGXDYNAMIC_IMAGEFILTER='y'
      NGXDYNAMIC_VHOSTSTATS='n'
      #####################################################
      
      #####################################################
      NGINX_HPACK='y'
      NGINX_GEOIPTWOLITE='y'          # https://github.com/leev/ngx_http_geoip2_module
      NGINX_LIBBROTLI='y'
      NGINX_VHOSTSTATS='n'            #
      STRIPNGINX='y'                  # set 'y' to strip nginx binary to reduce size
      NGINX_ZERODT='y'                # enable nginx zero downtime on the fly nginx binary upgrades
      NGINX_DYNAMICTLS='y'            # set 'y' and recompile nginx https://blog.cloudflare.com/optimizing-tls-over-tcp-to-reduce-latency/
      NGINX_IOURING_PATCH='y'
      
      
      

      Post output in CODE tags.

    Hi, csf is not installed with the following error
    Any idea?
    [centminlogs]# grep -r csf
    installer_240920-061919.log:csfinstalls
    installer_240920-061919.log:inc/csfinstall.inc: line 168: cd: /svr-setup/csf: No such file or directory
    installer_240920-061919.log:cp: cannot stat ‘/etc/csf/csf.conf’: No such file or directory
    installer_240920-061919.log:inc/csfinstall.inc: line 176: csf: command not found
    installer_240920-061919.log:inc/csfinstall.inc: line 177: csf: command not found
    installer_240920-061919.log:CSF adding memcached, varnish ports to csf.allow list...
    installer_240920-061919.log:sed: can't read /etc/csf/csf.conf: No such file or directory
    installer_240920-061919.log:sed: can't read /etc/csf/csf.conf: No such file or directory
    installer_240920-061919.log:sed: can't read /etc/csf/csf.conf: No such file or directory
    installer_240920-061919.log:sed: can't read /etc/csf/csf.conf: No such file or directory
    installer_240920-061919.log:sed: can't read /etc/csf/csf.conf: No such file or directory
    installer_240920-061919.log:sed: can't read /etc/csf/csf.conf: No such file or directory
    installer_240920-061919.log:grep: /etc/csf/csf.conf: No such file or directory
    installer_240920-061919.log:sed: can't read /etc/csf/csf.conf: No such file or directory
    installer_240920-061919.log:grep: /etc/csf/csf.pignore: No such file or directory
    installer_240920-061919.log:inc/csfinstall.inc: line 205: /etc/csf/csf.pignore: No such file or directory
    installer_240920-061919.log:inc/csfinstall.inc: line 278: csf: command not found
    installer_240920-061919.log:systemctl enable csf.service
    installer_240920-061919.log:inc/csfinstall.inc: line 281: csf: command not found
    installer_240920-061919.log: Add to /etc/csf/csf.allow
    installer_240920-061919.log:awk: fatal: cannot open file `/etc/csf/csf.conf' for reading (No such file or directory)
    installer_240920-061919.log:sed: can't read /etc/csf/csf.ignore: No such file or directory
    installer_240920-061919.log:csfcron_setup
    installer_240920-061919.log:sed: can't read /etc/csf/csf.conf: No such file or directory
    installer_240920-061919.log:sed: can't read /etc/csf/csf.conf: No such file or directory
    installer_240920-061919.log:inc/pureftpd.inc: line 112: csf: command not found
    installer_240920-061919.log:* csf stop/start/restart = csfstop/csfstart/csfrestart
    installer_240920-061919.log:Redirecting to /bin/systemctl start csf.service
    installer_240920-061919.log:Failed to start csf.service: Unit not found.
    installer_240920-061919.log:which: no csf in (/opt/rh/devtoolset-9/root/usr/bin:/opt/rh/devtoolset-9/root/usr/bin:/opt/rh/devtoolset-9/root/usr/bin:/opt/rh/devtoolset-9/root/usr/bin:/opt/rh/devtoolset-9/root/usr/bin:/opt/rh/devtoolset-9/root/usr/bin:/opt/rh/devtoolset-9/root/usr/bin:/opt/rh/devtoolset-9/root/usr/bin:/opt/rh/devtoolset-9/root/usr/bin:/opt/rh/devtoolset-9/root/usr/bin:/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin:/root/bin)
     
  2. eva2000

    eva2000 Administrator Staff Member

    45,441
    10,312
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +15,994
    Local Time:
    9:57 PM
    Nginx 1.19.x
    MariaDB 5.5/10.x
    Who's your web host ? did you install Centmin Mod as full root user or a sudo user ? Centmin Mod only supports install as full root user rather than sudo user.

    So as sudo user run the following before installing
    Code (Text):
    sudo su -

    How did you install Centmin Mod ? share the exact commands/steps you used.

    Would need full install log as outlined at Install - How to troubleshoot Centmin Mod initial install issues
     
  3. eva2000

    eva2000 Administrator Staff Member

    45,441
    10,312
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +15,994
    Local Time:
    9:57 PM
    Nginx 1.19.x
    MariaDB 5.5/10.x
    oh unrelated, I'd set LIBRESSL_SWITCH='n' as OpenSSL 1.1.1 is faster than using LibreSSL for Nginx HTTPS.
     
  4. Eddie

    Eddie New Member

    6
    0
    1
    Oct 4, 2018
    Ratings:
    +0
    Local Time:
    8:57 PM
    Oh, thanks for letting me know about LIBRESSL_SWITCH.

    I did the following for installation.

    [root@ip-172-31-26-235 ~]# yum -y update; curl -O https://centminmod.com/betainstaller74.sh && chmod 0700 betainstaller74.sh && bash betainstaller74.sh

    [root@ip-172-31-26-235 ~]# csf
    -bash: csf: command not found

    Thank you in advance.