If you see the error message "License has expired" in your DirectAdmin control panel, it typically means there's an issue with your license. To resolve this, follow these three simple steps while logged in to your server via SSH as the "root" user:
1. Add a new task for license confirmation:
echo 'action=update&value=license' >> /usr/local/directadmin/data/task.queue
2. Initiate the task:
/usr/local/directadmin/dataskq
3. Restart DirectAdmin:
service directadmin restart
After completing these steps, log in to your DirectAdmin control panel again, and the error message should be resolved.