How to update cpanel license to correct Invalid License File
If you get Invalid License File when you login to cpanel after a hostname or IP change you need to update your cpanel license file by: Login to shell and run the following from command line: /usr/local/cpanel/cpkeyclt