The error message 'invalid license file' on a cPanel VPS is usually caused by the fact that the hostname in your VPS does not match the hostname that is known to cPanel in the license file.
You can remedy this by connecting to your VPS via SSH and using the command below. This updates the license file at cPanel with the correct hostname:
sudo /usr/local/cpanel/cpkeyclt --force
Should you have any questions left regarding this article, do not hesitate to contact our support department. You can reach them via the ‘Contact Us’ button at the bottom of this page.