Get Special Offer Free Web Hosting With Free SSL!
Get Free Hosting Now!

How to install cPanel on VPS server, Setp by Step Guide

How to install cPanel on VPS server, Setp by Step Guide

To install cPanel on a VPS server, follow these step-by-step instructions. This process works for CentOS, RHEL, and most Linux distributions that support cPanel. Make sure the VPS is freshly set up and meets cPanel’s minimum requirements before starting.

Prerequisites

  • VPS with a supported OS (CentOS, RHEL, Ubuntu)

  • Root access to the server

  • Static public IP address

  • Minimum 2 GB RAM (recommended 2 GB)

  • At least 20 GB free disk space

Step 1: Update the Server

Log in via SSH as the root user and update your server packages:

For CentOS/RHEL
yum update -y 
For Ubuntu
apt update && apt upgrade -y

Step 2: Set a Fully Qualified Hostname

cPanel requires a properly configured hostname.

bash
hostnamectl set-hostname yourserver.domain.com

This ensures reliable DNS operation and licensing.

Step 3: Install Required Packages

Install Perl and other base packages (for CentOS/RHEL):

bash
yum groupinstall base perl -y

For Ubuntu, Perl is typically included, but run:

bash
apt install perl -y

Step 4: Download and Run the cPanel Installer

Navigate to the home directory, download the installer, and start installation:

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

This process may take 30–60 minutes depending on server specs.

Step 5: Reboot the VPS

Once installation is complete, reboot the server to ensure all changes take effect:

bash
reboot

Step 6: Access WHM (WebHost Manager)

After reboot, access WHM in your browser:

text
https://your_server_ip:2087
  • Log in with username: root, and your root password.

Step 7: Initial Configuration

  • Accept cPanel terms of use

  • Enter contact information

  • Setup nameservers for DNS

  • Enter your cPanel license key (if not done automatically)

  • Finish the configuration wizard

Notes

  • Always install on a fresh, clean server for best results.

  • cPanel does not support uninstallation; to remove it, reformat the server.

  • Make sure your firewall allows the necessary cPanel ports (2087, 2082, and others).

  • Use static IP addresses only—cPanel will not license dynamic or sticky IPs.

Follow these steps for a successful cPanel installation and initial setup on a VPS server.

+91 1169290721