Update cPanel License
If you get Invalid License File when you login to cpanel, you need to update your cpanel license file by:
Login to shell as "root" and run the following from command line:
cPanel license Verification
visit verify.cpanel.net, enter your IP and check whether the license is active now.
cPanel license logs