Prerequisites for Installing cPanel & MariaDB
- Fresh AlmaLinux server
- SSH access (PuTTY recommended)
- WinSCP to manage files
- Stable internet connection
Why Choose MariaDB over MySQL?
- Faster performance
- Enhanced security
- Additional features for modern web apps
Step 1: Prepare AlmaLinux Server and Configure Database Version
Connect via SSH and Create Installation Profile
- Login to your server as root:
ssh root@your_server_ip - Create installation profile folder:
mkdir /root/cpanel_profile - Create configuration file:
touch /root/cpanel_profile/cpanel.config - This file will store preferences, including your chosen MariaDB or MySQL version.
Customize MariaDB or MySQL Version
- Edit the configuration file:
nano /root/cpanel_profile/cpanel.config - 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
- MySQL 8.0 →
⚠️ 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 latestInstallation Breakdown
cd /home: Change to the home directorycurl -o latest -L https://securedownloads.cpanel.net/latest: Download the latest stable cPanel installersh latest: Run the installation script
Installation Duration
- NVMe server: 10–15 minutes
- HDD or hybrid server: 20–30 minutes
Post-Installation Checks
- Verify MariaDB version:
mysql -V - Login to WHM:
https://your_server_ip:2087 - 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.



