Install cPanel on AlmaLinux with MariaDB – Step-by-Step Guide Install cPanel on AlmaLinux with MariaDB – Step-by-Step Guide

Install cPanel on AlmaLinux with MariaDB – Step-by-Step Guide

Prerequisites for Installing cPanel & MariaDB

  • Fresh AlmaLinux server
  • SSH access (PuTTY recommended)
  • WinSCP to manage files
  • Stable internet connection

🔗 Check cPanel supported distributions

Why Choose MariaDB over MySQL?

  • Faster performance
  • Enhanced security
  • Additional features for modern web apps

🔗 Learn more about MariaDB

Step 1: Prepare AlmaLinux Server and Configure Database Version

Connect via SSH and Create Installation Profile

  1. Login to your server as root:
    ssh root@your_server_ip
  2. Create installation profile folder:
    mkdir /root/cpanel_profile
  3. Create configuration file:
    touch /root/cpanel_profile/cpanel.config
  4. This file will store preferences, including your chosen MariaDB or MySQL version.

Customize MariaDB or MySQL Version

  1. Edit the configuration file:
    nano /root/cpanel_profile/cpanel.config
  2. Add the line corresponding to your desired version:
    • MySQL 8.0 → mysql-version=8.0
    • MySQL 8.4 → mysql-version=8.4
    • MariaDB 10.5 → mysql-version=10.5
    • MariaDB 10.6 → mysql-version=10.6
    • MariaDB 10.11 → mysql-version=10.11

⚠️ Warning: Using a version not supported by AlmaLinux will prevent installation.
🔗 Official cPanel guide: Customize MySQL/MariaDB version

Transfer Files with WinSCP (Optional)

Use WinSCP to upload configuration files or scripts into /root/cpanel_profile/ if needed.

Step 2: Install cPanel & WHM on AlmaLinux

cd /home && curl -o latest -L https://securedownloads.cpanel.net/latest && sh latest

Installation Breakdown

  • cd /home: Change to the home directory
  • curl -o latest -L https://securedownloads.cpanel.net/latest: Download the latest stable cPanel installer
  • sh latest: Run the installation script

Installation Duration

  • NVMe server: 10–15 minutes
  • HDD or hybrid server: 20–30 minutes

Post-Installation Checks

  1. Verify MariaDB version:
    mysql -V
  2. Login to WHM: https://your_server_ip:2087
  3. Ensure all services (Apache, Exim, Dovecot, MySQL/MariaDB, cPanel) are running

Step 3: Log in to cPanel

  • Access cPanel via your IP or WHM
  • Confirm MariaDB version
  • Test core features: create databases, users, and set permissions

Additional Services and Support

This tutorial is in collaboration with CongoCloud and 1Server, offering:

  • Web hosting services
  • Consulting and server optimization
  • Personalized assistance for secure server setups

🌐 Visit 1server.fr or congocloud.net to learn more.

Christian – Linux & Mobile Developer

✍️ Christian H

Senior Linux administrator, web & mobile developer, and security strategist with over 10 years of experience. Specialized in server recovery, DNS/SPF troubleshooting, and mobile-first web apps.

📡 Follow updates on Facebook or explore guides on CongoCloud.net.