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)
[[email protected] ~]# yum install perl*
Step-2 (Temporary disable the firewall during the installation of cPanle and WHM)
[[email protected] ~]# systemctl stop firewalld
Step-3 (Set host name of server to FQDN – Fully Qualified Domain Name)
[[email protected] ~]# hostnamectl set-hostname cpanel.techbrown.com
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)
[[email protected] /]# cd ~
Step-5 (Download the cPanel Scripts)
[[email protected] ~]# wget https://securedownloads.cpanel.net/latest
Step-6 (Run the Downloaded cPanel Installation Scripts)
[[email protected] ~]# 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.
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
[[email protected] ~]# systemctl start firewalld
After Installing the cPanel you need to setup the firewall to configure your server for cPanel.
[[email protected] ~]# cd /usr/local/cpanel/
[[email protected] ~]# bash /scripts/configure_firewall_for_cpanel
Step-2 (Check your hostname and Server IP Address)
[[email protected] ~]# hostnamectl
For Server IP Address
[[email protected] ~]# 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.
For more information about cPanel you need to go to the official website of cPanel.
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.