Fixing the WHM/cPanel "Invalid License File" error
If WHM or cPanel shows an Invalid License File error, connect to your server over SSH and run this command:
/usr/local/cpanel/cpkeyclt
To check whether your licence was bought from a cPanel partner, see Verifying a cPanel/WHM licence.