Learn about Centmin Mod LEMP Stack today
Register Now

Can i use Centminmod with Redhat 7?

Discussion in 'Install & Upgrades or Pre-Install Questions' started by Andy, Sep 13, 2017.

  1. Andy

    Andy Active Member

    331
    47
    28
    Aug 6, 2014
    Ratings:
    +56
    Local Time:
    4:13 AM
    So I been using Centminmod over the years with CentOS and familiar with it.
    There are 2 servers that I'm managing and the IT people told me they are moving all to RH.

    Can i still use Centmin? If so, any differences on how to install/set up/etc?
     
  2. Jimmy

    Jimmy Premium Member Premium Member

    1,146
    253
    83
    Oct 24, 2015
    East Coast USA
    Ratings:
    +615
    Local Time:
    4:13 AM
    1.13.x
    MariaDB 10.1.x
    I believe RH using DNF instead of YUM. CMM is built to use YUM. I believe @eva2000 is working on DNF for the future. I remember asking about it for Fedora, which uses DNF and is "part" of RH.
     
  3. eva2000

    eva2000 Administrator Staff Member

    30,626
    6,862
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +10,307
    Local Time:
    7:13 PM
    Nginx 1.13.x
    MariaDB 5.5
    Honestly, haven't tested Redhat 7 in ages. Believe it uses yum still - Fedora is one moving to DNF ? Yes working on DNF compatibility too :)

    Main thing to check first is the version check routine if it returns expected values for CENTOS_SEVEN=7 and CENTOS_SIX=6 from
    Code (Text):
    CENTOSVER=$(awk '{ print $3 }' /etc/redhat-release)
    
    if [ "$CENTOSVER" == 'release' ]; then
        CENTOSVER=$(awk '{ print $4 }' /etc/redhat-release | cut -d . -f1,2)
        if [[ "$(cat /etc/redhat-release | awk '{ print $4 }' | cut -d . -f1)" = '7' ]]; then
            CENTOS_SEVEN='7'
        fi
    fi
    
    if [[ "$(cat /etc/redhat-release | awk '{ print $3 }' | cut -d . -f1)" = '6' ]]; then
        CENTOS_SIX='6'
    fi
    
    if [ "$CENTOSVER" == 'Enterprise' ]; then
        CENTOSVER=$(cat /etc/redhat-release | awk '{ print $7 }')
        OLS='y'
    fi
    
    if [[ -f /etc/system-release && "$(awk '{print $1,$2,$3}' /etc/system-release)" = 'Amazon Linux AMI' ]]; then
        CENTOS_SIX='6'
    fi
    

    So what output do you get for these commands on Redhat 7
    Code (Text):
    CENTOSVER=$(awk '{ print $3 }' /etc/redhat-release)
    echo $CENTOSVER
    

    Code (Text):
    cat /etc/redhat-release | awk '{ print $4 }' | cut -d . -f1
    

    Code (Text):
    cat /etc/redhat-release | awk '{ print $3 }' | cut -d . -f1
    

    Code (Text):
    cat /etc/redhat-release | awk '{ print $7 }'
    
     
    • Like Like x 1
  4. Andy

    Andy Active Member

    331
    47
    28
    Aug 6, 2014
    Ratings:
    +56
    Local Time:
    4:13 AM
    The IT guys are installing RH on the servers as we speak. I will test it out as soon as I can get access back.
    I really don't want to move away from what I been doing so far but I believe Centmin is flexible enough to install on various flavors of Unix and I hope @eva2000 will make it more accessible :)
     
  5. eva2000

    eva2000 Administrator Staff Member

    30,626
    6,862
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +10,307
    Local Time:
    7:13 PM
    Nginx 1.13.x
    MariaDB 5.5
    Goal is CentOS support and eventually Fedora on dev roadmap 123.09beta01 Development Previews & Work · GitHub. Unfortunately, Redhat isn't one of the focuses for non-free OSes. If I am ever fortunate enough to work on Centmin Mod fulltime with enough $$$ to earn a living off of Centmin Mod probably something to look at. But right now Centmin Mod is only a project I work on in my free spare time :)
     
  6. Jimmy

    Jimmy Premium Member Premium Member

    1,146
    253
    83
    Oct 24, 2015
    East Coast USA
    Ratings:
    +615
    Local Time:
    4:13 AM
    1.13.x
    MariaDB 10.1.x
    I know fedora is DNF. Let us know how things work with RH... I'd be curious to know if it works.
     
  7. Andy

    Andy Active Member

    331
    47
    28
    Aug 6, 2014
    Ratings:
    +56
    Local Time:
    4:13 AM
    If anyone is willing to help me go through setting up RH, I would appreciate much.
    I got the servers with RH 7.3 installed and trying to set up nginx/php/mysql in a similar fashion like what centminmod does automatically.

    Will document it to help others later on.
     
  8. Andy

    Andy Active Member

    331
    47
    28
    Aug 6, 2014
    Ratings:
    +56
    Local Time:
    4:13 AM
    Anyone can help me install php 7x on Redhat 7.3? There are many guides but none of them seems to work properly.
    I can install php 5.4 ok but upgrading to 7.1 runs into many imcompatible issues.
     
  9. Andy

    Andy Active Member

    331
    47
    28
    Aug 6, 2014
    Ratings:
    +56
    Local Time:
    4:13 AM
    Hi @eva2000 , sorry I haven't seen your questions. Here is what I found out.

    Enterprise
    Linux
    Enterprise
    7.3
     
  10. eva2000

    eva2000 Administrator Staff Member

    30,626
    6,862
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +10,307
    Local Time:
    7:13 PM
    Nginx 1.13.x
    MariaDB 5.5
    Then at least the CENTOSVER variable matches with CentOS 7 so technically Centmin Mod should work. Have you tried ?

    edit: actually in that case Centmin Mod detects it as Oracle Linux not CentOS hmm.

    Code (Text):
    if [ "$CENTOSVER" == 'Enterprise' ]; then
       CENTOSVER=$(cat /etc/redhat-release | awk '{ print $7 }')
       OLS='y'
    fi
    
     
  11. eva2000

    eva2000 Administrator Staff Member

    30,626
    6,862
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +10,307
    Local Time:
    7:13 PM
    Nginx 1.13.x
    MariaDB 5.5
    what's full output for
    Code (Text):
    cat /etc/redhat-release
    
     
  12. eva2000

    eva2000 Administrator Staff Member

    30,626
    6,862
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +10,307
    Local Time:
    7:13 PM
    Nginx 1.13.x
    MariaDB 5.5
  13. Andy

    Andy Active Member

    331
    47
    28
    Aug 6, 2014
    Ratings:
    +56
    Local Time:
    4:13 AM
    Red Hat Enterprise Linux Server release 7.3 (Maipo)
     
  14. Andy

    Andy Active Member

    331
    47
    28
    Aug 6, 2014
    Ratings:
    +56
    Local Time:
    4:13 AM
  15. eva2000

    eva2000 Administrator Staff Member

    30,626
    6,862
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +10,307
    Local Time:
    7:13 PM
    Nginx 1.13.x
    MariaDB 5.5
    Centmin Mod doesn't removing existing stacks so needs fresh virgin OS
     
    • Like Like x 1
  16. Andy

    Andy Active Member

    331
    47
    28
    Aug 6, 2014
    Ratings:
    +56
    Local Time:
    4:13 AM
    Got it. Will be requesting rebuild of that RH and testing.
    If this works, it would be really exciting for CMM community.
     
    • Like Like x 1
  17. Andy

    Andy Active Member

    331
    47
    28
    Aug 6, 2014
    Ratings:
    +56
    Local Time:
    4:13 AM
    Got some good news and bad news. The good news is that the betainstaller runs but it seems like there is no disk space. What should I do to get this installed @eva2000

    Code:
    Redirecting to /bin/systemctl stop  nginx.service
    Failed to stop nginx.service: Unit nginx.service not loaded.
    service php-fpm stop
    Redirecting to /bin/systemctl stop  php-fpm.service
    Failed to stop php-fpm.service: Unit php-fpm.service not loaded.
    service memcached stop
    Redirecting to /bin/systemctl stop  memcached.service
    Failed to stop memcached.service: Unit memcached.service not loaded.
    service nginx start
    Redirecting to /bin/systemctl start  nginx.service
    Failed to start nginx.service: Unit not found.
    service php-fpm start
    Redirecting to /bin/systemctl start  php-fpm.service
    Failed to start php-fpm.service: Unit not found.
    service memcached start
    Redirecting to /bin/systemctl start  memcached.service
    Failed to start memcached.service: Unit not found.
    cp: cannot create directory ‘/svr-setup/APC-3.1.13’: No space left on device
    Filesystem                          Type      Size  Used Avail Use% Mounted on
    /dev/mapper/rhel_mfeapp1v-root      xfs      1014M 1014M   56K 100% /
    devtmpfs                            devtmpfs  1.9G     0  1.9G   0% /dev
    tmpfs                               tmpfs     1.9G     0  1.9G   0% /dev/shm
    tmpfs                               tmpfs     1.9G  112M  1.8G   6% /run
    tmpfs                               tmpfs     1.9G     0  1.9G   0% /sys/fs/cgroup
    /dev/mapper/rhel_mfeapp1v-usr       xfs       4.0G  1.8G  2.3G  45% /usr
    /dev/sda1                           xfs      1014M  178M  837M  18% /boot
    /dev/mapper/rhel_mfeapp1v-swap      xfs       4.0G   33M  4.0G   1% /swap
    /dev/mapper/rhel_mfeapp1v-usr_local xfs        30G  152M   30G   1% /usr/local
    /dev/mapper/rhel_mfeapp1v-home      xfs       2.0G   76M  2.0G   4% /home
    /dev/mapper/rhel_mfeapp1v-var       xfs       4.0G  755M  3.3G  19% /var
    /dev/loop0                          ext4      1.9G  5.9M  1.8G   1% /tmp
    tmpfs                               tmpfs     380M     0  380M   0% /run/user/1001
    unmounted /svr-setup tmpfs ramdisk
    ./centmin.sh: line 1731: /etc/centminmod-release: No space left on device
    ./centmin.sh: line 1745: /root/centminlogs/centminmod_1.2.3-eva2000.08_031017-220520_install.log: No such file or directory
    ./centmin.sh: line 1746: /root/centminlogs/centminmod_1.2.3-eva2000.08_031017-220520_install.log: No such file or directory
    sed: couldn't open temporary file /root/sedK4NEwa: No space left on device
    sed: couldn't open temporary file /root/sedv1Vioa: No space left on device
    
    Created command shortcuts:
    * type cmdir to change to Centmin Mod install directory
      at /usr/local/src/centminmod
    * type centmin call and run centmin.sh
      at /usr/local/src/centminmod/centmin.sh
    
    installer.sh: line 180: /root/centminlogs/firstyum_installtime_031017-215824.log: No such file or directory
    ---------------------------------------------------------------------------
    installer.sh: line 182: /root/centminlogs/firstyum_installtime_031017-215824.log: No such file or directory
    tail: cannot open ‘/root/centminlogs/firstyum_installtime_*.log’ for reading: No such file or directory
    tail: cannot open ‘/root/centminlogs/centminmod_yumtimes_*.log’ for reading: No
    such file or directory
    tail: cannot open ‘/root/centminlogs/centminmod_downloadtimes_*.log’ for reading: No such file or directory
    tail: cannot open ‘/root/centminlogs/centminmod_ngxinstalltime_*.log’ for reading: No such file or directory
    tail: cannot open ‘/root/centminlogs/centminmod_phpinstalltime_*.log’ for reading: No such file or directory
    tail: cannot open ‘/root/centminlogs/*_install.log’ for reading: No such file or directory
    awk: fatal: cannot open file `/root/centminlogs/firstyum_installtime_*.log' for
    reading (No such file or directory)
    awk: fatal: cannot open file `/root/centminlogs/*_install.log' for reading (No such file or directory)
    (standard_in) 1: syntax error
    (standard_in) 1: syntax error
    Total YUM + Source Download Time: 0.0000
    Total Nginx First Time Install Time: 0.0000
    Total PHP First Time Install Time: 0.0000
    Download Zip From Github Time: 3.1288
    Total Time Other eg. source compiles: 0.0000
    Total Centmin Mod Install Time: 0.0000
    ---------------------------------------------------------------------------
    Total Install Time (curl yum + cm install + zip download): 0.0000 seconds
    ---------------------------------------------------------------------------
     
  18. eva2000

    eva2000 Administrator Staff Member

    30,626
    6,862
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +10,307
    Local Time:
    7:13 PM
    Nginx 1.13.x
    MariaDB 5.5
    is that same partition scheme and partition sizes you usually use for centos 7 ? as CentOS 7 doesn't like separating /usr and other partitions CentOS 7.x - Tip: CentOS 7 DO NOT have /usr on separate partition

    make sure you have minimum or recommended disk space available as per install page Centmin Mod LEMP Stack Install Nginx on CentOS
     
  19. Andy

    Andy Active Member

    331
    47
    28
    Aug 6, 2014
    Ratings:
    +56
    Local Time:
    4:13 AM
    They put 32GB on the /usr/local/ and minimal on rest. What should I ask them to change the partition? How much on / partition?

    Code:
    Filesystem                          Type      Size  Used Avail Use% Mounted on
    /dev/mapper/rhel_mfeapp1v-root      xfs      1014M 1014M   56K 100% /
    devtmpfs                            devtmpfs  1.9G     0  1.9G   0% /dev
    tmpfs                               tmpfs     1.9G     0  1.9G   0% /dev/shm
    tmpfs                               tmpfs     1.9G  112M  1.8G   6% /run
    tmpfs                               tmpfs     1.9G     0  1.9G   0% /sys/fs/cgroup
    /dev/mapper/rhel_mfeapp1v-usr       xfs       4.0G  1.8G  2.3G  45% /usr
    /dev/sda1                           xfs      1014M  178M  837M  18% /boot
    /dev/mapper/rhel_mfeapp1v-swap      xfs       4.0G   33M  4.0G   1% /swap
    /dev/mapper/rhel_mfeapp1v-usr_local xfs        30G  152M   30G   1% /usr/local
    /dev/mapper/rhel_mfeapp1v-home      xfs       2.0G   76M  2.0G   4% /home
    /dev/mapper/rhel_mfeapp1v-var       xfs       4.0G  755M  3.3G  19% /var
    /dev/loop0                          ext4      1.9G  5.9M  1.8G   1% /tmp
    tmpfs                               tmpfs     380M     0  380M   0% /run/user/1001
    unmounted /svr-setup tmpfs ramdisk
     
  20. eva2000

    eva2000 Administrator Staff Member

    30,626
    6,862
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +10,307
    Local Time:
    7:13 PM
    Nginx 1.13.x
    MariaDB 5.5
    Just use one partition for everything in /