How to update cPanel license?

After changing web host server hostname by using WHM (WebHost Manager) or via shell command, cPanel may display “Invalid License File” error message. The symptom appears immediately on next navigation, and even after administrator or cPanel user logout and login again to WHM/cPanel. The error occurs because changing hostname will invalidate the cPanel license.

If you get Invalid License File when you login to cpanel, you need to update your cpanel license file by:


Login to shell as "root" and run the following from command line:

# /usr/local/cpanel/cpkeyclt


The command will reset and refresh update the cPanel license file with the new current hostname, and push the change to cPanel’s license verification servers auth.cpanel.net and verify.cpanel.net.
  • 4 Users Found This Useful
Was this answer helpful?

Related Articles

Adding secondary IPs to Cpanel

  To access the IP Functions Menu, click on IP Functions, on the main screen...

Suspended page / Internal Server Error

If domain is showing "Internal Server Error" except suspention page after suspending the domain...

CPanel Log file locations

CPanel stores it’s log files in the /usr/local/cpanel/logs directory. Below is a list of the...

How do convert a dedicated ip to a shared ip on cPanel/WHM

In root SSH, copy the /etc/domainips file and then remove the IP from it: Code: cp...

Install RKHunter

You can install RKHunter on Linux Server by using following steps.1 Login to your server as...