This is a short tutorial on how to install Cpanel and WHM. Since Cpanel has moved or taken down their install commands page, I decided to dig them up and share them here for easy access to these simple steps.
Before we get into the installation process, we need to make sure we log into an SSH client such as PuTTY.
Note: You must have Perl installed on your server before you can run the installation script for cPanel & WHM. You can install Perl using either yum or up2date.
yum users should run the following command: yum install perl
up2date users should run the following command: up2date -i perl
To install cPanel & WHM, run these commands:
cd /home
- Opens the /home directory.wget -N http://httpupdate.cpanel.net/latest
- Fetches the latest installation files from cPanel’s servers.sh latest
- This will open and execute the installation files that were just fetched from the cPanel servers.
If licensing fails (due to a strict firewall or modified IP), run the command /usr/local/cpanel/cpkeyclt to activate your cPanel & WHM license.
To install cPanel DNSONLY, run these commands:
cd /home
— Opens the/home
directory.wget -N http://httpupdate.cpanel.net/latest-dnsonly
— Fetches the latest installation files from cPanel’s servers.sh latest-dnsonly
— This will open and execute the installation files that were just fetched from the cPanel servers.
To access the WHM interface:
- Enter
https://$IP:2087
into your preferred web browser.$IP
represents your server’s IP address. - Enter
root
into the name field. - Enter your root password into the password field.
- Click Log In.
There you have it! It’s very simple to set up WHM. If you need further information or help on this topic, further details can be found on the cPanel website on installing WHM here.