Want more timely Centmin Mod News Updates?
Become a Member

Discussion: how do you initially install & setup your Centmin Mod server?

Discussion in 'Install & Upgrades or Pre-Install Questions' started by eva2000, May 9, 2018.

  1. eva2000

    eva2000 Administrator Staff Member

    45,987
    10,446
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +16,208
    Local Time:
    5:42 AM
    Nginx 1.19.x
    MariaDB 5.5/10.x
    just run the addons/customcurl.sh script after initial install https://community.centminmod.com/threads/centmin-mod-curl-7-48-custom-rpms.3703/

    i'll have to check initial install routines to see if it works using the variable

    edit: ok found the problem customcurl's yum repo's HTTPS config is broken giving 400 bad requests error, so need to switch to non-HTTPS version of customcurl yum repo
    Code (Text):
    curl -I https://mirror.city-fan.org/ftp/contrib/yum-repo/rhel7/
    HTTP/1.1 400 Bad Request
    Date: Sun, 12 May 2019 22:24:02 GMT
    Server: Apache/2.4.39 (Fedora) OpenSSL/1.1.1b mod_fcgid/2.3.9 SVN/1.11.1
    Connection: close
    Content-Type: text/html; charset=iso-8859-1
    

    Code (Text):
    curl -I http://mirror.city-fan.org/ftp/contrib/yum-repo/rhel7/
    HTTP/1.1 200 OK
    Date: Sun, 12 May 2019 22:25:23 GMT
    Server: Apache/2.4.39 (Fedora) OpenSSL/1.1.1b mod_fcgid/2.3.9 SVN/1.11.1
    Content-Type: text/html;charset=ISO-8859-1
    

    so do a cmupdate command run to update 123.09beta01 and then do manual addons/customcurl.sh run this time. In future initial installs CUSTOM_CURLRPM='y' should work now with fix.
     
  2. jeparamedia

    jeparamedia New Member

    28
    8
    3
    May 9, 2019
    Ratings:
    +14
    Local Time:
    2:42 AM
    1.15.12
    MariaDB 10.3.15
    OMG, why i didn't see this before..

    I used this command;
    yum -y update; curl -O https://centminmod.com/betainstaller73.sh && chmod 0700 betainstaller73.sh && bash betainstaller73.sh

    and then

    # enable letsencrypt ssl certificate + dual RSA+ECDSA ssl certs https://centminmod.com/acmetool/
    echo "LETSENCRYPT_DETECT='y'" >> /etc/centminmod/custom_config.inc

    then Install WP with 22 menu

    ====================================
    note: I skip this metode, because always failed !

    "1. Setup The Default Server Main Hostname Nginx Vhost. :D "

    I setup hostname.jeparamedia.com --> yes it's working with LE
    then I install jeparamedia.com --->> I dont know why SSL not working

    that why I skip this step !

    ==================================

    thanks for the guides
     
  3. Kuro

    Kuro Member

    82
    12
    8
    Feb 8, 2018
    Ratings:
    +19
    Local Time:
    2:42 AM
    1.15.10
    10.3
    Hi Eva, initially install & setup your Centmin Mod server.
    You haven't shared it for a long time, i want to know to learn :D
     
  4. eva2000

    eva2000 Administrator Staff Member

    45,987
    10,446
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +16,208
    Local Time:
    5:42 AM
    Nginx 1.19.x
    MariaDB 5.5/10.x
    Ok my latest method outlining SSH commands I use (all run in same SSH session window):


    Code (Text):
    # set your email address you want to receive alerts and server emails
    EMAIL=youremail@address.com
    

    Code (Text):
    # create initial persistent config file to override centmin.sh defaults
    # https://centminmod.com/upgrade.html#persistent
    mkdir -p /etc/centminmod
    touch /etc/centminmod/custom_config.inc
    
    # enable nginx backlog override https://community.centminmod.com/threads/17620/
    echo "AUTOHARDTUNE_NGINXBACKLOG='y'" >> /etc/centminmod/custom_config.inc
    
    # enable zstd compressed logrotation for nginx & php-fpm https://community.centminmod.com/threads/16374/
    echo "ZSTD_LOGROTATE_NGINX='y'" >> /etc/centminmod/custom_config.inc
    echo "ZSTD_LOGROTATE_PHPFPM='y'" >> /etc/centminmod/custom_config.inc
    
    # enable nginx zero downtime on the fly nginx binary upgrades https://community.centminmod.com/threads/8000/
    #echo "NGINX_ZERODT='y'" >> /etc/centminmod/custom_config.inc
    
    # enable brotli compression https://community.centminmod.com/threads/10688/
    echo "NGINX_LIBBROTLI='y'" >> /etc/centminmod/custom_config.inc
    echo "NGXDYNAMIC_BROTLI='y'" >> /etc/centminmod/custom_config.inc
    
    # boost PHP 7 performance by enabling Profile Guided Optimisation flag
    # https://centminmod.com/perf/
    echo "PHP_PGO='y'" >> /etc/centminmod/custom_config.inc
    
    # php compression extensions https://community.centminmod.com/posts/70777/
    echo "PHP_BROTLI='y'" >> /etc/centminmod/custom_config.inc
    echo "PHP_LZFOUR='y'" >> /etc/centminmod/custom_config.inc
    echo "PHP_LZF='y'" >> /etc/centminmod/custom_config.inc
    echo "PHP_ZSTD='y'" >> /etc/centminmod/custom_config.inc
    
    # install centmin mod latest beta with php-fpm 7.2 default
    # https://community.centminmod.com/threads/centmin-mod-09-beta-branch-testing.4128/
    yum -y update; curl -O https://centminmod.com/betainstaller72.sh && chmod 0700 betainstaller72.sh && bash betainstaller72.sh
    
    # enable letsencrypt ssl certificate + dual RSA+ECDSA ssl certs https://centminmod.com/acmetool/
    echo "LETSENCRYPT_DETECT='y'" >> /etc/centminmod/custom_config.inc
    echo "DUALCERTS='y'" >> /etc/centminmod/custom_config.inc
    
    # install and configure auditd https://community.centminmod.com/posts/37680/
    echo "AUDITD_ENABLE='y'" >> /etc/centminmod/custom_config.inc
    /usr/local/src/centminmod/tools/auditd.sh setup
    
    # setup extended CSF Firewall blocklists https://community.centminmod.com/posts/50060/
    /usr/local/src/centminmod/tools/csf-advancetweaks.sh
    
    # enable CSF Firewall native fail2ban like support
    # https://community.centminmod.com/posts/62343/
    csf --profile backup backup-b4-customregex
    cp -a /usr/local/csf/bin/regex.custom.pm /usr/local/csf/bin/regex.custom.pm.bak
    egrep 'CUSTOM1_LOG|CUSTOM2_LOG|CUSTOM3_LOG|CUSTOM4_LOG' /etc/csf/csf.conf
    sed -i "s|CUSTOM1_LOG = .*|CUSTOM1_LOG = \"/home/nginx/domains/\*/log/access.log\"|" /etc/csf/csf.conf
    sed -i "s|CUSTOM2_LOG = .*|CUSTOM2_LOG = \"/home/nginx/domains/\*/log/error.log\"|" /etc/csf/csf.conf
    sed -i "s|CUSTOM3_LOG = .*|CUSTOM3_LOG = \"/var/log/nginx/localhost.access.log\"|" /etc/csf/csf.conf
    sed -i "s|CUSTOM4_LOG = .*|CUSTOM4_LOG = \"/var/log/nginx/localhost.error.log\"|" /etc/csf/csf.conf
    egrep 'CUSTOM1_LOG|CUSTOM2_LOG|CUSTOM3_LOG|CUSTOM4_LOG' /etc/csf/csf.conf
    wget -O /usr/local/csf/bin/regex.custom.pm https://gist.github.com/centminmod/f5551b92b8aba768c3b4db84c57e756d/raw/regex.custom.pm
    csf -ra
    
    # setup email alerts for diskalert cronjob /etc/cron.daily/diskalert
    # https://community.centminmod.com/posts/59973/
    sed -i "s|EMAIL=.*|EMAIL='$EMAIL'|" /etc/cron.daily/diskalert
    
     
  5. eva2000

    eva2000 Administrator Staff Member

    45,987
    10,446
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +16,208
    Local Time:
    5:42 AM
    Nginx 1.19.x
    MariaDB 5.5/10.x
    latest method outlining SSH commands I use (all run in same SSH session window):
    • support SET_DEFAULT_MYSQLCHARSET variable to override MariaDB MySQL default characterset and collation from default utf8 to utf8mb4 by setting SET_DEFAULT_MYSQLCHARSET='utf8mb4' in persistent config file /etc/centminmod/custom_config.inc prior to initial Centmin Mod install Beta Branch - add SET_DEFAULT_MYSQLCHARSET variable in 123.09beta01
    Code (Text):
    # set your email address you want to receive alerts and server emails
    EMAIL=youremail@address.com
    

    Code (Text):
    # create initial persistent config file to override centmin.sh defaults
    # https://centminmod.com/upgrade.html#persistent
    mkdir -p /etc/centminmod
    touch /etc/centminmod/custom_config.inc
    
    # SET_DEFAULT_MYSQLCHARSET='utf8mb4' to override MariaDB MySQL 
    # default characterset and collation from default utf8 to utf8mb4
    # https://community.centminmod.com/threads/17949/
    echo "SET_DEFAULT_MYSQLCHARSET='utf8mb4'" >> /etc/centminmod/custom_config.inc
    
    # enable nginx backlog override https://community.centminmod.com/threads/17620/
    echo "AUTOHARDTUNE_NGINXBACKLOG='y'" >> /etc/centminmod/custom_config.inc
    
    # enable zstd compressed logrotation for nginx & php-fpm https://community.centminmod.com/threads/16374/
    echo "ZSTD_LOGROTATE_NGINX='y'" >> /etc/centminmod/custom_config.inc
    echo "ZSTD_LOGROTATE_PHPFPM='y'" >> /etc/centminmod/custom_config.inc
    
    # enable nginx zero downtime on the fly nginx binary upgrades https://community.centminmod.com/threads/8000/
    #echo "NGINX_ZERODT='y'" >> /etc/centminmod/custom_config.inc
    
    # enable brotli compression https://community.centminmod.com/threads/10688/
    echo "NGINX_LIBBROTLI='y'" >> /etc/centminmod/custom_config.inc
    echo "NGXDYNAMIC_BROTLI='y'" >> /etc/centminmod/custom_config.inc
    
    # boost PHP 7 performance by enabling Profile Guided Optimisation flag
    # https://centminmod.com/perf/
    echo "PHP_PGO='y'" >> /etc/centminmod/custom_config.inc
    
    # php compression extensions https://community.centminmod.com/posts/70777/
    echo "PHP_BROTLI='y'" >> /etc/centminmod/custom_config.inc
    echo "PHP_LZFOUR='y'" >> /etc/centminmod/custom_config.inc
    echo "PHP_LZF='y'" >> /etc/centminmod/custom_config.inc
    echo "PHP_ZSTD='y'" >> /etc/centminmod/custom_config.inc
    
    # install centmin mod latest beta with php-fpm 7.2 default
    # https://community.centminmod.com/threads/centmin-mod-09-beta-branch-testing.4128/
    yum -y update; curl -O https://centminmod.com/betainstaller72.sh && chmod 0700 betainstaller72.sh && bash betainstaller72.sh
    
    # enable letsencrypt ssl certificate + dual RSA+ECDSA ssl certs https://centminmod.com/acmetool/
    echo "LETSENCRYPT_DETECT='y'" >> /etc/centminmod/custom_config.inc
    echo "DUALCERTS='y'" >> /etc/centminmod/custom_config.inc
    
    # install and configure auditd https://community.centminmod.com/posts/37680/
    echo "AUDITD_ENABLE='y'" >> /etc/centminmod/custom_config.inc
    /usr/local/src/centminmod/tools/auditd.sh setup
    
    # setup extended CSF Firewall blocklists https://community.centminmod.com/posts/50060/
    /usr/local/src/centminmod/tools/csf-advancetweaks.sh
    
    # enable CSF Firewall native fail2ban like support
    # https://community.centminmod.com/posts/62343/
    csf --profile backup backup-b4-customregex
    cp -a /usr/local/csf/bin/regex.custom.pm /usr/local/csf/bin/regex.custom.pm.bak
    egrep 'CUSTOM1_LOG|CUSTOM2_LOG|CUSTOM3_LOG|CUSTOM4_LOG' /etc/csf/csf.conf
    sed -i "s|CUSTOM1_LOG = .*|CUSTOM1_LOG = \"/home/nginx/domains/\*/log/access.log\"|" /etc/csf/csf.conf
    sed -i "s|CUSTOM2_LOG = .*|CUSTOM2_LOG = \"/home/nginx/domains/\*/log/error.log\"|" /etc/csf/csf.conf
    sed -i "s|CUSTOM3_LOG = .*|CUSTOM3_LOG = \"/var/log/nginx/localhost.access.log\"|" /etc/csf/csf.conf
    sed -i "s|CUSTOM4_LOG = .*|CUSTOM4_LOG = \"/var/log/nginx/localhost.error.log\"|" /etc/csf/csf.conf
    egrep 'CUSTOM1_LOG|CUSTOM2_LOG|CUSTOM3_LOG|CUSTOM4_LOG' /etc/csf/csf.conf
    wget -O /usr/local/csf/bin/regex.custom.pm https://gist.github.com/centminmod/f5551b92b8aba768c3b4db84c57e756d/raw/regex.custom.pm
    csf -ra
    
    # setup email alerts for diskalert cronjob /etc/cron.daily/diskalert
    # https://community.centminmod.com/posts/59973/
    sed -i "s|EMAIL=.*|EMAIL='$EMAIL'|" /etc/cron.daily/diskalert
    
     
  6. jeparamedia

    jeparamedia New Member

    28
    8
    3
    May 9, 2019
    Ratings:
    +14
    Local Time:
    2:42 AM
    1.15.12
    MariaDB 10.3.15
    Nice questions :)
     
  7. jeparamedia

    jeparamedia New Member

    28
    8
    3
    May 9, 2019
    Ratings:
    +14
    Local Time:
    2:42 AM
    1.15.12
    MariaDB 10.3.15
    I need to update some of this code if i already running my centmin? Thx eva
     
  8. eva2000

    eva2000 Administrator Staff Member

    45,987
    10,446
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +16,208
    Local Time:
    5:42 AM
    Nginx 1.19.x
    MariaDB 5.5/10.x
    latest method outlining SSH commands I use (all run in same SSH session window):
    Code (Text):
    # set your email address you want to receive alerts and server emails
    EMAIL=youremail@address.com
    

    Code (Text):
    # create initial persistent config file to override centmin.sh defaults
    # https://centminmod.com/upgrade.html#persistent
    mkdir -p /etc/centminmod
    touch /etc/centminmod/custom_config.inc
    
    # dynamically tune nginx ssl_session_cache in /usr/local/nginx/conf/ssl_include.conf based on system detected memory
    # https://community.centminmod.com/posts/76615/
    echo "NGINX_SSLCACHE_ALLOWOVERRIDE='y'" >> /etc/centminmod/custom_config.inc
    
    # SET_DEFAULT_MYSQLCHARSET='utf8mb4' to override MariaDB MySQL
    # default characterset and collation from default utf8 to utf8mb4
    # https://community.centminmod.com/threads/17949/
    echo "SET_DEFAULT_MYSQLCHARSET='utf8mb4'" >> /etc/centminmod/custom_config.inc
    
    # enable nginx backlog override https://community.centminmod.com/threads/17620/
    echo "AUTOHARDTUNE_NGINXBACKLOG='y'" >> /etc/centminmod/custom_config.inc
    
    # enable zstd compressed logrotation for nginx & php-fpm https://community.centminmod.com/threads/16374/
    echo "ZSTD_LOGROTATE_NGINX='y'" >> /etc/centminmod/custom_config.inc
    echo "ZSTD_LOGROTATE_PHPFPM='y'" >> /etc/centminmod/custom_config.inc
    
    # enable nginx zero downtime on the fly nginx binary upgrades https://community.centminmod.com/threads/8000/
    #echo "NGINX_ZERODT='y'" >> /etc/centminmod/custom_config.inc
    
    # enable brotli compression https://community.centminmod.com/threads/10688/
    echo "NGINX_LIBBROTLI='y'" >> /etc/centminmod/custom_config.inc
    echo "NGXDYNAMIC_BROTLI='y'" >> /etc/centminmod/custom_config.inc
    
    # boost PHP 7 performance by enabling Profile Guided Optimisation flag
    # https://centminmod.com/perf/
    echo "PHP_PGO='y'" >> /etc/centminmod/custom_config.inc
    
    # php compression extensions https://community.centminmod.com/posts/70777/
    echo "PHP_BROTLI='y'" >> /etc/centminmod/custom_config.inc
    echo "PHP_LZFOUR='y'" >> /etc/centminmod/custom_config.inc
    echo "PHP_LZF='y'" >> /etc/centminmod/custom_config.inc
    echo "PHP_ZSTD='y'" >> /etc/centminmod/custom_config.inc
    
    # install centmin mod latest beta with php-fpm 7.2 default
    # https://community.centminmod.com/threads/centmin-mod-09-beta-branch-testing.4128/
    yum -y update; curl -O https://centminmod.com/betainstaller72.sh && chmod 0700 betainstaller72.sh && bash betainstaller72.sh
    
    # enable letsencrypt ssl certificate + dual RSA+ECDSA ssl certs https://centminmod.com/acmetool/
    echo "LETSENCRYPT_DETECT='y'" >> /etc/centminmod/custom_config.inc
    echo "DUALCERTS='y'" >> /etc/centminmod/custom_config.inc
    
    # install and configure auditd https://community.centminmod.com/posts/37680/
    echo "AUDITD_ENABLE='y'" >> /etc/centminmod/custom_config.inc
    /usr/local/src/centminmod/tools/auditd.sh setup
    
    # setup extended CSF Firewall blocklists https://community.centminmod.com/posts/50060/
    /usr/local/src/centminmod/tools/csf-advancetweaks.sh
    
    # enable CSF Firewall native fail2ban like support
    # https://community.centminmod.com/posts/62343/
    csf --profile backup backup-b4-customregex
    cp -a /usr/local/csf/bin/regex.custom.pm /usr/local/csf/bin/regex.custom.pm.bak
    egrep 'CUSTOM1_LOG|CUSTOM2_LOG|CUSTOM3_LOG|CUSTOM4_LOG' /etc/csf/csf.conf
    sed -i "s|CUSTOM1_LOG = .*|CUSTOM1_LOG = \"/home/nginx/domains/\*/log/access.log\"|" /etc/csf/csf.conf
    sed -i "s|CUSTOM2_LOG = .*|CUSTOM2_LOG = \"/home/nginx/domains/\*/log/error.log\"|" /etc/csf/csf.conf
    sed -i "s|CUSTOM3_LOG = .*|CUSTOM3_LOG = \"/var/log/nginx/localhost.access.log\"|" /etc/csf/csf.conf
    sed -i "s|CUSTOM4_LOG = .*|CUSTOM4_LOG = \"/var/log/nginx/localhost.error.log\"|" /etc/csf/csf.conf
    egrep 'CUSTOM1_LOG|CUSTOM2_LOG|CUSTOM3_LOG|CUSTOM4_LOG' /etc/csf/csf.conf
    wget -O /usr/local/csf/bin/regex.custom.pm https://gist.github.com/centminmod/f5551b92b8aba768c3b4db84c57e756d/raw/regex.custom.pm
    csf -ra
    
    # setup email alerts for diskalert cronjob /etc/cron.daily/diskalert
    # https://community.centminmod.com/posts/59973/
    sed -i "s|EMAIL=.*|EMAIL='$EMAIL'|" /etc/cron.daily/diskalert
    
     
  9. EckyBrazzz

    EckyBrazzz Active Member

    884
    186
    43
    Mar 28, 2018
    >>>>Click here<<<< i'm nearby......
    Ratings:
    +342
    Local Time:
    4:42 PM
    Latest
    Latest
    I started a new one today and the first steps where these. I only don't get why @eva2000 still wants php7.2 and I install yum auto update.

    And of course the CMM github, but that's not here. Sorry, removed comments, just copied them over from new learned thing, easynote:)

    Code (Text):
    EMAIL=private@private.com
    mkdir -p /etc/centminmod
    touch /etc/centminmod/custom_config.inc
    echo "ZSTD_LOGROTATE_NGINX='y'" >> /etc/centminmod/custom_config.inc
    echo "ZSTD_LOGROTATE_PHPFPM='y'" >> /etc/centminmod/custom_config.inc
    echo "NGINX_ZERODT='y'" >> /etc/centminmod/custom_config.inc
    echo "NGINX_LIBBROTLI='y'" >> /etc/centminmod/custom_config.inc
    echo "NGXDYNAMIC_BROTLI='y'" >> /etc/centminmod/custom_config.inc
    echo "PHP_PGO='y'" >> /etc/centminmod/custom_config.inc
    echo "MARIADB_INSTALLTENTHREE='y'" >> /etc/centminmod/custom_config.inc
    echo "LETSENCRYPT_DETECT='y'" >> /etc/centminmod/custom_config.inc
    echo "DUALCERTS='y'" >> /etc/centminmod/custom_config.inc
    echo "AUDITD_ENABLE='y'" >> /etc/centminmod/custom_config.inc
    echo "PHP_BROTLI='y'" >> /etc/centminmod/custom_config.inc
    echo "PHP_LZFOUR='y'" >> /etc/centminmod/custom_config.inc
    echo "PHP_LZF='y'" >> /etc/centminmod/custom_config.inc
    echo "PHP_ZSTD='y'" >> /etc/centminmod/custom_config.inc
    yum -y update; curl -O [URL]https://centminmod.com/betainstaller73.sh[/URL] && chmod 0700 betainstaller73.sh && bash betainstaller73.sh
    echo "AUDITD_ENABLE='y'" >> /etc/centminmod/custom_config.inc
    /usr/local/src/centminmod/tools/auditd.sh setup
    /usr/local/src/centminmod/tools/csf-advancetweaks.sh
    echo "AUDITD_ENABLE='y'" >> /etc/centminmod/custom_config.inc
    /usr/local/src/centminmod/tools/auditd.sh setup
    /usr/local/src/centminmod/tools/csf-advancetweaks.sh
    csf --profile backup backup-b4-customregex
    cp -a /usr/local/csf/bin/regex.custom.pm /usr/local/csf/bin/regex.custom.pm.bak
    egrep 'CUSTOM1_LOG|CUSTOM2_LOG|CUSTOM3_LOG|CUSTOM4_LOG' /etc/csf/csf.conf
    sed -i "s|CUSTOM1_LOG = .*|CUSTOM1_LOG = \"/home/nginx/domains/\*/log/access.log\"|" /etc/csf/csf.conf
    sed -i "s|CUSTOM2_LOG = .*|CUSTOM2_LOG = \"/home/nginx/domains/\*/log/error.log\"|" /etc/csf/csf.conf
    sed -i "s|CUSTOM3_LOG = .*|CUSTOM3_LOG = \"/var/log/nginx/localhost.access.log\"|" /etc/csf/csf.conf
    sed -i "s|CUSTOM4_LOG = .*|CUSTOM4_LOG = \"/var/log/nginx/localhost.error.log\"|" /etc/csf/csf.conf
    egrep 'CUSTOM1_LOG|CUSTOM2_LOG|CUSTOM3_LOG|CUSTOM4_LOG' /etc/csf/csf.conf
    wget -O /usr/local/csf/bin/regex.custom.pm [URL]https://gist.github.com/centminmod/f5551b92b8aba768c3b4db84c57e756d/raw/regex.custom.pm[/URL]
    csf -ra
    sed -i "s|EMAIL=.*|EMAIL='$EMAIL'|" /etc/cron.daily/diskalert
    yum -y install yum-cron
    EMAIL=private@private.com
    sed -i "s|^email_to = root|email_to = ${EMAIL}|" /etc/yum/yum-cron.conf
    sed -i 's|^update_messages = no|update_messages = yes|' /etc/yum/yum-cron.conf
    sed -i 's|^download_updates = no|download_updates = yes|' /etc/yum/yum-cron.conf
    sed -i 's|^apply_updates = no|apply_updates = yes|' /etc/yum/yum-cron.conf
    sed -i 's|^emit_via = stdio|emit_via = email|' /etc/yum/yum-cron.conf
    sed -i "s|^email_to = root|email_to = ${EMAIL}|" /etc/yum/yum-cron-hourly.conf
    sed -i 's|^update_cmd = default|update_cmd = security|' /etc/yum/yum-cron-hourly.conf
    sed -i 's|^update_messages = no|update_messages = yes|' /etc/yum/yum-cron-hourly.conf
    sed -i 's|^download_updates = no|download_updates = yes|' /etc/yum/yum-cron-hourly.conf
    sed -i 's|^apply_updates = no|apply_updates = yes|' /etc/yum/yum-cron-hourly.conf
    sed -i 's|^emit_via = stdio|emit_via = email|' /etc/yum/yum-cron-hourly.conf   
    egrep '^email_to|^update_messages|^download_updates|^apply_updates|^emit_via' /etc/yum/yum-cron.conf
    
     
  10. adamus007p

    adamus007p Member

    253
    16
    18
    Feb 8, 2019
    Ratings:
    +27
    Local Time:
    8:42 PM
  11. EckyBrazzz

    EckyBrazzz Active Member

    884
    186
    43
    Mar 28, 2018
    >>>>Click here<<<< i'm nearby......
    Ratings:
    +342
    Local Time:
    4:42 PM
    Latest
    Latest
    @adamus007p Add whatever you want to the custumconfig file, and recompile nginx & php

    Option #1 won't work, give a message that centmin is already installed.
    Code (Text):
    Enter option [ 1 - 24 ] 1
    --------------------------------------------------------
    
    Ok: physically installed memory is sufficient for Centmin Mod
    Installation [Installed: 8096 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
    
    --------------------------------------------------------
         Centmin Mod Menu 123.09beta01 centminmod.com  
    --------------------------------------------------------
    


    and running yum -y update; curl -O https://centminmod.com/betainstaller73.sh && chmod 0700 betainstaller73.sh && bash betainstaller73.sh

    instead of yum -y update; curl -O https://centminmod.com/betainstaller72.sh && chmod 0700 betainstaller72.sh && bash betainstaller72.sh

    is a personal choice.
     
    Last edited: Oct 13, 2019
  12. adamus007p

    adamus007p Member

    253
    16
    18
    Feb 8, 2019
    Ratings:
    +27
    Local Time:
    8:42 PM
  13. EckyBrazzz

    EckyBrazzz Active Member

    884
    186
    43
    Mar 28, 2018
    >>>>Click here<<<< i'm nearby......
    Ratings:
    +342
    Local Time:
    4:42 PM
    Latest
    Latest
    That installer just installs PHP 7.3.10 at the moment. The Best work to do is to manual edit or if no exist create nano /etc/centminmod/custom_config.inc and add the configuration. Then run option #5 to recompile PHP

    As your new, probably the /etc/centminmod/custom_config.inc does not exist.

    There is absolutely no need to run the installer again. (never tried it because you can configure Centmin mod afterwards the way you want it to be)
     
  14. eva2000

    eva2000 Administrator Staff Member

    45,987
    10,446
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +16,208
    Local Time:
    5:42 AM
    Nginx 1.19.x
    MariaDB 5.5/10.x
    Installer is for fresh centos new installs not existing Centmin Mod installs
     
  15. EckyBrazzz

    EckyBrazzz Active Member

    884
    186
    43
    Mar 28, 2018
    >>>>Click here<<<< i'm nearby......
    Ratings:
    +342
    Local Time:
    4:42 PM
    Latest
    Latest
    I did so many installs on servers that I recorded 2 scripts,
    Most important step = buy vandyke SecureCRT and run scripts.

    1 to upgrade to the kernel to 5.x
    2 to do the perfect installation as @eva2000 was mentioning above and add whatever you want
     
  16. tininho

    tininho Active Member

    131
    34
    28
    May 22, 2019
    Nordic
    Ratings:
    +95
    Local Time:
    9:42 PM
    Have you witnessed any real benefits from this? I used to upgrade as well, but let it go after I got some nginx errors regarding Nginx Iouring. I see no difference on performance on any of my servers (Then again, I've done only modest benchmarks).
     
  17. EckyBrazzz

    EckyBrazzz Active Member

    884
    186
    43
    Mar 28, 2018
    >>>>Click here<<<< i'm nearby......
    Ratings:
    +342
    Local Time:
    4:42 PM
    Latest
    Latest
  18. eva2000

    eva2000 Administrator Staff Member

    45,987
    10,446
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +16,208
    Local Time:
    5:42 AM
    Nginx 1.19.x
    MariaDB 5.5/10.x
    benefits depend cpu model, newer cpus will have greater benefits i.e. AMD Ryzen/Epyc 1st gen need Linux Kernel 4.15+ to shine and 2nd gen needs 5.2+ to shine. Intel Skylake cpus and newer also shine better on Linux Kernel 5.1+
     
  19. tininho

    tininho Active Member

    131
    34
    28
    May 22, 2019
    Nordic
    Ratings:
    +95
    Local Time:
    9:42 PM
    Last edited: Oct 30, 2019
  20. EckyBrazzz

    EckyBrazzz Active Member

    884
    186
    43
    Mar 28, 2018
    >>>>Click here<<<< i'm nearby......
    Ratings:
    +342
    Local Time:
    4:42 PM
    Latest
    Latest
    @tininho to make it more to shine as @eva2000 tells (I rather say preform) make sure you have this in your /etc/centminmod/custom_config.inc
    Code (Text):
    NGINX_IOURING_PATCH='y'  

    Recompile nginx and see it "shine more":)