Step-by-step guide to Install Cpanel/WHM on CloudLinux
Prerequisites to Install cPanel/WHM on CloudLinux
- Log in to the server as the
root user.
- 20 GB RAM.
- A Linux VPS with CloudLinux 8/9 OS.
- Perl & Curl Installed.
- At least one IPv4 address.
Installation
Step 1. Update the server with the following command.
Step 2. Deactivate firewalls on CloudLinux 7, 8, and 9, run the following commands:
| iptables-save > ~/firewall.rules systemctl stop firewalld.service systemctl disable firewalld.service
|
Step 3. Before starting cPanel and WHM installation, you must disable SELinux in order for your system to be compatible with the installation of cPanel. To do this, run:
Update the following entry in /etc/sysconfig/selinux to permanently disable SELinux.
Step 4. Setup Hostname
| hostname myeserver.example.com
|
Edit the hostname item in /etc/sysconfig/network as shown below to permanently set the hostname.
| HOSTNAME=myserver.example.com
|
Step 5. Install cPanel/WHM
| # cd /home # curl -o latest -L http://httpupdate.cpanel.net/latest # sh latest
|
Step 6. Activate cPanel/WHM License on CloudLinux
Step 7. Log in to cPanel/WHM Via a Web Browser