The error 'License has expired' can occur on a VPS with DirectAdmin after restoring a back-up or snapshot, or after updating the affected VPS. The solution is thankfuly relatively easy. Execute the following commands using command-line as root user or using sudo:
cd /usr/local/directadmin/scripts ./getLicense.sh auto systemctl restart directadmin
In some cases, most notably older installations, it may be necessary to also update Custombuild afterwards:
/usr/local/directadmin/custombuild/build update_da
If the 'License has expired' error coincides with a recent change in DirectAdmin's license, or update system, you'll almost always also have to update DirectAdmin using the command:
/usr/local/directadmin/scripts/getDA.sh current
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.