How to Fix License File Errors
Last modified: July 12, 2022
In some circumstances, you may see a license-related error message on your cPanel & WHM server (for example,
License File Expired or
Cannot Read License File). Use the steps in this guide to troubleshoot and fix this problem.
If the steps in this document do not resolve the problem, open a ticket with cPanel Customer Service for further assistance.
Troubleshoot license errors
Use the following procedures to troubleshoot your license errors:
Verify your license IP address
In most cases, the system returns these errors because of an invalid or expired license. To check whether your license is invalid or expired, perform the following steps:
- Run either of the following commands to obtain your license’s IP address:
curl -w '\n' -s http://myip.cpanel.net/v1.0/ curl -w '\n' -s http://myip.cpanel.net:2089/v1.0/
- Navigate to the cPanel License Verification page.
The License Verification page lists licenses for cPanel & WHM and other products separately. The list sorts each license from newest to oldest. For example, you may see
COMPANY-CLOUDLINUX-INTERNAL-WITH-CPANELin the Package column, where
COMPANYNAMErepresents the name of the partner that issued the license. This example indicates that your server possesses a cPanel license and a CloudLinux license that you purchased through cPanel, L.L.C. Your CloudLinux license may report an active status while your cPanel license reports as expired.
- Enter the IP address that you obtained in Step 1. Our website will display the status of your license.
Check for connectivity issues
If your IP address is already licensed and you still experience problems, run the following script as the
root user to verify your license:
If your license works properly, the script will not return a message. If the script requires more than a few seconds to run, your server may have encountered connectivity issues.
Check resolving and hostname
To check whether you can resolve our servers, run the following command:
Check the server time and date settings
Ensure that the time and date of the server are not set too far in the future or past. To do this, run the
date command on the command line. If the system returns an incorrect time or date, reset it. For information on how to update the server’s date and time, read the Linux
date manual entry.