iServerSupport Talk to an engineer

cPanel Invalid License or Cannot Read License File: How to Fix It

cPanel showing Invalid License or Cannot Read License File almost always means an IP mismatch. How to check, refresh and fix a cPanel license without downtime.

A key icon with a blocked mark representing a cPanel license verification failure

A cPanel server that was working fine yesterday and now shows Invalid License or Cannot Read License File on login has not actually lost its license in most cases. cPanel licensing is tied to the server's public IP address and verified against cPanel's own licensing servers, so this error usually means one of those two things changed, not that the account itself has a billing problem. Distinguishing this from a plain login failure matters, since the fix is completely different from the one in our guide on cPanel login showing invalid with the correct username and password, which covers an authentication issue rather than a licensing one.

Confirm the public IP cPanel is actually licensed for

cPanel licenses the IP address it detects, which is not always the IP you expect if the server sits behind a NAT, a firewall, or a recently changed network configuration:

curl https://checkip.cpanel.net

Compare that output against the IP your license is actually issued for. A mismatch here, even a difference nobody intended, such as a provider reassigning the server's public IP after a reboot or migration, is the single most common cause of this error.

Check the license status directly against cPanel's verification tool

Before changing any server configuration, confirm what cPanel's own systems currently show for the license:

https://verify.cpanel.net/app/verify?ip=YOUR_SERVER_IP

This tells you definitively whether the license is active, expired, or simply not yet updated to the server's current IP, which changes the next step considerably. An expired license needs a billing fix through your license provider; an IP mismatch needs a technical fix on the server itself.

Force cPanel to refresh the license file

If the IP is correct and the license is active, the local license file on the server may simply be stale. Force a refresh:

/usr/local/cpanel/cpkeyclt

This pulls a fresh license file from cPanel's licensing servers and updates the local copy. Watch the command output directly for a success message rather than assuming it worked, since a network or firewall issue at this step produces a silent failure that leaves the old, invalid license file in place.

Check whether outbound traffic to cPanel's licensing servers is blocked

cpkeyclt needs outbound access to reach cPanel's licensing infrastructure. A firewall change, a new outbound rule set, or a security tool added since the license last verified successfully can silently block this traffic:

telnet verify.cpanel.net 443
curl -v https://verify.cpanel.net/

If this connection fails or times out, the license file cannot refresh no matter how many times cpkeyclt is run, and the actual fix is opening outbound HTTPS access to cPanel's verification servers in whatever firewall or security layer was added.

After a migration or IP change, update the license proactively

Server migrations are one of the most common triggers for this exact error, since the new server has a different public IP than the one the license was issued for. If you recently moved to a new server, our guide on migrating from cPanel to Plesk without downtime and our CentovaCast migration guide both cover planning migration steps in a way that avoids exactly this kind of post migration surprise, licensing included.

If none of the above resolves it

Occasionally the issue sits on cPanel's own licensing infrastructure rather than the server, particularly during their own maintenance windows or after a bulk licensing system change. If cpkeyclt completes successfully, the IP matches, and verify.cpanel.net confirms an active license, but WHM still shows the error, a WHM service restart clears a stale in-memory license state that the file refresh alone does not touch:

/scripts/restartsrv_cpsrvd

Putting it together

Invalid License and Cannot Read License File almost always trace back to an IP mismatch between what cPanel has on file and what the server is actually using, or to blocked outbound traffic preventing the license file from refreshing. Confirm the actual public IP, check the license status directly through cPanel's verification tool, force a refresh with cpkeyclt, and confirm outbound access to cPanel's licensing servers before assuming the license itself has a billing problem.

iServerSupport provides cPanel server management including licensing issues, post migration configuration and WHM troubleshooting, so a login blocked by a licensing error gets resolved without guessing at the cause.

cPanel server management

Need experienced cPanel and WHM support?

Our engineers manage cPanel servers, troubleshoot service failures and keep hosting systems secure and responsive.