cPanel Licence Verification


How to check cPanel Licence Verification

To verify the licence of the cPanel open this link http://verify.cpanel.net/. Enter the main public IP address for a server to check if it has a valid cPanel product license.
If the licence is valid then login as root to the server and run the following to refresh the license.
# /usr/local/cpanel/cpkeyclt
If this command errors or you do not see the server contacting cPanel license servers to verify your license, please check that your server is able to contact servers via port 80 (so, check your firewall's OUTPUT options) and that you have a proper hostname set on your server. cPanel makes the connection to one of the cPanel licensing servers through port 2089. So we should make sure that this port is open.

Telnetting to cPanel License Server
root@server [~]# telnet auth.cpanel.net 2089
Trying 198.66.78.9…
Connected to auth.cpanel.net (198.66.78.9).
Escape character is ‘^]’.
200 cPanel License Service Version 12.0
root@server [~]#
Some times on running the cpkeyclt command, you will encounter the error given below



Error Messages
Updating cPanel license...info [cpkeyclt] /usr/bin/dig failed the usability test !

query failed: query timed out
info [cpkeyclt] /usr/local/cpanel/src/3rdparty/perl/perldig failed the usability test!

warn [cpkeyclt] No working dig found!
Done. Update Failed!
Error message:
License server hostnames could not be resolved to IP addresses

Building global cache for cpanel...Done
Please check your resolver file  /etc/resolv.conf has working resolvers. Your server's main IP should not be listed as a resolver in this file nor should localhost be listed (127.0.0.1) for the nameserver entries for the resolver. You can also test if it was the resolver by running dig google.com. For more info about the error refer the log file /usr/local/cpanel/logs/license_log.
A successful cPanel license verification will display an output as below

Successful Licensing
[root@varuna bandwidth]#  /usr/local/cpanel/cpkeyclt
Updating cPanel license...Done. Update succeeded.
Building global cache for cpanel...Done
The below given are some status codes returned when verifying licence
Code-666
  1. License is expired
  2. License is suspended
  3. hostname must be a FQDN
  4. Machine does not qualify for VPS license
Code-500
  1. License is inactive
  2. License is invalid
  3. License version you are requesting is too old-Update cPanel
Code-600
  1. License has been activated too many times on different machines. Contact Billing for resolution to this!

No comments: