How to install cPanel on CentOS 6 or CentOS 7

Install cPanel & WHM

 

cPanel is a web hosting control panel that provides a graphical interface and automation tools designed to simplify the process of hosting a web site to the website owner or the "end user".

 

We'll go through the process of installing it on a new server, it should be a clean installation of CentOS.

 

First, we'll make sure that the NetworkManager by running the following commands:

 

CentOS 6, CloudLinux 6, Red Hat Enterprise Linux 6 (RHEL):

 

service NetworkManager stop
chkconfig NetworkManager off

 

CentOS 7, CloudLinux 7, or RHEL 7:

 

systemctl stop NetworkManager
systemctl disable NetworkManager

 

 

Then to start the actual installation cPanel & WHM, run the following command:

 

yum install perl -y; cd /home && curl -o latest -L http://httpupdate.cpanel.net/latest && sh latest
 
 
This command install perl, changes your session to the home directory, downloads the latest version of cPanel & WHM, and runs the installation script.

Warning:

To install cPanel & WHM on a 5.x version of CentOS, Red Hat Enterprise Linux, or CloudLinux, use the --force option when you run the installer. We strongly recommend that server administrators use the newest version of their operating system.

Get started in WHM

To access the WHM interface, perform the following steps:

  1. Enter https://$IP:2087 in your preferred web browser. $IP represents your server's IP address.

  2. Enter root in the Username text box.
  3. Enter the root password in the Password text box.
  4. Click Log In.

Notes:

  • For more information on how to get started in WHM, see the Initial Setup Wizard documentation.
  • To set up cPanel user accounts, navigate to WHM's Create a New Account interface (Home >> Account Functions >> Create a New Account). With a cPanel user account, users can create email and FTP accounts and perform other website management tasks.
  • 57 Users Found This Useful
Was this answer helpful?

Related Articles

How to change maximum upload size in php.ini

  There are a few common errors that occur in Wordpress and other PHP-based programs that use...

How to change the primary IP address of a cPanel server

Steps in WHM: Log into WHM and go to Basic cPanel & WHM Setup Change the Primary IP here...

How to install WordPress with Docker on Ubuntu 16.04

Before we start, it is necessary to install Docker and Docker Compose. On Ubuntu 16.04, this can...

How to Upgrade Kernel to Latest Version in Ubuntu

It is important to keep your systems up-to-date, here we'll show you how to upgrade your kenerl...

How to configure SQL server in Linux

Problem You installed SQL Server on Linux and need to customize the default installation, for...