cPanel is a powerful control panel widely used for managing web hosting processes. However, if not installed or configured correctly, various issues may arise. In this article, we will perform the installation of cPanel on AlmaLinux step by step and provide the necessary steps to solve common problems you may encounter.
Requirements
First, ensure that the following requirements are met for successful cPanel installation:
AlmaLinux 8 or newer version.
Minimum 1 GB RAM (preferably 2 GB or more).
At least 20 GB of free disk space.
A clean installation (i.e., no other control panel should be installed).
Step 1: Update AlmaLinux
Connect to your server via SSH:
ssh root@
Then, update your system:
dnf update -y
Step 2: Install Required Packages
Install some necessary packages for cPanel installation:
dnf install perl wget -y
Step 3: Download cPanel Installation Script
Download the latest version of cPanel:
wget -N http://httpupdate.cpanel.net/latest
Step 4: Start cPanel Installation
Run the installation script:
sh latest
The installation process may take a few minutes. Once completed, the necessary information will be displayed in the terminal.
Step 5: Accessing cPanel
Once the installation is complete, open your browser to access cPanel:
https://:2087
You can log in with the root username and password.
Common Issues and Solutions
1. cPanel Installation Error
If you encounter an error during installation, check if necessary packages are missing:
dnf install perl wget -y
Check for updates and try again.
2. Access Error (403 Forbidden)
This error is usually caused by firewall settings. Check your firewall settings and open the necessary ports:
If you are experiencing issues with SSL certificates, try obtaining a certificate through Let's Encrypt from the cPanel panel. You can do this by logging into the cPanel panel and making the necessary settings in the 'SSL/TLS' section.
Conclusion
In this article, we performed a step-by-step installation of cPanel on AlmaLinux and showed how to resolve common issues. By following the steps above, you can achieve a seamless cPanel experience.