How to Install cPanel Dedicated License

Updated April 4, 2026

Install your cPanel Dedicated license for bare-metal or high-resource servers.

Prerequisites

  • Root SSH access to your dedicated server
  • Active cPanel Dedicated license purchase from your dashboard
  • 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
3

Step 3: Verify Installation

Terminal
/usr/local/cpanel/cpkeyclt

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

VPS vs Dedicated — Which Do I Need?

TypeUse When
VPSYour server is a virtual machine (VPS, cloud instance)
DedicatedYour server is a physical bare-metal machine

If you are unsure, check with your hosting provider whether your server is virtual or physical.

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.

GPG keys error during cPanel install

Import the AlmaLinux GPG key:

Terminal
rpm --import https://repo.almalinux.org/almalinux/RPM-GPG-KEY-AlmaLinux

Still need help?

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

Open Support Ticket

Was this article helpful?

How to Install cPanel Dedicated License | Knowledge Base | Licence.pk | Licence.pk