Initial System Requirements
Operating System & Version | Processor | RAM | Disk Space | Architecture |
AlmaLinux 9 | 1.1 GHz |
|
|
64-bit |
AlmaLinux 8 | 1.1 GHz |
|
|
64-bit |
Step 1: Update Your System
Before proceeding, ensure your system is fully updated:
sudo yum update -y
sudo yum upgrade -y
Step 2: Disable Firewall
To prevent conflicts during installation, disable the firewall:
iptables-save > ~/firewall.rules
systemctl stop firewalld.service
systemctl disable firewalld.service
Step 3: Disable SELinux
Modify the SELinux configuration file to disable it:
nano /etc/selinux/config
Find the following line and change it to:
SELINUX=disabled
Save the file and reboot the system for changes to take effect.
Step 4: Install Perl
cPanel requires Perl to function properly. Install it with:
yum -y install perl
Step 5: Set the Hostname
Assign a Fully Qualified Domain Name (FQDN) to your server:
hostnamectl set-hostname <your-hostname>
Step 6: Install cPanel
Download and run the latest cPanel installer script:
cd /home && curl -o latest -L https://securedownloads.cpanel.net/latest && sh latest
The installation process may take between 5 to 30 minutes, depending on server resources and internet speed.
Step 7: Access WHM (Web Host Manager)
Once the installation is complete, access the WHM web interface using:
https://your-server-ip-address:2087
Log in using:
- Username: root
- Password: (Your root password)
- Follow the on-screen setup wizard to finalize the installation.
Conclusion
Congratulations! You have successfully installed cPanel on your AlmaLinux server. If you need further assistance, visit the official cPanel website.