cPanel is an commercial enterprise grade web hosting control panel for enterprise Linux servers. It is the most awarded and recommended cPanel for latest enterprise Linux. It is designed for hosting needs and used by most of the hosting companies for dedicated hosting, semi-dedicated hosting, shared hosting as well as cloud VPS hosting providers.

How to Install cPanel & WHM

Step-1 (Install cPanel & WHM Package Dependencies)
[root@techbrown ~]# yum install perl*
Step-2 (Temporary disable the firewall during the installation of cPanle and WHM)
[root@techbrown ~]# systemctl stop firewalld
Step-3 (Set host name of server to FQDN – Fully Qualified Domain Name)
[root@techbrown ~]# hostnamectl set-hostname cpanel.techbrown.com
Sample Output
 Static hostname: cpanel.techbrown.com
 Icon name: computer-laptop
 Chassis: laptop
 Machine ID: b292a5b69a2343149ed86f7e6fe782c8
 Boot ID: b50bcafaed9a4ab0941b800ba4356198
 Operating System: CentOS Linux 7 (Core)
 CPE OS Name: cpe:/o:centos:centos:7
 Kernel: Linux 3.10.0-229.el7.x86_64
 Architecture: x86_64
Step-4 (Change the directory to home)
[root@techbrown /]# cd ~
Step-5 (Download the cPanel Scripts)
[root@techbrown ~]# wget https://securedownloads.cpanel.net/latest
Step-6 (Run the Downloaded cPanel Installation Scripts)
[root@techbrown ~]# bash latest

Note: The cPanel require several minutes to complete the installation . Please be patience during Installation periods. Depending your internet connection and system hardware.

Sample Output
2016-01-06 22:14:58 594 ( INFO): cPanel & WHM installation started at: Wed Jan 6 22:14:58 2016!
2016-01-06 22:14:58 595 ( INFO): This installation will require 20-50 minutes, depending on your hardware.
2016-01-06 22:14:58 596 ( INFO): Now is the time to go get another cup of coffee/jolt.
2016-01-06 22:14:58 597 ( INFO): The install will log to the /var/log/cpanel-install.log file.
2016-01-06 22:14:58 598 ( INFO):
2016-01-06 22:14:58 599 ( INFO): Beginning Installation v3...
2016-01-06 22:14:58 392 ( INFO): CentOS 7 (Linux) detected!
2016-01-06 22:14:58 408 ( INFO): Checking RAM now...
2016-01-06 22:14:58 467 ( INFO): Validating that the system hostname ('cpanel.techbrown.com') is a FQDN...
2016-01-06 22:14:58 1277 (DEBUG): - ssystem [BEGIN]: /usr/bin/rdate -s rdate.cpanel.net
2016-01-06 22:15:04 1277 (DEBUG): - ssystem [END]
2016-01-06 22:15:04 1279 ( INFO): The system set the clock to: Wed Jan 6 22:15:04 2016
2016-01-06 22:15:04 1289 ( INFO): The system changed the clock by 6 seconds.
2016-01-06 22:15:04 995 ( INFO): The installation process will now set up the necessary empty cpanel directories.
2016-01-06 22:15:04 1015 ( INFO): The installation process will now ensure that GPG is set up properly before it imports keys.
2016-01-06 22:15:04 1018 ( INFO): The installation process will now import GPG keys for yum.
2016-01-06 22:15:04 916 ( INFO): Congratulations! Your installation of cPanel & WHM 11.52 is now complete.

How to Configure cPanel & WHM

Step-1 (Configure the firewall for cPanel)

To start the firewall

[root@techbrown ~]# systemctl start firewalld

After Installing the cPanel you need to setup the firewall to configure your server for cPanel.

[root@techbrown ~]# cd /usr/local/cpanel/
[root@techbrown ~]# bash /scripts/configure_firewall_for_cpanel
Step-2 (Check your hostname and Server IP Address)
For Hostname
[root@techbrown ~]# hostnamectl
For Server IP Address
[root@techbrown ~]# ifconfig

Note: You need to note the Hostname and Server IP address for further steps of configuration of cPanel.

Step-3 (Open the cPanel in Web browser)

Open the web browser like Mozilla Firefox , Google Chrome, etc. Type the given address in navigation bar.

For WHM with SSL


For WHM without SSL


For cPanel with SSL


For cPanel without SSL


Step-4 (Login to cPanel and WHM and access the dashboard panel)

Enter the root login credentials like username and passwords and finally hit on Login button.
After successfully login you need to access the dashboard panel of cPanel and WHM.

That’s all for now.

How to Create Local YUM Repository on CentOS / RHEL

Previous article

How to Disable Lock Down Printing Access on CentOS / RHEL

Next article

You may also like


Leave a reply

Your email address will not be published. Required fields are marked *

More in Linux