Install WHM / cPanel webhosting on CentOS 7 RHEL 7 and CloudLinux

 & 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  is using most users, clients, and companies and it is a premier web hosting automated software used worldwide. 

cPanel License you can get from here.  ==> CLICK HERE

Here in this article, we will discuss the latest cPanel & WHM Version 68 feature and prerequisites and installation on fresh CentOS 7  /   Version.

Features of cPanel  & WHM web hosting Version


Below are some new features of latest version.

Support for Virtuozzo 7

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

performance setting etc.

You can read more about new features from cPanel documentation .  Click Here

Installation Recommended settings

  1. Disable OS Firewall before installation
  2. Recommended Hardware
  3. Minimum & Recommended Processor should be 226MHZ
  4. Minimum RAM should be 1 GB
  5. Minimum 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 check OS , RAM and diskspace.

Version check Command

# hostnamectl

Disk Space Check

[email protected][~]# df -h
Filesystem Size Used Avail Use% Mounted on
/dev/xvda1 12G 7.4G 4.7G 62% /
devtmpfs 476M 0 476M 0% /dev
 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

 [email protected] [~] # 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 ( )

If your server running SELinux Features of security, then disable this 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 set the parameter you need to 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 need perl package , so we need to install perl before instaalation .

 # yum install perl

After installation of perl, set the hostname of server , the hostname should be in FQDN i.e fully qualified domain name. Below is steps to set hostname in Centos / RHEL 7. Below command to check  hostname of server :

# hostnamectl  

To set hostname :

# hostnamectl set-hostname cpanel.techtransit.org

OUTPUT

Output will be like below :

[email protected] [~]# hostnamectl
Static hostname: cpanel.techtransit.org
Icon name: computer-vm
Chassis: vm
Machine ID: d1f142097d497f24c021d7de9b81cab4
Boot ID: f2b4ef4fb0b14a668ddc89672a20dd7c
Virtualization: xen
Operating System: CentOS  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 cpanel script on home directory of server ,  which will install cpanel & WHM  .Follow below steps for installation.

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

OUTPUT  

Now script will run some hours and after installation you will get some output  like , time taken in installation as well as server access url and access details, you will use in login root as a user and use password of root user. You will get WHM access like below url.

ACCESS URL

https://your –server-public-ip:2087
OR
https://server-hostname:2087 

After access of url in browser and put the username password details in access url and accept license agreement, you can configure server , ip address and nameserver as according to you , you should have good nice knowledge of System Admin part. Hope you enjoy this post , for any concern please comment here and give us feedback. Thanks [/vc_column_text][/vc_column][/vc_row]

About Sachin Gupta

I am a professional freelance contributor and founder of tech transit. Love to write and lover of education, culture, and community. I have been using it, setting, supporting, and maintaining it since 2009.Linux rocks!

Have any Question or Comment?

7 comments on “Install WHM / cPanel webhosting on CentOS 7 RHEL 7 and CloudLinux

cPanel and WHM as well as some other web application make use Perl. So install it or update it incase already installed.

Reply

Yes , the steps is there ..

Reply

Hello Devansh,

What command you are you using to download ? In your system , the wget command should be install on server or system .

Reply

It really works!

cpanel installation will never works in any other type of installation. MUST BE MINIMAL!

thanks in advance!

Reply

Hello 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.

Reply

Hello Prashant,

You have not remember , what password you have reset. Please email me [email protected] , i will assist on this.

Thanks

Reply

Leave a Reply

Your email address will not be published.