Have you ever logged into cpanel or whm and found a Expired License message?Why and how to deal with this message?
One of the reasons for the display of this message could be that your cpanel license has expired. Check if that is the case. Cpanel has a tool for you to verify if your cpanel license is valid.
Your server’s main IP address could be different than the licensed IP address or your server could be experiencing problems perfoming dns lookups. SSH to your server and run the following command:
curl http://www.cPanel.net/showip.cgi
If your main IP is not licensed, you must update your cpanel’s license information. If you get an error, after running this command, you must check your /etc/hosts and /etc/resolv.conf files.
Also check if your hostname is properly configured. It should have this format: subdomain.domain.com.
Finally, try this command:
/usr/local/cpanel/cpkeyclt
It will just try to validate the license with cpanel’s servers. Sometimes, the expired license message is due to temporary connection problems with cpanel’s servers and the license is not validated. This command will resolve that issue. If you receive an error, you must check why your server is unable to connect with cpanel’s servers.