Connect with us

Hi, what are you looking for?

Linux

How to Install cPanel and WHM on CentOS 7

How to Install and Configure the cPanel & WHM on CentOS 7 / RHEL 7 / CloudLinux 7 / Oracle Linux 7 / Scientific Linux 7 and all enterprise Linux (EL7) based on RHEL 7. 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 on CentOS 7 / RHEL 7

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 on CentOS 7 / RHEL 7

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.

Advertisement. Scroll to continue reading.
For WHM with SSL

https://SERVER-IP-ADDRESS:2087 OR https://SYSTEM-HOSTNAME-(FQDN):2087

For WHM without SSL

http://SERVER-IP-ADDRESS:2086 OR http://SYSTEM-HOSTNAME-(FQDN):2086

For cPanel with SSL

https://SERVER-IP-ADDRESS:2083 OR https://SYSTEM-HOSTNAME-(FQDN):2083

For cPanel without SSL

http://SERVER-IP-ADDRESS:2082 OR http://SYSTEM-HOSTNAME-(FQDN):2082

Advertisement. Scroll to continue reading.
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.
cpanel-whm-login
After successfully login you need to access the dashboard panel of cPanel and WHM.
cpanel-whm-dashboard

Final Results

That’s all finally you have installed and configure the cPanel on your respective enterprise Linux for more information and difficulties regarding to the installation and configuration of cPanel you may use the comment section below.

Comments
Advertisement
Advertisement
Advertisement

You May Also Like

Windows

How to auto upgrade JioFi firmware for JioFi 2 / JioFi 3 / JioFi 4 / JioFi 5 / JioFi 6 and other JioFi...

Windows

Internet is the most important public network for connecting to the WEB. For internet connection requirement the ISP is required as well as it...

Windows

How to download and install the Mobile Intel 4 Series Express Chipset Graphics Drivers for Windows 10.  Windows 10 is the one of the...

Windows

How to Install and Configure PCSX2 on Windows 10. The Windows 10 is the most recommended operating system for the Games. In stream platform...