We log search terms to improve our documentation. For more information, read our Privacy Policy.


Invalid License Errors

Problem

While attempting to log in to the Admin Area, you see the following error:

License Invalid

Cause

This error may indicate that you entered an invalid license key or moved the WHMCS installation without updating the license.

Troubleshooting

This troubleshooting information only applies to self-hosted WHMCS installations.

To confirm the cause, complete the following steps:

  1. Open the configuration.php file in the root directory of your WHMCS installation.
  2. Locate the $license line and compare its value to the license key in the WHMCS Member Area at Services > My Licenses, or the key your hosting provider issued you.
  3. Confirm the value doesn’t contain extra spaces, line breaks, or quotation marks beyond the surrounding PHP string syntax.
  4. If you recently moved your WHMCS installation to a new server or domain, confirm whether you reissued the license key for the new location.

Solution

If the key in configuration.php doesn’t match your issued license, or you moved your installation without reissuing the key, reissue the license key:

  • If you purchase your license from WHMCS directly, log in to the WHMCS Member Area, go to Services > My Licenses, select your license key, and click Reissue.
  • If you purchase your license from your hosting provider, contact them to reissue the license.
    If you moved your WHMCS installation to a new hosting provider, you will require a new license key.

After you reissue the key, update the $license value in configuration.php with the new key.

Last modified: 2026 September 16