How to install cPanel/WHM on CentOS 7

Note
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 https://securedownloads.cpanel.net/latest && 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
  • 6 Users Found This Useful
Was this answer helpful?

Related Articles

How to fix defaultwebpage.cgi on a webserver

Running the following commands solves the above problem:   /scripts/updateuserdomains...

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...

Fix Email Issue on a server using the MSFE

To solve the problem of not sending/receiving email on a server using the MSFE / Mailscanner...

Domain names are not showing in WHM

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