WHM & cPanel version 86 Stable Release long-term support tier has been launched on 18 March 2020. WHM / cPanel web hosting is the best software to manage website hosting server, email, domain, and security management, which can be installed in a virtual private server (VPS ) as well as on a cloud hosting server and dedicated server. This control panel is using most users, clients, and companies and it is a premier web hosting automated software used worldwide.
Here in this article, we will discuss the latest cPanel & WHM Version 68 feature and prerequisites and installation on fresh CentOS 7 / RHEL 7 Version.
You can find below reference URL or article for Installation of AlmaLinux & Ubuntu Steps.
Features of cPanel & WHM web hosting Version
Below are some new features of the latest version.
Support for Virtuozzo 7
A large Amount of Outbound Email Detected
Notification New Separate file
Restoration from a backup
Upgrade EasyApache 4’s OpenSSL to OpenSSL 1.1.1
mod_http2Set SSL/TLS via the command line
phpMyAdmin performance setting etc.
You can read more about new features from cPanel documentation. Click Here
Installation Recommended settings
- Disable OS Firewall before installation
- Recommended Hardware
- Minimum & Recommended Processor should be 226MHZ
- Minimum RAM should be 1 GB
- Minimum Disk Space should be 20 GB
Installation of cPanel in CentOS 7 / RHEL 7 / CloudLinux 7
Before doing CPanel & WHM installation first ensure your OS Version, RAM, and disk space.
Requirement Check
Below command for checking OS, RAM, and disk space.
Version check Command
# hostnamectl
Disk Space Check
root@techtransit[~]# df -h Filesystem Size Used Avail Use% Mounted on /dev/xvda1 12G 7.4G 4.7G 62% / devtmpfs 476M 0 476M 0% /dev tmpfs 496M 0 496M 0% /dev/shm tmpfs 496M 20M 477M 4% /run tmpfs 496M 0 496M 0% /sys/fs/cgroup tmpfs 100M 0 100M 0% /run/user/1000
Memory Check
root@cpanel [~] # free -m total used free shared buff/cache available Mem: 990 192 224 11 574 586 Swap: 1023 19 1004
Deactivate firewall on CentOS 7 , CloudLinux 7 and RHEL 7
# iptables-save > ~/iptables.rules # systemctl stop firewalld.service Failed to stop firewalld.service: Unit firewalld.service not loaded. # systemctl disable firewalld.service Failed to execute operation: No such file or directory
Disable Security Enhanced Features ( SELinux )
If your server running SELinux Features of security, then disable these features. To disable, run the below command. Edit the configuration file /etc/selinux/config and set the parameter SELINUX to disabled, below is my configuration file, after setting the parameter you need to reboot the server.
# vim /etc/selinux/config # This file controls the state of SELinux on the system. # SELINUX= can take one of these three values: # enforcing - SELinux security policy is enforced. # permissive - SELinux prints warnings instead of enforcing. # disabled - No SELinux policy is loaded. SELINUX=disabled # SELINUXTYPE= can take one of three two values: # targeted - Targeted processes are protected, # minimum - Modification of targeted policy. Only selected processes are protected. # mls - Multi Level Security protection. SELINUXTYPE=targeted
Installation set up steps
cPanel installation needs a Perl package, so we need to install Perl before installation.
# yum install perl
After installation of Perl, set the hostname of the server, the hostname should be in FQDN i.e fully qualified domain name. Below are the steps to set the hostname in Centos / RHEL 7. Below command to check the hostname of the server :
# hostnamectl
To set hostname :
# hostnamectl set-hostname cpanel.techtransit.org
OUTPUT
The output will be like below :
root@cpanel [~]# hostnamectl Static hostname: cpanel.techtransit.org Icon name: computer-vm Chassis: vm Machine ID: d1f142097d497f24c021d7de9b81cab4 Boot ID: f2b4ef4fb0b14a668ddc89672a20dd7c Virtualization: xen Operating System: CentOS Linux 7 (Core) CPE OS Name: cpe:/o:centos:centos:7 Kernel: Linux 3.10.0-693.11.1.el7.x86_64 Architecture: x86-64
Install cPanel/WHM
Now we will download the Cpanel script on the home directory of the server, which will install Cpanel & WHM . Follow the below steps for installation.
# cd /home # curl -o latest -L https://securedownloads.cpanel.net/latest # sh latest
OUTPUT
Now the script will run for some hours and after installation, you will get some output like, time is taken in installation as well as server access URL and access details, you will use in login root as a user and user the password of the root user. You will get WHM access like the below URL.
ACCESS URL
https://your –server-public-ip:2087 OR https://server-hostname:2087

After accessing of URL in the browser and putting the username password details in the access URL and accepting the license agreement, you can configure server networking, IP address, and name-server as according to you, you should have good nice knowledge of the System Admin part. Hope you enjoy this post, for any concerns please comment here and give us feedback. Thanks
7 comments on “Install WHM / cPanel webhosting on CentOS 7 RHEL 7 and CloudLinux”
juliadiets.com
March 12, 2016 at 6:33 amcPanel and WHM as well as some other web application make use Perl. So install it or update it incase already installed.
Sachin Gupta
March 12, 2016 at 7:14 amYes , the steps is there ..
Devansh Jain
March 19, 2016 at 7:18 amCould not download GPG public key at https://securedownloads.cpanel.net/cPanelPublicKey.asc :
Sachin Gupta
March 19, 2016 at 7:20 amHello Devansh,
What command you are you using to download ? In your system , the wget command should be install on server or system .
JPEDRO
January 17, 2017 at 11:19 amIt really works!
cpanel installation will never works in any other type of installation. MUST BE MINIMAL!
thanks in advance!
prashant hothi
May 11, 2017 at 11:42 amHello Sachin,
i successfully install whm on my cloud ..thanks for that
but problem is that i can not login in whm panel something my-ip:2087
user is root but password i entered which i used while accessing root access please help me to reset whm password using commands
thanks in advance.
Sachin G
May 23, 2017 at 8:18 amHello Prashant,
You have not remember , what password you have reset. Please email me [email protected] , i will assist on this.
Thanks