• Compute

    Configure a popular Linux OS or use popular developer Tools

  • Cloud hosting
    Cloud hosting

    Host a VPS in the Cloud in seconds

  • Collaborate, CMS, CRM`s
    Collaborate, CMS, CRM`s

    Collaborate with these popular CMS, CRM & collaboration tools

  • Database & E-Commerce
    Database & E-Commerce

    Create a database or an E-Commerce environment in seconds

How to Install cPanel/WHM on CentOS 7

WHM is the back end to cPanel, a robust control panel software for end-users that allows you to take a SkySilk VPS and resell or partition multiple websites (typical of web-hosting providers) on a single server/VPS, providing you with a feature-rich, easy to use user interface to configure each separate web hosting account. Here are the steps to install WHM and cPanel on your server. Please note WHM & cPanel is only compatible with CentOS and a few other OS/Platforms. Ubuntu is not one of their listed options as of this writing.

It's important to note that this should only be installed on a fresh server, as you may lose data and configurations that you may already have.

Your hostname has to have "two dots" (basically a subdomain on a fully qualified domain name) in it per the instructions if you try to install with a hostname different from that. To fix this you can use the following command to change your hostname. Substitute "subdomain.example" to your domain name and subdomain or anything to your liking.

As the root user type into your terminal the following:

hostnamectl set-hostname subdomain.example.com

Now let's begin the installation.

In a terminal type in the following command:

cd /home && curl -o latest -L http://httpupdate.cpanel.net/latest && sh latest

When the script is finished installing and everything went as it should, you'll get the following output in your terminal:

Congratulations! Your installation of cPanel & WHM 11.<span class="fr-marker" data-id="0" data-type="false" style="display: none; line-height: 0;"></span><span class="fr-marker" data-id="0" data-type="true" style="display: none; line-height: 0;"></span>82 is now complete. The next step is to configure your server. 
[2019-09-13 05:40:27 +0000] [3475] ( INFO): 
[2019-09-13 05:40:27 +0000] [3475] ( INFO): Before you configure your server, ensure that your firewall allows access on port 2087.
[2019-09-13 05:40:27 +0000] [3475] ( INFO): 
[2019-09-13 05:40:27 +0000] [3475] ( INFO): After ensuring that your firewall allows access on port 2087, you can configure your server.
[2019-09-13 05:40:27 +0000] [3475] ( INFO): 
[2019-09-13 05:40:27 +0000] [3475] ( INFO): 1. Open your preferred browser
[2019-09-13 05:40:27 +0000] [3475] ( INFO): 
[2019-09-13 05:40:27 +0000] [3475] ( INFO): 2. Navigate to the following url using the address bar and enter this one-time autologin url:
[2019-09-13 05:40:27 +0000] [3475] ( INFO): 
[2019-09-13 05:40:27 +0000] [3475] ( INFO): https://55.555.555.555:2087/cpsess6320795668/login/?session=root%3a5vBm0afiYbtJhazZ%3acreate_user_session%2c5c25b61e6ba195566ada7c923c64c600
[2019-09-13 05:40:27 +0000] [3475] ( INFO): 
[2019-09-13 05:40:27 +0000] [3475] ( INFO): After the login url expires you generate a new one using the 'whmlogin' command or manually login at:
[2019-09-13 05:40:27 +0000] [3475] ( INFO): 
[2019-09-13 05:40:27 +0000] [3475] ( INFO):
[2019-09-13 05:40:27 +0000] [3475] ( INFO): 
[2019-09-13 05:40:27 +0000] [3475] ( INFO): Visit https://go.cpanel.net/whminit for more information about first-time configuration of your server.
[2019-09-13 05:40:27 +0000] [3475] ( INFO): 
[2019-09-13 05:40:27 +0000] [3475] ( INFO): Visit http://support.cpanel.net or https://go.cpanel.net/allfaq for additional support
[2019-09-13 05:40:27 +0000] [3475] ( INFO): 
[2019-09-13 05:40:27 +0000] [3475] ( INFO): Thank you for installing cPanel & WHM 11.82!
[2019-09-13 05:40:27 +0000] [3475] ( WARN): !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
[2019-09-13 05:40:27 +0000] [3475] ( WARN): Your system kernel may have been updated.
[2019-09-13 05:40:27 +0000] [3475] ( WARN): Current kernel (4.15.18-20-pve) has been changed to: 
[2019-09-13 05:40:27 +0000] [3475] ( WARN): Before rebooting the system, please ensure that the installed kernel version is compatible with your deployment.

You'll see a line somewhere in there that says "2. Navigate to the following url using the address bar and enter this one-time autologin url:". Copy and paste that URL into your browser. If you browser is giving you a warning about not trusting the site, take the steps necessary to bypass it by some type of "take me to this site anyways".

If you ever lose that URL or you closed your console and didn't save it, you can regenerate that URL by typing:


That will generate another URL to get you back into the WHM back end.

After visiting the URL you will see something like this:

Click "Agree to All" to proceed. The next screen is where you begin setting up and configuring your WHM and cPanel options:

You have now successfully installed and have access to WHM and cPanel.

Did you find it helpful? Yes No

Send feedback
Sorry we couldn't be helpful. Help us improve this article with your feedback.