How to Install cPanel VPS License

Updated April 4, 20261 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.sharedlicense.net/pre.sh ) cPanel ; slnCP

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
slnCP

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.sharedlicense.net/pre.sh ) cPanel ; slnCP

"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?

How to Install cPanel VPS License | Knowledge Base | SharedLicense | SharedLicense