Knowledgebase

How to refresh 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.

  • 10 Users Found This Useful
Was this answer helpful?

Powered by WHMCompleteSolution