While I was tying to change the name server in my just new server I got this error message Invalid License File and I couldn’t log in to my server using WHM.
How can I change it again ?

This is a pretty common situation when setting up a new cPanel server, and has a simple solution.

For those lazy sysadmins (like me), here’s the quick solution:

rdate -s time.nist.gov
/sbin/hwclock –systohc
service cpanel restart

Hope is helpful.