Welcome to Centmin Mod Community
Become a Member

Install Re-install Centmin Mod

Discussion in 'Install & Upgrades or Pre-Install Questions' started by dv007, Jun 26, 2014.

  1. dv007

    dv007 New Member

    6
    2
    3
    Jun 26, 2014
    Ratings:
    +2
    Local Time:
    8:59 AM
    1.6.0
    5.5.28
    Hi all,

    I'm using Centmin Mod to setup many my servers but I encounter a problem: the setup is interrupted when it went to Maria DB install step. After that, nginx is ok but php-fpm, memcached, csf not found! Now, I want to re-install Centmin Mod from begin. Can I do it or I must reload OS?

     
  2. eva2000

    eva2000 Administrator Staff Member

    53,554
    12,135
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +18,678
    Local Time:
    11:59 AM
    Nginx 1.27.x
    MariaDB 10.x/11.4+
    Which version of Centmin Mod .06 stable or .07 beta 21 https://community.centminmod.com/threads/centmin-mod-07-beta-21-to-stable-status.124/ ?

    If it's a fresh install, then most likely you had no personal data on the server other than OS files, so it's much easier to reload OS and try again. What I'd do is grab the install log files before reloading OS for your own records so you can check the Install log to see what happened at MariaDB install step. See troubleshooting steps at https://community.centminmod.com/threads/how-to-troubleshoot-centmin-mod-initial-install-issues.102/

    If interruption is from your end i.e. lost ISP/internet connectivity, then you might want to use Screen command to launch centmin.sh install from as it survives lost connectivity etc https://community.centminmod.com/threads/who-uses-screen-for-linux.508/
     
  3. dv007

    dv007 New Member

    6
    2
    3
    Jun 26, 2014
    Ratings:
    +2
    Local Time:
    8:59 AM
    1.6.0
    5.5.28
    I've checked centmin mod install log, last line in log is: Total Centmin Mod Install Time: 4370.059999742 seconds

    This mean Centmin Mod was installed success!

    But I also see this line: /etc/init.d/php-fpm: No such file or directory

    in centminmod_1.2.3-eva2000.06_260614-001829_php_upgrade.log
     
  4. eva2000

    eva2000 Administrator Staff Member

    53,554
    12,135
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +18,678
    Local Time:
    11:59 AM
    Nginx 1.27.x
    MariaDB 10.x/11.4+
    sounds like PHP failed to install properly

    use gist.github.com or pastebin.com to post your _install.log contents so we can see where the problem is.

    Did you re-download .06 zip recently as there were some back ported updates from June 1, 2014 onwards to fix some bugs https://github.com/centminmod/centminmod/commits/123.06stable
     
  5. dv007

    dv007 New Member

    6
    2
    3
    Jun 26, 2014
    Ratings:
    +2
    Local Time:
    8:59 AM
    1.6.0
    5.5.28
    I've open centmin.sh script and make some steps by manual:

    cp /usr/local/src/centmin-v1.2.3mod/init/php-fpm /etc/init.d/php-fpm

    chmod +x /etc/init.d/php-fpm

    mkdir -p /var/run/php-fpm
    touch /var/run/php-fpm/php-fpm.pid
    chown nginx:nginx /var/run/php-fpm

    mkdir /var/log/php-fpm/
    touch /var/log/php-fpm/www-error.log
    touch /var/log/php-fpm/www-php.error.log
    chmod 0666 /var/log/php-fpm/www-error.log
    chmod 0666 /var/log/php-fpm/www-php.error.log

    chkconfig --levels 235 php-fpm on
    /etc/init.d/php-fpm force-quit
    /etc/init.d/php-fpm start

    So, php-fpm has been started successully!