Learn about Centmin Mod LEMP Stack today
Become a Member

Install New server. Should I use AlmaLinux 9 for Centminmod?

Discussion in 'Install & Upgrades or Pre-Install Questions' started by modder, Apr 11, 2025.

  1. modder

    modder Member

    123
    16
    18
    Dec 6, 2019
    Ratings:
    +27
    Local Time:
    6:09 AM
    Completely fresh install. I want everything the latest. So AlmaLinux 9 is the one to begin with? Thanks.

     
  2. iaTa

    iaTa Member

    63
    12
    8
    Mar 26, 2018
    Ratings:
    +18
    Local Time:
    11:09 PM
    AlmaLinux 9.5 working great for me running a number of WordPress sites behind Cloudflare.

    4 vCPU, 8 GB RAM, 80 GB NVME.

    Here's my custom_config.inc:
    Code (Text):
    # MariaDB overrides
    MARIADB_INSTALLTENTWO='n'   # MariaDB 10.2 YUM default install if set to yes
    MARIADB_INSTALLTENTHREE='n' # MariaDB 10.3 YUM default install if set to yes
    MARIADB_INSTALLTENFOUR='n'  # MariaDB 10.4 YUM default install if set to yes
    MARIADB_INSTALLTENFIVE='n'  # MariaDB 10.5 YUM default install if set to yes
    MARIADB_INSTALLTENSIX='y'   # MariaDB 10.6 YUM default install if set to yes
    
    # override Nginx default HTTPS/TLS crypto library used in EL8/EL9 OSes
    # set OPENSSL_SYSTEM_USE='n' if you want Nginx to use compiled OpenSSL
    # set OPENSSL_SYSTEM_USE='y' which is default now to use EL8 OpenSSL 1.1.1/EL9 OpenSSL 3.0.7 system library
    # https://community.centminmod.com/threads/25407/
    OPENSSL_SYSTEM_USE='n'
    AWS_LC_SWITCH='y'
    
    # MOTD prompt alert user if server reboot is required
    # after YUM package updates, alerts Fri-Sun only
    NEEDRESTART_CHECK='y'
    
    # control variables post vhost creation
    # whether cloudflare.conf include file is uncommented (enabled) or commented out (disabled)
    VHOSTCTRL_CLOUDFLAREINC='y'
    
    # enable letsencrypt ssl certificate + dual RSA+ECDSA ssl certs https://centminmod.com/acmetool/
    LETSENCRYPT_DETECT='y'
    DUALCERTS='y'
    
    # 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/
    NGINX_SSLCACHE_ALLOWOVERRIDE='y'
    
    # override Nginx default OCSP response cache refresh time 1h (3600 seconds) to 24hrs (86400 seconds)
    # https://community.centminmod.com/threads/19515/
    NGINX_STAPLE_CACHE_OVERRIDE='y'
    NGINX_STAPLE_CACHE_TTL='86400'
    
    # SET_DEFAULT_MYSQLCHARSET='utf8mb4' to override MariaDB MySQL
    # default characterset and collation from default utf8 to utf8mb4
    # https://community.centminmod.com/threads/17949/
    SET_DEFAULT_MYSQLCHARSET='utf8mb4'
    
    # enable zstd compressed logrotation for nginx & php-fpm https://community.centminmod.com/threads/16374/
    ZSTD_LOGROTATE_NGINX='y'
    ZSTD_LOGROTATE_PHPFPM='y'
    
    # enable ECC 256bit ECDSA self-signed SSL certificate generation https://community.centminmod.com/posts/82177/
    SELFSIGNEDSSL_ECDSA='y'
    
    # enable brotli compression https://community.centminmod.com/threads/10688/
    NGINX_LIBBROTLI='y'
    NGXDYNAMIC_BROTLI='y'
    
    # php compression extensions https://community.centminmod.com/posts/70777/
    PHP_BROTLI='y'
    PHP_LZFOUR='y'
    PHP_LZF='y'
    PHP_ZSTD='y'
    
    # enable PHP latest version check on SSH logins MOTD
    # https://community.centminmod.com/threads/19540/
    DMOTD_PHPCHECK='y'
    
    # php file info
    PHPFINFO='y'
    
    # enable centmin.sh menu option 22 WordPress Cache Enabler Query String inclusions
    # https://community.centminmod.com/posts/85927/
    WPCLI_CE_QUERYSTRING_INCLUDED='y'
    
    # Profile Guided Optimization
    PHP_PGO='y'
    PHP_PGO_ALWAYS='y'
    
    # force native compiler to override smarter vps detection routine
    MARCH_TARGETNATIVE='y'
    MARCH_TARGETNATIVE_ALWAYS='y'
    
    # enable PHP GD AVIF support by default for PHP >=8.1 in EL8/EL9
    PHP_LIBGD_EXTERNAL='y'
    PHP_GD_AVIF='y'
    
    # for EL8/EL9 ImageMagick7 7.x install instead of ImageMagick 6.x
    IMAGEMAGICK_SEVEN='y'
    
     
  3. duderuud

    duderuud Premium Member Premium Member

    260
    84
    28
    Dec 5, 2020
    The Netherlands
    Ratings:
    +181
    Local Time:
    12:09 AM
    1.27 x
    10.6
    Alma is your best option yes.
     
  4. eva2000

    eva2000 Administrator Staff Member

    55,156
    12,249
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +18,825
    Local Time:
    8:09 AM
    Nginx 1.27.x
    MariaDB 10.x/11.4+
    Yup AlmaLinux 9 looks good unless you need PHP <7.4 for some reason, EL9 really only for PHP 8.1+
     
  5. DediRock

    DediRock Member

    27
    2
    8
    Nov 21, 2024
    Miami Florida USA
    Ratings:
    +2
    Local Time:
    6:09 PM
    Yes, AlmaLinux 9 is great for fresh installs. Just make sure Centminmod supports it fully.