How to Install cPanel on AlmaLinux
AlmaLinux is a secure and stable Linux distribution that has been released as CentOS alternative. cPanel is one of the most popular control panels for web hosting operations. In this article we tell you how to install cPanel on AlmaLinux.
Preliminary Requirements
Make sure you meet the following requirements before you start installing cPanel:
-
Supported AlmaLinux Versions: AlmaLinux 8 or higher.
-
Minimum 2 GB RAM (4 GB recommended).
-
Minimum 20 GB disk space.
-
Root user engagement.
-
A static IP address (cPanel does not support dynamic IP addresses).
-
Installation of a clean AlmaLinux (not installed any control panel before).
Step 1: Check System Requirements
Before starting the installation, make sure your server is a clean installation and has the necessary resources:
cat /etc/os-release
free -m
df -h
Step 2: Update Server
Update AlmaLinux server with latest updates:
yum update -y
Step 3: Configure Hostname Setting
A convenient hostname is required in cPanel installation. You can set your Hostname with the following command:
hostnamectl set-hostname server.sizindomaininiz.com
Step 4: Load Perl and Setup
Perl is necessary for cPanel installation. First install Perl:
yum install perl -y
Use the following commands to download and run the cPanel installation script:
cd /home
curl -o latest -L https://securedownloads.cpanel.net/latest
sh latest
Step 5: Complete Installation
The installation will automatically download and install cPanel. This process may take 30-60 minutes depending on the speed of your server.
Once the installation is completed, you can access the cPanel WHM (Web Host Manager) interface with the following URL:
https://[SUNUCU_IP]:2087
You can log in using “root” and server password as a username.
Step 6: Verify cPanel License
The license is necessary to use cPanel exactly. To verify the license, enter the WHM panel and follow the license activation instructions.
Step 7: Firewall Settings
Setting open ports for cPanel and WHM is necessary. Make sure the following ports are open:
-
2087: WHM
-
2083: cPanel
-
443 and 80: HTTPS and HTTP
To configure Firewall settings:
firewall-cmd --permanent --add-port=2087/tcp
firewall-cmd --permanent --add-port=2083/tcp
firewall-cmd --reload
Conclusion
Once you have completed these steps, you will have successfully installed cPanel on AlmaLinux. cPanel is a powerful tool to help you manage your hosting operations easily. After completing license and basic settings, you can start managing your websites and email accounts.