DirectAdmin changing IP Address using ipswap.sh. In this tutorial we will learn How to change your server IP address in DirectAdmin using ipswap.sh. When you install directadmin on AWS without elastic ip and in worst situation you need to restart instance the you get a new ip and you loose access to your old ip, In this scenario we need to change ip address.
For this first we need to login via ssh with putty now go to directory to /usr/local/directadmin/scripts.
You can use Linux command given below
cd /usr/local/directadmin/scripts
DirectAdmin changing IP Address using ipswap.sh
Run the command given below (it will require root access)
./ipswap.sh old_ip_address new_ip_address
Restart all services to IP Address change effect
systemctl restart pure-ftpd
systemctl restart exim
systemctl restart dovecot
systemctl restart httpd
You can also run da build rewrite_confs
Run the commands given below
cd /usr/local/directadmin/custombuild
./build set userdir_access yes
./build update
./build rewrite_confs
Learn how to install directadmin on Amazon Aws.
If you have and query or suggestion then please comment, I will reply to fix your problem, if you like our content then you can subscribe to our Youtube channel. If you want to hire me then reach us at our Fiverr.