Get the most out of your Centmin Mod LEMP stack
Become a Member

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

    546
    90
    28
    Aug 6, 2014
    Ratings:
    +134
    Local Time:
    9:58 AM
    Is it possible to modify the script to specify the directory where the temp folders are created (svr-setup, etc)?

     
  2. eva2000

    eva2000 Administrator Staff Member

    59,279
    12,508
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +19,140
    Local Time:
    12:58 AM
    Nginx 1.31.x
    MariaDB 10.x/11.4+/12.3+
    Why ? Only thing that is modifiable is /svr-setup but haven't tested it for /svr-setup changes and that only applies to main core Centmin Mod code and not addons or tools which use /svr-setup. So best not to change it. Or just create a symlink for /svr-setup else where.

    Set partition to everything in one / would be best anyway with CentOS 7 or Redhat 7.
     
  3. Andy

    Andy Active Member

    546
    90
    28
    Aug 6, 2014
    Ratings:
    +134
    Local Time:
    9:58 AM
    I'm so close to successfully getting this work on RH 7.3 after I got the / partition in larger size
    The initial installation went without issue but no php/nginx/mariadb,etc installed
    I'm going to post the log so @eva2000 can nail this down.
    So excited that this may be it ;)
     
  4. Andy

    Andy Active Member

    546
    90
    28
    Aug 6, 2014
    Ratings:
    +134
    Local Time:
    9:58 AM
    Tried to use the main menu to upgrade php to try install it and here is the error
    Code:
    strip PHP binary...
    ls: cannot access /usr/local/bin/php: No such file or directory
    ls: cannot access /usr/local/bin/php-cgi: No such file or directory
    strip: '/usr/local/bin/php': No such file
    strip: '/usr/local/bin/php-cgi': No such file
    ls: cannot access /usr/local/bin/php: No such file or directory
    ls: cannot access /usr/local/bin/php-cgi: No such file or directory
    
    ----------------------------------------------------------------------------------
    PHP was not installed properly
    ----------------------------------------------------------------------------------
    
    Fri Oct  6 17:56:30 UTC 2017
    Success: PHP configure ok
    
    service php-fpm restart
    Gracefully shutting down php-fpm kill: usage: kill [-s sigspec | -n signum | -sigspec] pid | jobspec ... or kill -l [sigspec]
    ................................... failed. Use force-quit
    Starting php-fpm /etc/init.d/php-fpm: line 69: /usr/local/sbin/php-fpm: No such
    file or directory
     failed
    which: no figlet in (/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin:/root/bin)
    PHPMUVER = 7.1
    PHP_PGO = n
    make -j1
    make: *** No targets specified and no makefile found.  Stop.
    
    real    0m0.002s
    user    0m0.002s
    sys     0m0.000s
    
    Fri Oct  6 17:57:05 UTC 2017
    Error: 2, PHP make failed (1.2.3-eva2000.09.006)
    
                  total        used        free      shared  buff/cache   available
    Mem:           3791         204        3146           8         440        3311
    Swap:          1023           0        1023
    
    report errors on the forums at community.centminmod.com/forums/8/
    
                  total        used        free      shared  buff/cache   available
    Mem:           3791         204        3146           8         440        3311
    Swap:          1023           0        1023
    
    CPU: Intel(R) Xeon(R) CPU           X5650  @ 2.67GHz (1)
    
    version increment history
    1.2.3-eva2000.09.006 #Fri Oct  6 13:22:47 EDT 2017
    1.2.3-eva2000.09.006 #Fri Oct  6 17:53:49 UTC 2017
    
    last Centmin Mod local git commit entry
    /usr/local/src/centminmod /svr-setup/php-7.1.10/fpm-build
    
    0e149e1 George Liu Wed, 4 Oct 2017 01:58:00 +1000
    remove Oracle Linux detection replace with RedHat 7.x detection in 123.09beta01
    
    5       2       Extras/axivo_install.sh
    5       2       addons/customcurl.sh
    5       2       addons/devtoolset-4.sh
    5       2       addons/devtoolset-6.sh
    5       2       addons/git2_install.sh
    5       2       addons/golang.sh
    5       2       addons/ius-repo.sh
    5       2       addons/maldet.sh
    5       2       addons/nodejs.sh
    5       2       addons/passenger.sh
    5       2       addons/python27_install.sh
    5       2       addons/python34_install.sh
    5       2       addons/python35_install.sh
    5       2       addons/python36_install.sh
    5       2       addons/rclone.sh
    5       2       addons/wget.sh
    5       2       centmin.sh
    5       2       installer-dnf-gitlab.sh
    5       2       installer-dnf.sh
    5       2       installer-gitlab.sh
    5       2       installer-latest-gitlab.sh
    5       2       installer-latest.sh
    5       2       installer-minimal-gitlab.sh
    5       2       installer-minimal.sh
    5       2       installer-ngxpagespeed-gitlab.sh
    5       2       installer-ngxpagespeed.sh
    5       2       installer.sh
    5       2       installer55-gitlab.sh
    5       2       installer55.sh
    5       2       installer56-gitlab.sh
    5       2       installer56.sh
    5       2       installer7-gitlab.sh
    5       2       installer7.sh
    5       2       installer71-gitlab.sh
    5       2       installer71.sh
    5       2       tools/auditd.sh
    5       2       tools/cminfo.sh
    5       2       tools/csf-reinstall.sh
    5       2       tools/imagemagick-update.sh
    5       2       tools/nano-syntax.sh
    5       2       tools/nginxupdate.sh
    5       2       tools/nv.sh
    5       2       tools/nvwp.sh
    5       2       tools/setio.sh
     44 files changed, 220 insertions(+), 88 deletions(-)
    /svr-setup/php-7.1.10/fpm-build
    Total PHP Upgrade Time: 83.373125315 seconds
     
  5. eva2000

    eva2000 Administrator Staff Member

    59,279
    12,508
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +19,140
    Local Time:
    12:58 AM
    Nginx 1.31.x
    MariaDB 10.x/11.4+/12.3+
    can't promise anything as focus ain't on Redhat 7 compatibility

    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 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
    Code (Text):
    cat /root/centminlogs/centminmod_1.2.3-eva2000.09.001_111016-112321_install.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
     
  6. Andy

    Andy Active Member

    546
    90
    28
    Aug 6, 2014
    Ratings:
    +134
    Local Time:
    9:58 AM
  7. eva2000

    eva2000 Administrator Staff Member

    59,279
    12,508
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +19,140
    Local Time:
    12:58 AM
    Nginx 1.31.x
    MariaDB 10.x/11.4+/12.3+
    well as expected script expects centos repos so any manipulation of the non-existent centos repos, will mess up yum itself so packages and dependencies don't get installed

    just too much work for Redhat compatibility right now with my lack of free time and downtime - Ouch laptop battery expanded warping keyboard

    Code (Text):
    Loaded plugins: enabled_repos_upload, package_upload, product-id, search-
                 : disabled-repos, subscription-manager, versionlock
    No package yum-plugin-fastestmirror available.
    Error: Nothing to do
    Uploading Enabled Reposistories Report
    Loaded plugins: product-id, versionlock
    Loaded plugins: enabled_repos_upload, package_upload, product-id, search-
                 : disabled-repos, subscription-manager, versionlock
    Package yum-3.4.3-150.el7.noarch already installed and latest version
    Nothing to do
    Uploading Enabled Reposistories Report
    Loaded plugins: product-id, versionlock
    Loaded plugins: enabled_repos_upload, package_upload, product-id, search-
                 : disabled-repos, subscription-manager, versionlock
    Package yum-3.4.3-150.el7.noarch already installed and latest version
    Nothing to do
    Uploading Enabled Reposistories Report
    Loaded plugins: product-id, versionlock
    Error: Nothing to do
    Loaded plugins: product-id, versionlock
    Error: Nothing to do
    Loaded plugins: product-id, versionlock
    grep: /etc/yum.repos.d/CentOS-Base.repo: No such file or directory
    cp: cannot stat ‘/etc/yum.repos.d/CentOS-Base.repo’: No such file or directory
    grep: /etc/yum.repos.d/CentOS-Base.repo: No such file or directory
    setting yum priorities for CentOS-Base.repo
    *************************************************
    Fixing CentOS-Base.repo YUM Priorities
    *************************************************
    priority=1
    priority=1
    priority=1
    priority=1
    priority=2
    priority=2
    
    
    skip unneeded yum package check/installs for curl installer routines
    
    
    skip unneeded yum package check/installs for curl installer routines
    
    
    
    File contains no section headers.
    file: file:///etc/yum.repos.d/CentOS-Base.repo, line: 1
    'priority=1\n'
    Loaded plugins: product-id, versionlock
    Unable to upload Enabled Repositories Report
    Loaded plugins: enabled_repos_upload, package_upload, product-id, search-
                 : disabled-repos, subscription-manager, versionlock
    
    
    File contains no section headers.
    file: file:///etc/yum.repos.d/CentOS-Base.repo, line: 1
    'priority=1\n'
    Uploading Enabled Reposistories Report
    Loaded plugins: product-id, versionlock
    Unable to upload Enabled Repositories Report
    
    
    File contains no section headers.
    file: file:///etc/yum.repos.d/CentOS-Base.repo, line: 1
    'priority=1\n'
    Loaded plugins: product-id, versionlock
    Unable to upload Enabled Repositories Report
    *************************************************
    * CentOS 7.x detected installing EPEL Repo
    *************************************************
    Error:  not found !!! Downloading now......
    wget: missing URL
    Usage: wget [OPTION]... [URL]...
    
    Try `wget --help' for more options.
    Error:  download failed.
    
     
  8. Andy

    Andy Active Member

    546
    90
    28
    Aug 6, 2014
    Ratings:
    +134
    Local Time:
    9:58 AM
    Understand, George. Hope you recover your data and get back to fully working laptop soon. Losing a working laptop is never fun. I experienced the fair share of it myself.

    I will just report to the admin guy that RH is a no go, unfortunately.

    Looks like there is nothing I can do about the failed installation, except for a rebuild.
     
  9. eva2000

    eva2000 Administrator Staff Member

    59,279
    12,508
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +19,140
    Local Time:
    12:58 AM
    Nginx 1.31.x
    MariaDB 10.x/11.4+/12.3+
    i'm about to commit a small fix in 123.09beta01 that skips working on centos repo files that might be enough to get it working so worth one more shot..

    wait 15-30mins and try again :)
     
  10. Andy

    Andy Active Member

    546
    90
    28
    Aug 6, 2014
    Ratings:
    +134
    Local Time:
    9:58 AM
    How do I try again? I tried to run the one line curl install script and got this error
    Code:
    which: no figlet in (/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin:/root/bin)
    git clone Centmin Mod repo...
    fatal: destination path 'centminmod' already exists and is not an empty directory.
    
    real    0m0.001s
    user    0m0.000s
    sys     0m0.001s
    installing lynx...
    
    
    File contains no section headers.
    file: file:///etc/yum.repos.d/CentOS-Base.repo, line: 1
    'priority=1\n'
    Loaded plugins: product-id, versionlock
    Unable to upload Enabled Repositories Report
    inc/downloadlinks.inc: line 96: lynx: command not found
    
    which: no figlet in (/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin:/root/bin)
    
    Ok: physically installed memory is sufficient for Centmin Mod
    Installation [Installed: 3791 MB]
    
    
    Centmin Mod previous installation detected.
    
    If you are upgrading a server which already previously had Centmin Mod installed
    you DO NOT need to run option #1, instead run option #4 & then #5 for upgrading
    Nginx web server and upgrading PHP.
    
    exiting script
    I updated the centminmod code via menu 23 then 2 and then run option 4 and 5 but they all got the same errors.
     
  11. eva2000

    eva2000 Administrator Staff Member

    59,279
    12,508
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +19,140
    Local Time:
    12:58 AM
    Nginx 1.31.x
    MariaDB 10.x/11.4+/12.3+
    fresh OS reload first
     
  12. Andy

    Andy Active Member

    546
    90
    28
    Aug 6, 2014
    Ratings:
    +134
    Local Time:
    9:58 AM
  13. eva2000

    eva2000 Administrator Staff Member

    59,279
    12,508
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +19,140
    Local Time:
    12:58 AM
    Nginx 1.31.x
    MariaDB 10.x/11.4+/12.3+
    it's problems related to cascading failures for some yum repo install/configurations i.e. epel release, remi etc i.e. nginx doesn't get installed as out of box nginx uses clang compiler instead of gcc and clang compiler is only available in epel yum repo and remi yum repo also requires epel release. So when epel yum repo doesn't get installed, you get a cascading set of failures.

    what do you get for output for these 2 commands
    Code (Text):
    lynx -dump -listonly http://download.fedoraproject.org/pub/epel/7/x86_64/repoview/epel-release.html | grep 'rpm' | awk -F " " '{print $2}'
    

    Code (Text):
    yum -y install epel-release
    

    and looks like the first url was revised
    Code (Text):
    lynx -dump -listonly https://download.fedoraproject.org/pub/epel/7/x86_64/e/ | grep epel-release | grep 'rpm' | awk -F " " '{print $2}'
    


    yum epel-release install should render lynx dump method disabled but maybe redhat doesn't recognise epel-release yum install method so fall back to lynx dump method and your attempts on redhat failed as the new revised url is needed
     
    Last edited: Oct 17, 2017
  14. Andy

    Andy Active Member

    546
    90
    28
    Aug 6, 2014
    Ratings:
    +134
    Local Time:
    9:58 AM
    Here is output
    Code:
    lynx -dump -listonly http://download.fedoraproject.org/pub/epel/7/x86_64/repoview/epel-release.html | grep 'rpm' |
    awk -F " " '{print $2}'
    -bash: lynx: command not found
    [03:44][root@mfeapp1v.bc.baruch.cuny.edu ~]# yum -y install epel-release
    Loaded plugins: enabled_repos_upload, package_upload, product-id, search-
                  : disabled-repos, subscription-manager, versionlock
    mariadb                                                  | 2.9 kB     00:00
    rhel-7-server-rpms                                       | 2.0 kB     00:00
    rhel-7-server-satellite-tools-6.2-rpms                   | 2.1 kB     00:00
    rpmforge                                                 | 1.9 kB     00:00
    varnishcache_varnish41/x86_64/signature                  |  836 B     00:00
    varnishcache_varnish41/x86_64/signature                  | 1.0 kB     00:00 !!!
    varnishcache_varnish41-source/signature                  |  836 B     00:00
    varnishcache_varnish41-source/signature                  | 1.0 kB     00:00 !!!
    No package epel-release available.
    Error: Nothing to do
    Uploading Enabled Reposistories Report
    Loaded plugins: product-id, versionlock
    [03:44][root@mfe ~]# lynx -dump -listonly https://download.fedoraproject.org/pub/epel/7/x86_64/e/ | grep epel-release | grep 'rpm' | awk -F " " '{print $2}'
    -bash: lynx: command not found
    [03:44][root@mfe] ~]# which lynx
    /usr/bin/which: no lynx in (/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin:/usr/lib64/ccache:/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin:/root/bin:/root/bin)
    [03:44][root@mfe ~]# sudo yum install lynx
    Loaded plugins: enabled_repos_upload, package_upload, product-id, search-
                  : disabled-repos, subscription-manager, versionlock
    rhel-7-server-rpms                                       | 2.0 kB     00:00
    rhel-7-server-satellite-tools-6.2-rpms                   | 2.1 kB     00:00
    No package lynx available.
    Error: Nothing to do
    Uploading Enabled Reposistories Report
    Loaded plugins: product-id, versionlock
     
  15. eva2000

    eva2000 Administrator Staff Member

    59,279
    12,508
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +19,140
    Local Time:
    12:58 AM
    Nginx 1.31.x
    MariaDB 10.x/11.4+/12.3+
    no lynx either, what does output of command give
    Code (Text):
    yum list lynx
    

    and
    Code (Text):
    yum provides */bin/lynx
    
     
  16. Andy

    Andy Active Member

    546
    90
    28
    Aug 6, 2014
    Ratings:
    +134
    Local Time:
    9:58 AM
    # yum list lynx
    Loaded plugins: enabled_repos_upload, package_upload, product-id, search-
    : disabled-repos, subscription-manager, versionlock
    Error: No matching Packages to list
    Uploading Enabled Reposistories Report
    Loaded plugins: product-id, versionlock
    # yum provides */bin/lynx
    Loaded plugins: enabled_repos_upload, package_upload, product-id, search-
    : disabled-repos, subscription-manager, versionlock
    No matches found
    Uploading Enabled Reposistories Report
    Loaded plugins: product-id, versionlock
     
  17. eva2000

    eva2000 Administrator Staff Member

    59,279
    12,508
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +19,140
    Local Time:
    12:58 AM
    Nginx 1.31.x
    MariaDB 10.x/11.4+/12.3+
    looks like redhat 7 doesn't provide lynx yum package like centos does so might need to use curl instead
     
  18. Andy

    Andy Active Member

    546
    90
    28
    Aug 6, 2014
    Ratings:
    +134
    Local Time:
    9:58 AM
    Can you suggestion something else as a last resource?
     
  19. eva2000

    eva2000 Administrator Staff Member

    59,279
    12,508
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +19,140
    Local Time:
    12:58 AM
    Nginx 1.31.x
    MariaDB 10.x/11.4+/12.3+
    Just updated 123.09beta01 so if redhat 7 is detected use curl instead of lynx to find the epel rpm url

    i.e. on OVH BHS server
    Code (Text):
    curl -4 -sI https://download.fedoraproject.org/pub/epel/7/x86_64/e/ | awk '/Location: / {print $2}'
    http://epel.mirrors.ovh.net/epel/7/x86_64/e/
    

    Code (Text):
    curl -4 -sL https://download.fedoraproject.org/pub/epel/7/x86_64/e/ | grep -o '<a .*href=.*>' | sed -e 's/<a /\n<a /g' | sed -e 's/<a .*href=['"'"'"]//' -e 's/["'"'"'].*$//' -e '/^$/ d' | grep 'epel-release' | grep 'rpm'
    epel-release-7-10.noarch.rpm
    
     
  20. Andy

    Andy Active Member

    546
    90
    28
    Aug 6, 2014
    Ratings:
    +134
    Local Time:
    9:58 AM
    is there any cloud instant with RH I can test this with? DO does not have RH.