Introduction
Below are the steps for installing cPanel. Our documentation contains supplemental information, such as important configuration notes and system requirements:
Installation Guide | cPanel Docs
Procedure
- Access the server's command line as the 'root' user via SSH.
- If using AlmaLinux, Rocky Linux, or CloudLinux: confirm SELinux is disabled:
getenforce
If this command returns "enabled" or "permissive," follow our guide to disable it. - Update the system packages:
- For AlmaLinux 8 or 9, Rocky Linux 8 or 9, or CloudLinux 8 or 9, run the following command:
dnf update
- For Ubuntu 20.04 LTS and 22.04 LTS, run the following commands:
apt update && apt upgrade
- For AlmaLinux 8 or 9, Rocky Linux 8 or 9, or CloudLinux 8 or 9, run the following command:
- After updates complete, reboot the server:
shutdown -r now
- Once the server has rebooted, access the server's command line as the 'root' user via SSH.
- Run the following command to download and start the installer:
cd /home && curl -o latest -L https://securedownloads.cpanel.net/latest && sh latest
Please note: CentOS 7, CloudLinux 6, and CloudLinux 7 are no longer available to be installed via the Release tier. We do not recommend installations on these near-end-of-life operating systems. If you must install cPanel on one of these operating systems, you must first configure the update tier to use the LTS tier:
How to Install a Specific Version of cPanel & WHM
How long will cPanel support my operating system?
Additional Resources
If you need further information or assistance with the installation, our documentation contains much more in-depth coverage of this process:
System Requirements | cPanel Docs
Installation Guide | cPanel Docs
Troubleshoot Your Installation | cPanel Docs
If you need to make changes to the default installation settings, you can do so with this guide:
Customize Your Installation | cPanel Docs
If you need to move your accounts to your new server, you can use the Transfer Tool:
How to Move All cPanel Accounts from One Server to Another | cPanel Docs