Learn about Centmin Mod LEMP Stack today
Become a Member

Install Error Installing Centmin

Discussion in 'Install & Upgrades or Pre-Install Questions' started by gasak, Aug 7, 2018.

  1. gasak

    gasak Member

    32
    4
    8
    May 15, 2017
    Ratings:
    +6
    Local Time:
    5:58 AM
    1.13.0
    10.1.23-MariaDB
    Please fill in any relevant information that applies to you:
    • CentOS Version: i.e. CentOS 6 64bit
    • Centmin Mod Version Installed: 123.09beta01
    • Nginx Version Installed: can't check
    • PHP Version Installed: can't check
    • MariaDB MySQL Version Installed: can't check
    • When was last time updated Centmin Mod code base ? : run centmin.sh menu option 23 submenu option 2
    • Persistent Config: Do you have any persistent config file options set in /etc/centminmod/custom_config.inc ? No
    Hi @eva2000,

    I thinks there's an error when installing centminmod. I use this command to install:
    Code:
    yum -y update; curl -O https://centminmod.com/betainstaller.sh && chmod 0700 betainstaller.sh && bash betainstaller.sh
    When done try to run centmin.sh but got this error:
    Code:
    [12:33][[email protected] ~]# php -v
    -bash: php: command not found
    [12:33][[email protected] ~]# centmin
    /usr/local/src/centminmod ~
    
    update wget to 1.19.4 version... one time task
    /usr/local/src/centminmod/addons/wget.sh: line 387: /usr/local/bin/wget: No such file or directory
    Download wget-1.19.4.tar.gz ...
    wget-1.19.4.tar.gz Archive found, skipping download...
    wget-1.19.4.tar.gz valid file.
    
    install centos-release-scl for newer gcc and g++ versions
    Error: Nothing to do
    
    real    0m10.771s
    user    0m6.679s
    sys     0m0.409s
    
    /usr/local/src/centminmod/addons/wget.sh: line 273: /opt/rh/devtoolset-4/root/usr/bin/gcc: No such file or directory
    /usr/local/src/centminmod/addons/wget.sh: line 274: /opt/rh/devtoolset-4/root/usr/bin/g++: No such file or directory
    configure: configuring for GNU Wget 1.19.4
    checking for a BSD-compatible install... /usr/bin/install -c
    checking whether build environment is sane... yes
    checking for a thread-safe mkdir -p... /bin/mkdir -p
    checking for gawk... gawk
    checking whether make sets $(MAKE)... yes
    checking whether make supports nested variables... yes
    checking build system type... x86_64-pc-linux-gnu
    checking host system type... x86_64-pc-linux-gnu
    checking whether make supports nested variables... (cached) yes
    checking for gcc... /opt/rh/devtoolset-4/root/usr/bin/gcc
    checking whether the C compiler works... no
    configure: error: in `/svr-setup/wget-1.19.4':
    configure: error: C compiler cannot create executables
    See `config.log' for more details
    There seems to be no Makefile in this directory.
    You must run ./configure before running 'make'.
    make: *** [abort-due-to-no-makefile] Error 1
    There seems to be no Makefile in this directory.
    You must run ./configure before running 'make'.
    make: *** [abort-due-to-no-makefile] Error 1
    
    --------------------------------------------------------
    ldconfig -p | grep libpcre.so.1
            libpcre.so.1 (libc6,x86-64) => /usr/local/lib/libpcre.so.1
    
    ldd alias wget='/usr/local/bin/wget'
    alias:
    ldd: ./alias: No such file or directory
    wget='/usr/local/bin/wget':
    ldd: wget='/usr/local/bin/wget': No such file or directory
    --------------------------------------------------------
    wget -V
    GNU Wget 1.12 built on linux-gnu.
    
    +digest +ipv6 +nls +ntlm +opie +md5/openssl +https -gnutls +openssl
    -iri
    
    Wgetrc:
        /etc/wgetrc (system)
    Locale: /usr/share/locale
    Compile: gcc -DHAVE_CONFIG_H -DSYSTEM_WGETRC="/etc/wgetrc"
        -DLOCALEDIR="/usr/share/locale" -I. -I../lib -O2 -g -pipe -Wall
        -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector
        --param=ssp-buffer-size=4 -m64 -mtune=generic -fno-strict-aliasing
    Link: gcc -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions
        -fstack-protector --param=ssp-buffer-size=4 -m64 -mtune=generic
        -fno-strict-aliasing -Wl,-z,relro -lssl -lcrypto
        /usr/lib64/libssl.so /usr/lib64/libcrypto.so -ldl -lrt ftp-opie.o
        openssl.o http-ntlm.o gen-md5.o ../lib/libgnu.a
    
    Copyright © 2009 Free Software Foundation, Inc.
    License GPLv3+: GNU GPL version 3 or later
    <http://www.gnu.org/licenses/gpl.html>.
    This is free software: you are free to change and redistribute it.
    There is NO WARRANTY, to the extent permitted by law.
    
    Originally written by Hrvoje Nikšić <[email protected]>.
    Currently maintained by Micah Cowan <[email protected]>.
    Please send bug reports and questions to <[email protected]>.
    --------------------------------------------------------
    /usr/local/src/centminmod/addons/wget.sh: line 468: /usr/local/bin/wget: No such file or directory
    wget 1.19.4 failed to update, still using system wget
    --------------------------------------------------------
    
    Total wget Install Time: 15.779129672 seconds
    Please help what did I miss. Thank you.
     
  2. eva2000

    eva2000 Administrator Staff Member

    35,522
    7,833
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +12,074
    Local Time:
    8:58 AM
    Nginx 1.15.x
    MariaDB 5.5/10.x
    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 ?
    • What version of Centmin Mod ? .07 stable or 08 stable or .09 beta01 or another branch version ?
    • Was it fresh install or upgrade ?
    • Method of install ? Via centmin.sh menu option 1, Git install or curl one liner install as outlined at centminmod.com/download.html ?
    • How long ago did you install Centmin Mod ?
    • There's numerous code changes, bug fixes over time, so ensure you have latest Centmin Mod code installed by upgrading your Centmin Mod code as instructed below.

    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 for 123.09beta01 and newer list /root/centminlogs files in date ascending order and grep for installer_*
    Code (Text):
    ls -lahrt /root/centminlogs | grep installer_*
    

    example output returns install log at /root/centminlogs both a the full log and minimal log (smaller in size with some stuff filtered out)
    Code (Text):
    ls -lahrt /root/centminlogs | grep installer_*
    -rw-r--r-- 1 root root 4.3M Jul 12 09:06 installer_120718-083445.log
    -rw-r--r-- 1 root root 826K Jul 12 10:20 installer_120718-083445_minimal.log
    


    Example for 123.08stable 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

    for 123.08stable
    Code (Text):
    cat /root/centminlogs/centminmod_1.2.3-eva2000.09.001_111016-112321_install.log
    

    for 123.09beta01 and newer
    Code (Text):
    cat /root/centminlogs/installer_120718-083445_minimal.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. gasak

    gasak Member

    32
    4
    8
    May 15, 2017
    Ratings:
    +6
    Local Time:
    5:58 AM
    1.13.0
    10.1.23-MariaDB
    You'll need to post on the forums with the following info
    • Dedicated Server Centos 6.10 64bit
    • What version of Centmin Mod ? .09 beta01
    • Was it fresh install or upgrade ? Fresh Install
    • Method of install ? Git install
    • How long ago did you install Centmin Mod ? Just now
    • There's numerous code changes, bug fixes over time, so ensure you have latest Centmin Mod code installed by upgrading your Centmin Mod code as instructed below.
    Hi @eva2000

    I just reinstall my server and using git to install centminmod:
    Code:
    cd /usr/local/src/
    git clone https://github.com/centminmod/centminmod.git centminmod
    cd centminmod
    ./centmin.sh
    but got another error like below:
    Code:
    chown: invalid user: `mysql:mysql'
    pure-ftpd: one time setup /etc/ssl/private/pure-ftpd-dhparams.pem file
    may take a while to create...
    pure-ftpd: /etc/ssl/private/pure-ftpd-dhparams.pem created
    sed: can't read /etc/csf/csf.conf: No such file or directory
    Updating command shortcuts...
    **********************************************************************
    * 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
    egrep: /etc/csf/csf.conf: No such file or directory
    sed: can't read /etc/csf/csf.conf: No such file or directory
    sed: can't read /etc/csf/csf.conf: No such file or directory
    cp: cannot create regular file `/etc/csf/load.sh': No such file or directory
    sed: can't read /etc/csf/csf.conf: No such file or directory
    sed: can't read /etc/csf/csf.conf: No such file or directory
    13 23 * * * /usr/local/src/centminmod/tools/autoprotect.sh >/dev/null 2>&1
    0 */4 * * * /usr/bin/cminfo_updater 2>/dev/null
    --------------------------------------------------------
         Centmin Mod Menu 123.09beta01 centminmod.com
    --------------------------------------------------------
    1).  Centmin Install
    2).  Add Nginx vhost domain
    3).  NSD setup domain name DNS
    4).  Nginx Upgrade / Downgrade
    5).  PHP Upgrade / Downgrade
    6).  XCache Re-install
    7).  APC Cache Re-install
    8).  XCache Install
    9).  APC Cache Install
    10). Memcached Server Re-install
    11). MariaDB MySQL Upgrade & Management
    12). Zend OpCache Install/Re-install
    13). Install/Reinstall Redis PHP Extension
    14). SELinux disable
    15). Install/Reinstall ImagicK PHP Extension
    16). Change SSHD Port Number
    17). Multi-thread compression: pigz,pbzip2,lbzip2...
    18). Suhosin PHP Extension install
    19). Install FFMPEG and FFMPEG PHP Extension
    20). NSD Install/Re-Install
    21). Update - Nginx + PHP-FPM + Siege
    22). Add Wordpress Nginx vhost + Cache Plugin
    23). Update Centmin Mod Code Base
    24). Exit
    --------------------------------------------------------
    Enter option [ 1 - 24 ]
    Seems all errors are "No such file or directory." Please advice. Thank you.
     
  4. eva2000

    eva2000 Administrator Staff Member

    35,522
    7,833
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +12,074
    Local Time:
    8:58 AM
    Nginx 1.15.x
    MariaDB 5.5/10.x
    you mean you did fresh centos 6 os install first ?

    still need the install log as outlined above
     
  5. eva2000

    eva2000 Administrator Staff Member

    35,522
    7,833
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +12,074
    Local Time:
    8:58 AM
    Nginx 1.15.x
    MariaDB 5.5/10.x
    if you do install use, curl installer on fresh reinstalled CentOS OS
    Code (Text):
    yum -y update; curl -O https://centminmod.com/betainstaller.sh && chmod 0700 betainstaller.sh && bash betainstaller.sh
     
  6. eva2000

    eva2000 Administrator Staff Member

    35,522
    7,833
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +12,074
    Local Time:
    8:58 AM
    Nginx 1.15.x
    MariaDB 5.5/10.x
  7. gasak

    gasak Member

    32
    4
    8
    May 15, 2017
    Ratings:
    +6
    Local Time:
    5:58 AM
    1.13.0
    10.1.23-MariaDB
    I just reinstall again to CentOS 7 and works fine. That could be the problem though with CentOS 6.
     
  8. eva2000

    eva2000 Administrator Staff Member

    35,522
    7,833
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +12,074
    Local Time:
    8:58 AM
    Nginx 1.15.x
    MariaDB 5.5/10.x
    yes as per Centmin Mod 123.09beta01 bug fix update devtoolset-4 EOL it's CentOS 6 specific due to GCC 4.4.7 version being lower than GCC 4.8+ requirements for custom wget install routine and workaround devtoolset-4 GCC 5.3.1 being EOL and no longer available so update now uses devtoolset-6 GCC 6.3.1 for that routine.
     
..