New offer: Germany Server + 1 Gbps Port and Unlimited Traffic for 25.99€

How to Install cPanel on CentOS 7

Overview:

cPanel is an online Linux-based web hosting control panel that provides a graphical interface and automation tools designed to simplify the process of hosting a web site or email.

 

Prerequisite:

  1. Launch a CentOS 7 instance (Only install cPanel & WHM on a freshly-installed operating system).
  2. Access the instance via SSH.
  3. Run all the following commands from the shell/terminal (All commands need to be run as the root user).
  4. You need to purchase your own cPanel license to use the control panel.

 Viasky CO servers include Free cPanel License

Instructions:

Step 1: Set a valid hostname (FQDN) for your system. Note: Replace “your-hostname.example.com” with a FQDN.

hostname <your-hostname.example.com>

hostnamectl set-hostname <your-hostname.example.com>

 

Step 2: Disable NetworkManager (if needed)

systemctl stop NetworkManager

systemctl disable NetworkManager

 

Step 3: Download and run the installation script. Tips: You may use the screen utility in case your session disconnects during installation.

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

 

Step 4: Wait for the installation to complete.

 

Step 5: While waiting for the installation, you might want to allow all the required ports on the security group for your instance (eg: WHM SSL, FTP, HTTP, HTTPS). Please follow the guide here.

Note: To know which ports are used by cPanel & WHM, please refer to this official documentation: https://documentation.cpanel.net/display/CKB/How+to+Configure+Your+Firewall+for+cPanel+Services

 

Step 6: Set a password for root.

passwd

 

Step 7: Browse to https://<your-server-ip>:2087 to access the WHM, and login as root.

 

Result:

 

  • 62 Users Found This Useful
  • cpanel
Was this answer helpful?

Related Articles

Change SSH Port in Linux

SSH or Secure Shell daemon is a network protocol that is used to perform remotely secured log ins...

Reset Your Forgotten Root Password On CentOS 7 Servers

Sometimes you forget stuff. I do. I forget important passwords for important websites sometimes....

Install Htop 2.0 – Linux Process Monitoring

This article is the continuation of our Linux system monitoring series, today we’re talking about...

Upgrade Ubuntu 16.04 to 18.04 LTS

If you are still using Ubuntu version 16.04, you may want to consider updating to the latest Long...

Disk Speed Test (Read/Write): HDD, SSD Performance in Linux

From this article you’ll learn how to measure an input/output performance of a file system on...