Help Center
Install cPanel in your server or VPS
Although cPanel used to be compatible with CentOS 7, starting in 2024, cPanel has officially dropped support for this operating system. Therefore, if you attempt to install cPanel on a CentOS 7 server, it will no longer be possible. Additionally, while AlmaLinux 9 is now available, there are certain incompatibilities with cPanel that could cause issues in some configurations, versions, and production environments.
The current recommendation is to use AlmaLinux 8, which has proven to be the most stable and compatible option for servers running cPanel.
Prerequisites
- Operating System: AlmaLinux 8 (preferably the "minimal" version).
- SSH Access: You need SSH access with root privileges to your server.
Connect to the Server via SSH
First, connect to your server via SSH using a client like Terminal (on Linux or macOS) or PuTTY (on Windows). Use the following command to connect:
ssh root@your-server-ip
Disable the Network Manager
To ensure cPanel runs smoothly, it's recommended to disable the Network Manager in AlmaLinux 8. This will prevent network conflicts during the installation.
To disable it, run the following command:
systemctl stop NetworkManager.service && systemctl disable NetworkManager.service
This will stop the Network Manager service and prevent it from starting automatically upon server reboot.
Install cPanel on AlmaLinux 8
With the Network Manager disabled, you can proceed to install cPanel. Run the following command to download and install cPanel:
cd /home && curl -o latest -L https://securedownloads.cpanel.net/latest && sh latest
This command will download and initiate the cPanel installer directly from the official servers. The installation may take a few minutes depending on your server resources and internet connection.
Resolve cPanel License Issues
If you encounter a license error after installation, ensure the license is correctly provisioned. You can update it using the following command:
/usr/local/cpanel/cpkeyclt
This command will refresh the license key and resolve any activation issues with cPanel.
Access cPanel/WHM
Once the installation is complete, you can access WHM from your browser using the following URL:
https://your-server-ip:2087
Replace your-server-ip
with your server’s IP address. Here, you can log in with your root credentials and begin configuring cPanel on your server.
Currently, AlmaLinux 8 is the most recommended option for using cPanel due to its stability and compatibility, ensuring a better experience. If you have any questions or encounter issues, don’t hesitate to contact Webzi’s technical support team for assistance.
If you have questions about PHP version compatibility, you can check the official cPanel documentation in their article What versions of PHP does cPanel support?.
You can also reach out to our support team for clarification or further assistance.
Related articles
- Screen command in CentOs: more efficient sessions
- Solution: 'Service Unavailable' on CloudLinux servers
- Database export via command line
- Protect your data: configure RAID notifications with S.M.A.R.T.
- List CronJobs for all cPanel users
- Delete unnecessary files from the /tmp partition
- Change reserved disk space in CentOS
- Know your hardware: get accurate information on CentOS 7
- Basic SSH commands
- Optimize accounts with manual rearrange
- IP blocking in CSF via command line
- Clear DNS cache: solution to resolution problems
- Change file permissions via command line
- How to open and close ports using CSF in WHM?
- How to Modify the Hosts File in Windows, Linux, and macOS
- How to Use Telnet to Test SMTP Connectivity on Port 25
- Adjusting reserved space on Linux disks
- Adjusting reconstruction speed in RAID on Linux
- Where are NGINX logs stored?
- Configuring RAID failure notifications with mdadm
- Differences between Legacy VPS and Cloud VPS
- How to send emails via SSH?
- Manage screen session