Skip to content

cPanel license check and fix runbook

A cPanel license can fail to validate for half a dozen reasons. The check-and-fix runbook gets through them in five minutes, before the WHM UI locks out.

A cPanel license that fails to validate is one of the more disruptive failures because it locks the WHM UI and stops core daemon operations after a grace period. The cause is almost never “cPanel revoked your license” — it is usually a network problem reaching the licensing server, an IP change, or a clock skew that breaks the signed request. The runbook below resolves nine cases out of ten in under five minutes.

What’s happening

The cPanel license validates against verify.cpanel.net on a schedule. The licensed IP must match the host’s public IP, the system clock must be within an hour of UTC, and the host must be able to reach the licensing endpoint over HTTPS. When validation fails, cpkeyclt and the WHM UI show “License: Expired” or “License could not be verified”. A 3-day grace period applies, then daemons start refusing connections.

How to verify

The five checks, in order:

# 1. what cPanel thinks the license state is
whmapi1 get_license_info
/usr/local/cpanel/cpkeyclt
# 2. what IP cPanel sees us as
curl -s https://verify.cpanel.net/ip
# 3. what IP we actually have
ip addr show | grep "inet "
# 4. system clock
date -u
chronyc tracking
# 5. network path to licensing
curl -v https://verify.cpanel.net/ 2>&1 | head -20

If cpkeyclt succeeds, license is restored immediately. If it fails, the error message points at which check broke.

The fix

  1. IP mismatch — curl -s https://verify.cpanel.net/ip returns the IP cPanel sees you as. If it differs from your actual public IP, the host has changed IPs and the license is pinned to the old one. Have your license partner update the IP in the license panel, then run cpkeyclt.
  2. Clock skew — chronyc tracking shows offset from NTP. If more than a minute off, chronyd is not running or NTP is blocked. systemctl restart chronyd; if it does not converge, the firewall is blocking UDP 123 outbound.
  3. Network blocked — curl https://verify.cpanel.net/ should return content. If timeout or connection refused, a firewall (local or upstream) is blocking. Allowlist the cPanel licensing endpoints in CSF and any upstream firewall.
  4. License expired or canceled — whmapi1 get_license_info returns expired or canceled. Contact your license partner (or the cPanel store for direct licenses). The fix is administrative, not technical.
  5. Manual revalidation — once the underlying issue is fixed, /usr/local/cpanel/cpkeyclt --force re-pulls the license. If still failing, restart cpsrvd: systemctl restart cpsrvd.

If the licensing endpoint is up but cpkeyclt keeps failing, check /var/cpanel/license_check.log for the actual error. Stack Harbor handles license operations under cPanel server management — start a conversation when license issues are recurring.