How to install cPanel/WHM on CentOS 7/8 x64bit

The steps in this guide require root privileges. Be sure to run the steps below as root or with the sudo prefix.

Before proceeding, make sure you’ve purchased a cPanel license. Next, log into your server as the root a user via SSH to its IP address.

  1. Disable NetworkManager before running the install script:

    systemctl stop NetworkManager.service
    systemctl disable NetworkManager.service
    systemctl enable network.service
    systemctl start network.service
  2. Set your own hostname and start the installation progress. To set your own hostname run the following command (do not forget to use/replace your own hostname instead of server1.domainname.tld):

    hostnamectl set-hostname server1.domainname.tld
  3. Issue the following command to download and install cPanel. Note that the installation process may take a long time to complete:

    cd /home && curl -o latest -L && sh latest
  4. Now run the commands you've received in your email after your payment to activate the license.

  • cpanel/whm, centos 7, centos 6, centos 8
  • 9 Users Found This Useful
Was this answer helpful?

Related Articles

How to fix IP Missing issue on cPanel/WHM

We are here to help you with solving the problem of Missing IP Server in list accounts. The...

Install Let's Encrypt SSL in cPanel/WHM

Let's Encrypt, a valid, open-source license that offers free SSL for your domains. The Let's...

Domain names are not showing in WHM

We were unable to see any domains listed under WHM -> List Accounts. However, we can see the...

How to Start/Stop or Restart Apache server

Apache is the HTTP server that is freely available over the internet. It is a kind of software or...

How to Check the Version of cPanel/WHM

Pre-Flight Check These instructions are intended specifically for checking your version of...