You might be getting trouble logging into cPanel/WHM because you are getting an Invalid cPanel License error and you are probably looking for a solution for this issue.
Find why are you getting an invalid license error
Requirements:
- Server with Root access
- SSH access to login into the server with root user
Steps to update cPanel license key from command line/SSH
- Verify your server has a valid license
To verify, go to https://verify.cpanel.net/app/verify and enter your Server IP and click on “Verify License”
Once you get the ‘Status’ as activate, you are ready to use the SSH to update your license file on the server.

- Run update script (cpkeyclt)
Login into Terminal and run the below SSH commands:
/usr/local/cpanel/cpkeyclt
You should get an output just like below
Updating cPanel license…Done. Update succeeded.

- Login into WHM/cPanel
Now as you have updated the license file on the server, You can now login into WHM and manage your server

You have successfully fixed cPanel issue via SSH in a few simple steps.
F.A.Q’s
1) How to get a trial license of cPanel?
Ans. Just install the Software on your server and the trial license will be activated automatically
2) Is there any Official License Verification tool where I can find license details, license type, License tier, License level, License Validity, license expiration, and license history of my server?
Ans. Visit https://verify.cpanel.net/app/verify and enter your Server IP to check your license status and history.
3) I have installed WHM but I am facing license activation issue. What should I do?
Ans. Check if you have a valid license issue by visiting the verify link here. If your server IP already has a history of trail license, you’ll need to contact cPanel support team for solving your problem.
4) Can I get developer licenses?
Ans. Yes. Please contact the support team and they should be able to provide you developer license.
Want to install cPanel/WHM in your server?
Checkout The Ultimate cPanel/WHM installation Guide – Step by Step (2021) (hostathash.com)
Feel free to share your questions in the comment section.



