How to Install cPanel & WHM on Linux

Post Reply
User avatar
Admin
Site Admin
Posts: 17
Joined: Sun May 10, 2026 10:15 pm

How to Install cPanel & WHM on Linux

Post by Admin »

Introduction

If you want to manage your websites with Linux hosting with cPanel or
run Linux cPanel web hosting, you will need to install cPanel & WHM
on your server. This guide provides a step-by-step walkthrough for
beginners, covering everything from requirements to installation
commands and post-installation configuration.

Whether you are setting up Linux web hosting with cPanel, installing
cPanel on CentOS, or trying to install cPanel on Ubuntu or Debian, the
process is quite similar. By the end of this tutorial, you’ll know how
to use the cPanel install command and start using WHM to manage your
hosting environment.

Pre-Install Requirements for cPanel & WHM

Before running the cPanel install command, make sure your server meets the following requirements:
  • Valid License: You need either a free 15-day trial or a paid license from cPanel Store.
  • Operating System:
    • CentOS, CloudLinux, or RHEL 7 (with XFS® or ext4 file system).
    • Other Linux distributions (Ubuntu/Debian) may work, but CentOS is officially recommended.
  • System Resources:
    • Minimum: 1 GB RAM, 20 GB Disk.
    • Recommended: 2 GB RAM, 40 GB Disk.
  • Network Requirements:
    • Static IP (DHCP or private IP will not work).
    • Independent domain name as hostname (do not use a hosted domain as hostname).
  • Disable/Deactivate Services:
    • Firewall
    • Network Manager
    • SELinux
Steps to Install Cpanel and WHM

Step 1: Update and Download Installer

Log in to your server as the root user. Run the following cPanel
install command to update the system, download cPanel & WHM, and
start the installation:

Code: Select all

yum -y update curl
cd /home && curl -o latest -L https://securedownloads.cpanel.net/latest && sh latest
What this does:
  • Update the

    Code: Select all

    curl
    package.
  • Moves the session to the

    Code: Select all

    /home
    directory.
  • Downloads the latest cPanel installer.
  • Runs the installation script.
    Note:
    The installation can take a while, depending on your server hardware and internet speed.
Step 2: Access WHM and Configure cPanel

Once installation is complete, you can access WHM (Web Host Manager) in your browser.
  1. Open your browser and go to:

Code: Select all

https://your-server-ip:2087
  1. Log in using:
    • Username:

      Code: Select all

      root
    • Password: root password of your server
  2. Enter a valid email address for system notifications.
  3. Follow the setup wizard to configure cPanel based on your hosting needs.
At this point, your cPanel Ubuntu/Debian/CentOS VPS setup is complete, and you can begin hosting websites.

Step 3: Activate License

If you used the free trial, you may later need to purchase a full license: [Buy cPanel License]

This license allows you to continue using Linux cPanel web hosting without interruptions.

Conclusion

By following this guide, you learned how to:
  • Meet the system requirements for installing cPanel on Linux.
  • Run the cPanel install command to install WHM & cPanel.
  • Access and configure WHM to set up your Linux hosting with cPanel.
Whether you plan to install cPanel on CentOS 7, configure cPanel on
Ubuntu/Debian VPS, or manage your own Linux cPanel web hosting, this
setup provides a user-friendly and powerful hosting control panel.
Post Reply