Search Our Database

How to change DirectAdmin license or Update license

Last updated on |
by

After we did changed on the server IP, the DirectAdmin will not be running, as the license file is invalid. Due to this, we may need to contact DirectAdmin to obtain new license file and DirectAdmin will change the IP in the license.

SSH to the server and run the following commands

# /usr/local/DirectAdmin/scripts/getLicense.sh

Please make sure the license file contains no error messages or weird character. Start DirectAdmin service with the new license.

# /etc/init.d/DirectAdmin restart

Download the ipswap.sh from DirectAdmin

# wget http://www.DirectAdmin.com/ipswap.sh
# chmod 755 ipswap.sh

Run ipswap.sh script as below

# ./ipswap.sh OLP_IP NEW_IP

Restart the following applications

# /etc/init.d/httpd restart
# /etc/init.d/proftpd restart
# /etc/init.d/exim restart
# /etc/init.d/dovecot restart

Run this command to update the users list cache so that you will see the new results in the show users list

# echo "action=cache&value=showallusers" >> /usr/local/DirectAdmin/data/task.queue