Want to subscribe to topics you're interested in?
Become a Member

Install But I didnt....

Discussion in 'Install & Upgrades or Pre-Install Questions' started by Mlkx, Feb 14, 2017.

  1. Mlkx

    Mlkx New Member

    17
    3
    3
    Jan 12, 2017
    Ratings:
    +3
    Local Time:
    9:03 AM
    Install centmin mod but it's still installing after I destroyed my server twice. I get this error when I log in all the time and I do not know how to fix this.


    Code:
    tee: /root/centminlogs/cmm-login-git-checks_130217-200259.log: No such file or directory
    

    • CentOS Version: CentOS 7 64bit
    • Centmin Mod Version Installed: n/a
     
  2. Mlkx

    Mlkx New Member

    17
    3
    3
    Jan 12, 2017
    Ratings:
    +3
    Local Time:
    9:03 AM
    So how is that if i get a new IP I still get the centmin prompt?
     
  3. eva2000

    eva2000 Administrator Staff Member

    55,153
    12,249
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +18,825
    Local Time:
    6:03 PM
    Nginx 1.27.x
    MariaDB 10.x/11.4+
    How did you destroy the server? Reinstall centos fresh is only way to do it properly

    Try reinstall centos again some web hosts control panels maybe broken. I had this when reinstall via solusvm won't actual reinstall so contacted my web host to fix it
     
  4. Mlkx

    Mlkx New Member

    17
    3
    3
    Jan 12, 2017
    Ratings:
    +3
    Local Time:
    9:03 AM
    Ok so I had the Vps reinstalled by Vultr and destroyed it again, but why is it still trying to fetch centmin logs Untitled.png
     
  5. SFLC

    SFLC Active Member

    223
    59
    28
    Dec 4, 2016
    The Canadas
    Ratings:
    +112
    Local Time:
    10:03 AM
    1
    10
    There's no way a reimaged server would still be doing that, the server wasn't reimaged period.

    Does vultr not provide a control panel where you can select your server and select the os you want to reimage to.
     
  6. Mlkx

    Mlkx New Member

    17
    3
    3
    Jan 12, 2017
    Ratings:
    +3
    Local Time:
    9:03 AM
    I thought that aswell, I destroy it through the console and also reinstall the OS via the control panel.
     
  7. Mlkx

    Mlkx New Member

    17
    3
    3
    Jan 12, 2017
    Ratings:
    +3
    Local Time:
    9:03 AM
    I know now its my Start up Script!

    Can anyone look that over for me please- I don't know what is wrong with it and there isn't any after sales support for this product anymore.

    Code:
    #!/bin/sh
    ###########################################################
    # System
    ###########################################################
    yum update -y
    yum install -y jwhois libssh2-devel.x86_64 rsync unzip zip openssh-clients wget
    screen pure-ftpd ftp bc yum-plugin-fastestmirror
    wget http://dl.fedoraproject.org/pub/epel/6/x86_64/epel-release-6-8.noarch.rpm
    rpm -Uvh epel-release-6*.rpm
    cd /usr/local/src
    wget --no-check-certificate
    https://github.com/centminmod/centminmod/archive/master.zip
    mv master master.zip
    unzip master.zip
    ln -s /usr/local/src/centminmod-master centmin
    cd /usr/local/src/centminmod-master
    chmod +x centmin.sh
    sed -i 's/5.4.45/5.6.13/g' centmin.sh
    echo -e '1' | ./centmin.sh
    echo "############################################################
    # ! This server is running CSF Firewall ! #
    # DO NOT run the below command or you #
    # will lock yourself out of the server: #
    # #
    # iptables -F #
    # #
    ############################################################
    # USE OF THIS COMPUTER SYSTEM, AUTHORIZED OR UNAUTHORIZED, #
    # CONSTITUTES CONSENT TO MONITORING OF THIS SYSTEM. #
    # UNAUTHORIZED USE MAY SUBJECT YOU TO CRIMINAL PROSECUTION.#
    # EVIDENCE OF UNAUTHORIZED USE COLLECTED DURING MONITORING #
    # MAY BE USED FOR ADMINISTRATIVE, CRIMINAL, OR OTHER #
    # ADVERSE ACTION. USE OF THIS SYSTEM CONSTITUTES CONSENT #
    # TO MONITORING FOR THESE PURPOSES. #
    ############################################################" > /etc/motd
    chattr +ia /etc/motd
    sed -i 's/PUREFTPD_DISABLED=n/PUREFTPD_DISABLED=y/g'
    /usr/local/src/centmin/centmin.sh
    mv /etc/centminmod/php.d/geoip.ini /etc/centminmod/php.d/geoip.ini_old
    mv /etc/centminmod/php.d/memcache.ini /etc/centminmod/php.d/memcache.ini_old
    mv /etc/centminmod/php.d/mongodb.ini /etc/centminmod/php.d/mongodb.ini_old
    mv /etc/centminmod/php.d/redis.ini /etc/centminmod/php.d/redis.ini_old
    mv /etc/centminmod/php.d/mongodb.ini /etc/centminmod/php.d/mongodb.ini_old
    cd /usr/local/src/centminmod-master/addons
    ./ioncube.sh
     
  8. eva2000

    eva2000 Administrator Staff Member

    55,153
    12,249
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +18,825
    Local Time:
    6:03 PM
    Nginx 1.27.x
    MariaDB 10.x/11.4+
    FYI, master branch shouldn't be used, use the 123.09beta01 branch and the curl installer instead https://community.centminmod.com/threads/centmin-mod-09-beta-branch-testing.4128/

    don't need a start up script either

    for changes don't do them in centmin.sh, use persistent config file /etc/centminmod/custom_config.inc outlined at Upgrade Centmin Mod - CentminMod.com LEMP Nginx web stack for CentOS, create the file and populate the settings you want to change before running curl installer

    i.e.
    Code (Text):
    mkdir -p /etc/centminmod/
    touch /etc/centminmod/custom_config.inc
    echo "PUREFTPD_DISABLED=y" >> /etc/centminmod/custom_config.inc
    

    then just use the curl installer command which already installs latest PHP 5.6.30+
    Code (Text):
    yum -y update; curl -O https://centminmod.com/betainstaller.sh && chmod 0700 betainstaller.sh && bash betainstaller.sh
    /usr/local/src/centminmod/addons/ioncube.sh
    
     
  9. Mlkx

    Mlkx New Member

    17
    3
    3
    Jan 12, 2017
    Ratings:
    +3
    Local Time:
    9:03 AM
    So you certain that i won't need the Startup script? I don't know what the script does i just need to be sure that it all works without it.

    Thanks eva2000
     
  10. Mlkx

    Mlkx New Member

    17
    3
    3
    Jan 12, 2017
    Ratings:
    +3
    Local Time:
    9:03 AM
    Nothing happens when I try to create the config file, i tried

    inc/custom_config.inc

    /etc/centminmod/custom_config.inc

    and this

    mkdir -p /etc/centminmod/
    touch /etc/centminmod/custom_config.inc
    echo "PUREFTPD_DISABLED=y" >> /etc/centminmod/custom_config.inc
     
  11. eva2000

    eva2000 Administrator Staff Member

    55,153
    12,249
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +18,825
    Local Time:
    6:03 PM
    Nginx 1.27.x
    MariaDB 10.x/11.4+
    Yes don't need any startup scripts just manually run the 3 commands to prepare /etc/centminmod/custom_config.inc and then run installer via curl
    what do you mean nothing happens, the 3 commands prepare centmin mod prior to initial install that's it

    you then run the installer
    Code (Text):
    yum -y update; curl -O https://centminmod.com/betainstaller.sh && chmod 0700 betainstaller.sh && bash betainstaller.sh
    

    which will check if any settings added to /etc/centminmod/custom_config.inc need to apply to the centmin mod install or centmin.sh runs.