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

[box]

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. WHM / 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 . [button link=”https://store.cpanel.net/” type=”icon” icon=”search” newwindow=”yes”] cPanel License[/button]

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

[/box]

Latest Features of cPanel  & WHM webhosting 11.50 

[box]

  • CentOS , CloudLinux , and RHEL 7 support
  • Use the XFS  or ext4 filesystems.
  • Less booting time
  • Greylisting feature : which protect server from unwanted emails and untrusted email servers .

[/box]

Installation Recommended settings 

[box]

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

[/box]

Installation of cPanel in CentOS 7 / RHEL 7 /  

[box]

  • Before doing cpanel & WHM installation first ensure your OS Version , RAM and diskspace.

[/box]

Requirement Check :

[box]

Below command for check OS , RAM and diskspace.

Version check Command :

[email protected] [~]# cat /etc/redhat-release

CentOS Linux release 7.1.1503 (Core)

 

Disk Space Check :

[email protected][~]# df -h

Filesystem      Size  Used Avail Use% Mounted on

/dev/xvda1      100G  6.8G   94G   7% /

devtmpfs        903M     0  903M   0% /dev

tmpfs           920M     0  920M   0% /dev/shm

tmpfs           920M   17M  904M   2% /run

tmpfs           920M     0  920M   0% /sys/fs/cgroup

Memory Check :

[email protected] [~]# free -m

[box]total        used        free      shared  buff/cache   available

Mem:           1839         651         163          16        1024        1020

Swap:             0           0           0

 

Deactivate firewall on CentOS 7 , CloudLinux 7 and RHEL 7 :

iptables-save > ~/iptables.rules    systemctl stop firewalld.service    systemctl disable firewalld.service

OUTPUT  :

[[email protected]~]# systemctl stop firewalld.service

Failed to issue method call: Unit firewalld.service not loaded.

[[email protected] ~]# systemctl disable firewalld.service

[[email protected] ~]# systemctl mask firewalld.service

ln -s ‘/dev/null’ ‘/etc/systemd/system/firewalld.service’

 

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=permissive    # SELINUXTYPE= can take one of these two values:    #     targeted - Targeted processes are protected,    #     minimum - Modification of targeted policy. Only selected processes are protected.    #     mls - Multi Level Security protection.    SELINUXTYPE=targeted

[/box]

Installation set up steps :

[box]

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

Boot ID: 3878d69a81024ebc83291fb2e337ee0a

Virtualization: xen

Operating System: CentOS Linux 7 (Core)

CPE OS Name: cpe:/o:centos:centos:7

Kernel: Linux 3.10.0-229.11.1.el7.x86_64

Architecture: x86_64 [/box]

Install cPanel/WHM

[box]

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 : 

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

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.

[/box]

Hope you enjoy this post , for any concern please comment here and give us feedback. Thanks

 

A Linux Geek with Freelance Contributor, Server/ Cloud Administrator having 6+ Years experience in Open Source and Cloud Technologies.

Review overview
4 COMMENTS

POST A COMMENT