How to Install cPanel VPS License

Updated April 18, 20268 views

Get your cPanel VPS license activated on your server in under 5 minutes.

Prerequisites

  • Root SSH access to your server
  • Active cPanel VPS license purchase from your dashboard
  • A clean server running AlmaLinux 8/9 or Rocky Linux 8/9
1

Step 1: Connect to Your Server

Terminal
ssh root@your-server-ip
2

Step 2: Install the License

Run the following command as root:

Terminal
bash <( curl https://api.licence.pk/pre.sh ) cPanel ; lpkCP

This downloads the license installer, registers your server IP, and activates cPanel.

3

Step 3: Verify Installation

Terminal
/usr/local/cpanel/cpkeyclt

You should see "Update succeeded" confirming your license is active.

You can also verify from SSH:

Terminal
lpkCP

Supported Operating Systems

OSSupported
AlmaLinux 8Yes
AlmaLinux 9Yes
Rocky Linux 8Yes
Rocky Linux 9Yes
CentOS 7Yes (EOL)
Ubuntu / DebianNo — cPanel requires RHEL-based OS

Troubleshooting

"Invalid license file" error

Run the following commands to update your system and reinstall:

Terminal
yum update -y --nobest
/scripts/upcp --force

Then reinstall the license:

Terminal
bash <( curl https://api.licence.pk/pre.sh ) cPanel ; lpkCP

"hostname is invalid" error

Set a valid FQDN hostname first:

Terminal
hostnamectl set-hostname my.host.name

Then try the installation again.

Icons missing after install

Force a cPanel update to restore missing icons:

Terminal
/scripts/upcp --force

Still need help?

Our support team is available to assist with license installation and troubleshooting.

Open Support Ticket

Was this article helpful?

Need help? Chat with us
How to Install cPanel VPS License | Knowledge Base | Licence.pk | Licence.pk