The first step is to nofify direct admin regarind this change.

Boot the machine with the new IP address, chage the IP address in the system network setting and not in DirectAdmin.

Now get the new Licence.

cd /usr/local/directadmin/scripts

./getLicense.sh 1234 56789

Replace 1234 with your client ID number, and replace 56789 with your license ID number.

Start DirectAdmin with the new license:

/etc/init.d/directadmin restart

Run the ipswap.sh script to replace the old server IP (1.2.3.4) with the new server IP (4.3.2.1)

cd /usr/local/directadmin/scripts

./ipswap.sh 1.2.3.4 4.3.2.1

Restart everything:

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

One Response to “Changing your server IP address in DirectAdmin”

  1. 3offenderon 12 Jan 2022 at 10:51 pm

    3thirty-nine…

Trackback URI | Comments RSS

Leave a Reply

You must be logged in to post a comment.