What needs to change if you copy a DA server?


Verified User
Feb 27, 2006
Copying an ESXi VM is a lot easier than doing a full OS and DA install and config...I think. LOL! Things I can think of that would need to change are:

- Visit https://www.directadmin.com/clients
- Login and change information for license as necessary.

ssh operating system
# hostname <new-server-name>
# edit etc/rc.conf
- Change server name
- Change network addresses
# edit etc/resolv.conf
# edit etc/hosts
- Replace any occurrence of the existing computer name with your new one.
# /etc/netstart

ssh DirectAdmin
# cd /usr/local/directadmin/scripts
# ./ipswap.sh for all IP addresses in DA
# ./getLicense.sh
# cd /usr/local/directadmin/custombuild
# edit options.conf
- Change redirect_host to new server name
- Add section at bottom
- #Clear out old tickets (0=default keep forever 1=1 day)
- delete_messages_days=1
- delete_tickets_days=1
*delete Clear out old tickets after couple days to go back to default behavior
# cd /usr/local/directadmin/data/admin
- delete brute.conf
# edit /usr/local/directadmin/data/users/admin/php/php-fpm53.conf
# edit /usr/local/directadmin/data/users/admin/user.conf

DirectAdmin Control Panel
- Delete all users except admin
- admin -> Admin Level -> Administrator Settings -> Server's Hostname
- admin -> admin in IP Management delete any unused addresses and add any missing
- In admin -> reseller, change the name servers and set up as necessary
- admin -> user change name of server under Domain Setup -> Change a Domain Name
- admin -> admin -> DNS Delete the old DNS record for the old server name. New one should be there.
- New cert for new server name

Data Center
- remove old reverse-dns and setup new

- Let me know if you see any long-term pitfalls in doing this.
Last edited: