How to install WHM/cPanel on RHEL/CentOS-6/7

How to install WHM/cPanel on RHEL/CentOS-6/7

by -
0 1489

Introduction of WHM cPanel

WHM/cPanel is most popular Linux-based website hosting control panel that provides graphical interface for hosting a website. It is a proprietary software that is based on perl language, it can install in operating system, CentOS,RHEL, and Cloud Linux.

The main different between WHM and cPanel is , WHM provides administration level access to manage the whole server where cPanel provides user level access to manage single hosting account.

Features of cPanel

cPanel is commercially designed and provides easy way to manage website hosting and there are various feature available in cPanel one of them are blow:

  • Can manage website using File Manager. You can easily navigate your website files and can create, remove upload and download without any third party software or system file explorer or FTP.
  • Provide ability to manage domain settings as per domain account, can create A record , MX record , addon domain, subdomain, Aliases , can set website redirection one domain to another, can edit DNS zone file and manage accordingly.
  • Provides graphical interface to manage MySQL database easily using phpMyADmin tool.
  • Can perform backup and restore task using cPanel.
  • Can host and manage email service using cPanel as per domain hosting.
  • Can secure website and email service using cPanel tool and also can deploy thirt party tool like CSF.

Minimum system requirement

  • Can install in Dedicated server or VPS(Virtual Private Server)
  • Operating system: RHEL, CentOS – 6/7 and CloudLinux
  • Minimum 1024 MB RAM
  • Minimum 226 MHz Processor
  • Minimum 20 GB

Installation of WHM cPanel

Before installation cpanel software make sure you have done following setup in system:

Configure hostname

# hostname

Now, set server hostname permanently  in file /etc/sysconfig/network

Disable selinux

Edit file /etc/sysconfig/selinux , after updating selinux file reboot server.


Update system

As above recommended, you will need to install WHM with latest operating system, after run the below yum update command for latest update system software.

Download script and start installation

# cd /home && curl -o latest -L

# sh latest

Beginning main installation.


As you seen above installation are started, installation process will complete in more than 1 hour as per your internet and system speed

Last script output

2016-07-03 20:40:59 938 ( INFO): 2. Type in the address bar
2016-07-03 20:40:59 938 ( INFO):
2016-07-03 20:40:59 938 ( INFO): 3. Enter the word root in the Username text box
2016-07-03 20:40:59 938 ( INFO):
2016-07-03 20:40:59 938 ( INFO): 4. Enter your root password in the Password text box
2016-07-03 20:40:59 938 ( INFO):
2016-07-03 20:40:59 938 ( INFO): 5. Click the Login button
2016-07-03 20:40:59 938 ( INFO):
2016-07-03 20:40:59 938 ( INFO): Visit for more information about first-time configuration of your server.
2016-07-03 20:40:59 938 ( INFO):
2016-07-03 20:40:59 938 ( INFO): Visit or for additional support
2016-07-03 20:40:59 938 ( INFO):
2016-07-03 20:40:59 938 ( INFO): Thank you for installing cPanel & WHM 11.56!

As soon as installation script will compete you will need to access WHM panel in web browser and will need to complete the installation wizard.

Access WHM using below URL:

https://server-ip-address:2087      (with SSL)

Username: root

Password: rootpassword

WHM Login screen

1 whm login screen

After login in WHM with above credential, need to complete installation setup wizard. Click on I agree icon to accept End-User License Agreement .

accept licence

You need to provide a valid email address in Server Contact Email Address and you may also provide email address in SMS Address , So it will alert/notify you whenever done any changes or if any problem arises.

netwrokign setup

Now, enter a Fully Qualified Domain Name (FQDN) of your server, enter valid DNS resolving ip address . you may change dns ip as per yours.

fqdn hostname

Click on Skip This step and Use Default Settings  and configure the next settings


Now, most important select the bind(dns) package to configure DNS on WHM cPanel and next  enter NameServer name according to your hostname, as per snapshot by default it will take NS with ns1,ns2 but you can change A record (NS1) according to yours and provide a valid ip address for NS and for server hostname.

whm bind

define whm ns

You can also configure some importan service like, FTP, email service Dovecote ,  cPHulkd service for brute force attack against your web and email service.

8 ftp dovecot

Enable Quota feature that will help you to manage disk space and track disk utilization.



Now save installation settings and finish the setup wizard. So finally here is WHM login home page.


Installation of WHM cPanel has been completed. You may share your valuable feedback about this tutorial , if in case you need any assistance regarding this tutorial comment in below. In our next tutorial we will be sharing some more interesting topic on WHM. Please stay connected with and subscribes your email id to get more tutorial update.

Download PDF

CEO, KV IT-Solutions Pvt. Ltd. | [email protected] | 9810028374|
Linux Professional and an Industrial Trainer | 20 + years Experience in IT Industry

” We are born free, No Gate and Windows can snatch our freedom “


0 1699

0 1354

0 1218


Leave a Reply