Login to your server by ssh
run folowing command /usr/local/cpanel/cpkeyclt
Inactive License
cPanel may spit out a "inactive License File" error when new IP addresses added or when your hostname has changed.
If this should happen, please run the following command: /usr/local/cpanel/cpkeyclt