How to install your cPanel licence
cPanel & WHM is the hosting control panel your websites, email and DNS run on. This guide gives you the exact command for your licence, shows how to check it worked, and fixes the usual errors.
Before you start
- Root access over SSH. Log in as
root, or runsudo -ifirst. The command does not work as a normal user. curlis installed.should print a version. If it does not:curl --version(AlmaLinux, Rocky, CloudLinux) oryum install -y curlapt-get install -y curl(Ubuntu, Debian).- The licence IP is this server. The IP on your licence page must be this server's main public IP.
- cPanel is installed on a supported system (below), and the server has a valid hostname (for example
server.example.com).
Supported systems
Standard licence: AlmaLinux 8, AlmaLinux 9, Rocky Linux 8, Rocky Linux 9, CloudLinux 8, CloudLinux 9. This product runs on RHEL-type systems (AlmaLinux, Rocky Linux, CloudLinux) only — Ubuntu and Debian cannot run it. Version 10 systems cannot run the cPanel licence yet (their kernel has no ipset). Other versions may work; we can test it with you.
V2 licence: AlmaLinux 8, AlmaLinux 9, Rocky Linux 8, Rocky Linux 9, CloudLinux 8, CloudLinux 9. This product runs on RHEL-type systems (AlmaLinux, Rocky Linux, CloudLinux) only — Ubuntu and Debian cannot run it. Version 10 systems cannot run the cPanel licence yet (their kernel has no ipset). Other versions may work; we can test it with you.
Which command is mine?
Your licence page shows the exact command for that licence: Licenses → click the licence → Installation & Management. A licence marked V2 uses the V2 command below; every other licence uses the standard command. They are different systems — run only the one for your licence.
This guide is for a cPanel VPS licence. For a dedicated server, see the cPanel Dedicated guide — the steps are the same.
Standard licence
This one line downloads the License.ws licence tool, registers this server and activates cPanel. Copy the whole line, paste it into the SSH session and press Enter:
bash <( curl https://api.license.ws/pre.sh ) cPanel ; lwsCPTo refresh the licence later — after a renewal, an IP change or a cPanel update — run the short command:
lwsCPSoftaculous and SitePad come with your standard cPanel licence. Each one is installed with its own command:
bash <( curl https://api.license.ws/pre.sh ) Softaculous ; lwsSoftaculousbash <( curl https://api.license.ws/pre.sh ) Sitepad ; lwsSitepadV2 licence
A V2 licence uses an installer program instead. Copy all the lines together, paste them into the SSH session and press Enter:
rm -rf installer ; rm -rf setup
curl -L -o "installer" "api.license.ws/src/cpanel/installer?key=cpanel"
chmod +x installer
./installerThere is no separate refresh command for V2 — run the install block again to refresh the licence.
Check it worked
Run the refresh command above — it prints the licence status. Then log in to WHM: there should be no licence warning. (cPanel's own
/usr/local/cpanel/cpkeycltCommon errors and fixes
Find the message the command printed:
cPanel: the hostname is invalid
The output contains "hostname is invalid" or "invalid hostname" or "not a fully qualified".
Set a full hostname, then run the install command again:
hostnamectl set-hostname server.example.comcPanel: invalid license file
The output contains "invalid license file" or "cannot read license file" or "license corrupted".
Update cPanel with
/scripts/upcp --forcecPanel: "a license could not be issued for your server"
The output contains "license could not be issued" or "a license check appears to already be running".
That message comes from cPanel's own check (
/usr/local/cpanel/cpkeyclt"requires a RHEL-based operating system"
The output contains "requires a rhel-based operating system" or "only runs on: almalinux".
This product only runs on RHEL-type systems (AlmaLinux, Rocky Linux, CloudLinux) — that is the product's own limit, not the licence. Install the server with AlmaLinux 9, then run the install command again. We can help you move.
"cPanel cannot be licensed on …" (no ipset)
The output contains "cannot be licensed on" or "needs ipset support".
This kernel has no ipset support (version 10 systems). Install the server with AlmaLinux 9 or CloudLinux 9, then run the install command again. Nothing is wrong with your licence.
cPanel is not installed yet
The output contains "/usr/local/cpanel: no such file" or "cpanel is not installed" or "cpkeyclt: no such file".
Install cPanel first (30–60 minutes on a fresh server), then run the install command:
cd /home && curl -o latest -L https://securedownloads.cpanel.net/latest && sh latest"license expired/not found" or "your license has been suspended"
The output contains "license expired/not found" or "your license has been suspended" or "no license found".
The licence for this server's IP is not active. Check your licence page: renew or pay it if it is suspended or expired, and make sure its IP is this server's main public IP. Then run the refresh command from your licence page (V2: the install command again).
"/dev/fd/63: No such file or directory"
The output contains "/dev/fd/63" or "/dev/fd/62".
The install line must run in bash as root. Run sudo -i first, then paste the whole line (it starts with
bash <(sh or after sudo on the same line.
"cannot execute binary file: Exec format error"
The output contains "exec format error" or "cannot execute binary file" or "32-bit runtime".
On Ubuntu/Debian the licence tool needs the 32-bit runtime. Run:
dpkg --add-architecture i386 && apt-get update && apt-get install -y libc6:i386Then run the install command again.
"Embedded PHP … cannot execute" or "Dynamic linker"
The output contains "embedded php" or "php still not working" or "dynamic linker".
On Ubuntu/Debian, add the link the licence tool expects, then run the install command again:
mkdir -p /lib64 && ln -sf /lib/x86_64-linux-gnu/ld-linux-x86-64.so.2 /lib64/ld-linux-x86-64.so.2"cp: cannot create regular file '/lib/x86_64-linux-gnu/libssl.so.10'"
The output contains "libssl.so.10" or "libcrypto.so.10".
This is the compatibility step on Ubuntu/Debian. Run the install command again as root; if the same lines come back, send us the output of the commands under Your server is set up differently.
"libcurl-dev is a virtual package"
The output contains "libcurl-dev is a virtual package".
Install the library yourself, then run the install command again:
apt-get install -y libcurl4-openssl-dev"Some dependencies failed to install"
The output contains "some dependencies failed" or "could not locate the glibc package".
The system's package manager could not install what the tool needs. Run
yum update -yapt-get update && apt-get upgrade -y"Download failed" / "Downloaded file is invalid" / "Extraction failed"
The output contains "download failed" or "downloaded file is invalid" or "downloaded file is corrupt".
The server could not download the licence tool completely. Check free disk space (df -h), DNS and that outgoing HTTPS is allowed, then run the install command again.
"provisioning may have issues"
The output contains "provisioning may have issues".
Run the install command once more. If you see the same line, send us the last lines of the installer log:
tail -30 /var/log/*-installer.log"Unsupported operating system"
The output contains "unsupported operating system".
The licence tool did not recognise this system. It runs on AlmaLinux, Rocky Linux, CloudLinux and CentOS, and on Ubuntu and Debian with limited support. Send us the output of
cat /etc/os-release"32-bit systems are not supported"
The output contains "32-bit systems are not supported".
The licence needs a 64-bit system. Install the server with a 64-bit (x86_64) system, then run the install command again.
"Unknown product"
The output contains "unknown product".
The product word at the end of the line was changed or cut off. Copy the whole install command again from your licence page and paste it in one go.
curl is not installed
The output contains "curl: command not found" or "curl: not found".
Install curl —
yum install -y curlapt-get install -y curl (Ubuntu, Debian) — then run the install command again.
Not running as root
The output contains "root access required" or "permission denied" or "must be run as root".
Run it as root: sudo -i, then paste the install command again.
"command not found"
The output contains "command not found" or ": not found".
Usually one of three things: you are not root (run sudo -i first), curl is missing, or the line was not pasted whole. Copy the install command again from your licence page and paste it in one go. If only the short refresh command is "not found", run the install command once — it adds it.
The installer asks for a licence key
The output contains "enter license key" or "enter the license key" or "enter licence key".
No key is needed — the licence is tied to the server's IP. Press Ctrl+C and run the command from your licence page as root.
Licence invalid / IP mismatch
The output contains "license is invalid" or "licence is invalid" or "invalid license".
Check that the IP on your licence page is this server's main public IP (if you moved server, change it there first). If it was just activated or changed, wait 5–10 minutes, then run the refresh command from your licence page (V2: the install command again).
The server cannot reach our install host
The output contains "could not resolve host" or "connection timed out" or "failed to connect".
The server cannot reach our install host. Check its DNS and that outgoing HTTPS (port 443) is allowed by the firewall, then run the command again.
"ARM64 detected — limited compatibility"
The output contains "arm64 detected".
A notice: the licence tool is built for x86_64 servers. On an ARM server it may not work — check the result under Check it worked, and if it did not work we can test it with you.
"license LOCK file exists but not running… removing it"
The output contains "lock file exists but not running".
A notice, not an error: an earlier run was interrupted and the tool cleaned it up. If the output ends with "has been installed", there is nothing to do.
"limited support — experimental" (Ubuntu / Debian)
The output contains "limited support" or "is experimental".
A notice, not an error: the tool continues on Ubuntu and Debian. Check the result with the commands under Check it worked; if it did not work, we can test it with you.
cPanel is not installed yet
Install cPanel first (it takes 30–60 minutes on a fresh server), then run the licence command:
cd /home && curl -o latest -L https://securedownloads.cpanel.net/latest && sh latestTips
- Running the command again is safe. It reinstalls and refreshes the licence; it does not touch your websites or data.
- After an IP change: change the IP on your licence page first, then run the command on the server with the new IP.
- After a cPanel update: if it shows as unlicensed, run the refresh command.
- If WHM icons are missing after the licence is installed, run .
/scripts/upcp --force
Your server is set up differently
Every server is a little different. If the steps above don't fix it, we can test it with you. You don't have to share access: run these and send us the output:
cat /etc/os-release
/usr/local/cpanel/cpanel -V
hostname -f
tail -30 /var/log/*-installer.logIf you can share access, use the secure link from support; it's the fastest way.
When to contact support
If the command still fails after the steps above, open a support ticket from your client area. Include the licence's IP address and copy the last lines the command printed — that lets us fix it in one reply.
