How to Install Cpanel on Ubuntu 22.04 VPS Server

How to Install Cpanel on Ubuntu 22.04 VPS Server

  • 16 Mar, 2025
  • Technology

How to Install Cpanel/WHM on Ubuntu 22.04 VPS Server



Prerequisite: Your domain is pointing to your Ubuntu 22.04 VPS server (e.g. A record point to your Ubuntu VPS IP)



1. Login into your Ubuntu server using Putty

Change user to root user by using the below command

command - sudo -s


2. Update & Upgrade the VPS server

command - sudo apt update && sudo apt upgrade -y



3. Set Hostname

hostnamectl set-hostname your-domain.com (Your domain name)


4. Check if the hostname is set properly

command - hostnamectl


4. Download cPanel/WHM installation script

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