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

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

WHM web hosting with cpanel web hosting cpanel vps hosting rhel 7 cpanel web hosting cpanel vps cPanel cloudlinux 7 centos 7
Spread the love

Recently on September,2015   and 11.50 has been released, After such a long time  in this version of cPanel & having  support for   /   Version  on fresh installations. / cPanel webhosting is the best software to manage website hosting server , email , domain and security management, which can be install  in virtual private server (VPS )  as well as on cloud hosting server  and dedicated server . This control panel is  using  most of users, client and companies and it is premier web hosting automated software used by world wide.

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

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

Latest Features of cPanel  & WHM webhosting Version 68


 

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

EasyApache 4 now supports mod_http2

Set 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 /  

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

# cat /etc/redhat-release
OR
# hostnamectl </code >

 

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

[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 ( SELinux )

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 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 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 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 cpanel script on home directory of server ,  which will install cpanel & WHM  .Follow below steps for installation.
# cd /home
# curl -o latest -L href="https://securedownloads.cpanel.net/latest">https://securedownloads.cpanel.net/latest
# sh latest

OUTPUT  

2017-12-08 01:45:20 264 ( INFO): cPanel install finished in 20 minutes and 9 seconds!
2017-12-08 01:45:20 1146 ( INFO): Congratulations! Your installation of cPanel & WHM 11.68 is now complete. The next step is to configure your server.
2017-12-08 01:45:20 1146 ( INFO):
2017-12-08 01:45:20 1146 ( INFO): Before you configure your server, ensure that your firewall allows access on port 2087.
2017-12-08 01:45:20 1146 ( INFO): On RHEL, CentOS, and CloudLinux systems, execute /scripts/configure_firewall_for_cpanel to accomplish this.
2017-12-08 01:45:20 1146 ( INFO):
2017-12-08 01:45:20 1146 ( INFO): After ensuring that your firewall allows access on port 2087, you can configure your server.
2017-12-08 01:45:20 1146 ( INFO):
2017-12-08 01:45:20 1146 ( INFO): 1. Open your preferred browser
2017-12-08 01:45:20 1146 ( INFO):
2017-12-08 01:45:20 1146 ( INFO): 2. Type https://34.198.104.84:2087 in the address bar
2017-12-08 01:45:20 1146 ( INFO):
2017-12-08 01:45:20 1146 ( INFO): 3. Enter the word root in the Username text box
2017-12-08 01:45:20 1146 ( INFO):
2017-12-08 01:45:20 1146 ( INFO): 4. Enter your root password in the Password text box
2017-12-08 01:45:20 1146 ( INFO):
2017-12-08 01:45:20 1146 ( INFO): 5. Click the Login button
2017-12-08 01:45:20 1146 ( INFO):
2017-12-08 01:45:20 1146 ( INFO): Visit https://go.cpanel.net/whminit for more information about first-time configuration of your server.
2017-12-08 01:45:20 1146 ( INFO):
2017-12-08 01:45:20 1146 ( INFO): Visit http://support.cpanel.net or https://go.cpanel.net/whmfaq for additional support
2017-12-08 01:45:20 1146 ( INFO):
2017-12-08 01:45:20 1146 ( INFO): Thank you for installing cPanel & WHM 11.68!

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

WHM web hosting with cpanel web hosting cpanel vps hosting rhel 7 cpanel web hosting cpanel vps cPanel cloudlinux 7 centos 7

After access of url in browser and put the username password details in access url and accept license agreement, you can configure server networking, 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

 


Spread the love

Sachin is Red Hat Linux Certified and Freelance Contributor and Love to work and write on Open Source and Cloud Technologies .

})(jQuery)