How to Install cPanel & WHM on Linux
Posted: Wed May 13, 2026 8:02 pm
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:
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:
What this does:
Once installation is complete, you can access WHM (Web Host Manager) in your browser.
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:
Ubuntu/Debian VPS, or manage your own Linux cPanel web hosting, this
setup provides a user-friendly and powerful hosting control panel.
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
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- Update the package.
Code: Select all
curl - Moves the session to the directory.
Code: Select all
/home - Downloads the latest cPanel installer.
- Runs the installation script.Note:
The installation can take a while, depending on your server hardware and internet speed.
Once installation is complete, you can access WHM (Web Host Manager) in your browser.
- Open your browser and go to:
Code: Select all
https://your-server-ip:2087- Log in using:
- Username:
Code: Select all
root - Password: root password of your server
- Username:
- Enter a valid email address for system notifications.
- Follow the setup wizard to configure cPanel based on your hosting needs.
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.
Ubuntu/Debian VPS, or manage your own Linux cPanel web hosting, this
setup provides a user-friendly and powerful hosting control panel.