How to install cPanel WHM on CentOS 6, 7?

This tutorial explains how to install cPanel WHM on your CentOS 6, 7 systems. Please review the prerequisites before installing cPanel WHM on your system. This will save you a lot of trouble.

 

Prerequisites:
  • System Requirements here.
  • Fresh installation of CentOS 6, 7.
  • A FQDN as your hostname – tutorial here.

 

Summary:
  1. Set a FQDN as hostname.
  2. Install cPanel WHM.
  3. Connect to your cPanel WHM.

 

1. Set a FQDN as hostname.

1.1. Firstly, you need to make sure you are using a fresh CentOS 6 or 7 installation to avoid any installation problems or package conflicts.

1.2. Then, set a Fully Qualified Domain Name (FQDN) as your hostname, i.e. server.my-domain.com.

Command: hostname server.my-domain.com

2. Install cPanel WHM.

Then, run the automated cPanel WHM installation script. Do not interrupt the installation while it is in progress. Otherwise you will have to start it all over again.

Command: cd /home && curl -o latest -L https://securedownloads.cpanel.net/latest && sh latest

Note: Depending on the available resources for your system, the installation can take up to 90 minutes.

3. Connect to your cPanel WHM.

Finally, you will be able to log into your cPanel WHM after the installation is completed. A system reboot is not required. cPanel WHM installation comes with a default SSL certificate issued by cPanel so you can use HTTPS protocol when connecting to your cPanel services.

 

WHM login URL: https://<IP_address_or_domain>:2087 or https://<IP_address_or_domain>/whm

Example: https://server.my-domain.com:2087 or https://server.my-domain.com/whm

 

cPanel login URL: https://<IP_address_or_domain>:2083 or https://<IP_address_or_domain>/cpanel

Example: https://server.my-domain.com:2083 or https://server.my-domain.com/cpanel

 

Webmail login URL: https://<IP_address_or_domain>:2096 or https://<IP_address_or_domain>/webmail

Example: https://server.my-domain.com:2096 or https://server.my-domain.com/webmail

 

Conclusion:

You have sucessfully installed cPanel WHM on your fresh CentOS 6, 7 system.

 

Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.