How to do Directadmin to Directadmin Migration

The directadmin to directadmin migration is easy.

  • Set the value  skip_domains_in_backups=1  in  /usr/local/directadmin/conf/directadmin.conf . This will skip coping home folder during backup creation.
  • Do to admin panel Admin Tools -> Admin Backup/Transfer , And select all users and run a backup now .This will take all accounts backups under the folder  /home/admin/admin_backups.
  • Now login to the admin panel of the new server and  go to Admin Tools -> Admin Backup/Transfer , then select the  “restore backups “. Chose all the backups files and  click the  submit.
  • Monitor the new server and wait for finishing  the restore. You can check the top comand and  or use pstree. See if the comamnd  dataskq completed or not. Also check the home folders .
  • After finishing it simply rsync the home folders.

[SOLVED] could not connect to localhost:143: php_network_getaddresses: getaddrinfo failed

This issue generally came with webmail issues in cpanel or directadmin servers (roundcube , squirrel mail ,etc,.)

So to solve this issue check the following.

1) Give 644 permissions to /etc/hosts , /etc/resolv.conf , /etc/host.conf

2) Give the following entry in /etc/hosts

127.0.0.1 localhost localhost.localdomain

3) Test if imap running on port 143 in server as following .

# telnet localhost 143
Trying 127.0.0.1…
Connected to localhost.
Escape character is ‘^]’.
* OK [CAPABILITY IMAP4rev1 LITERAL+ SASL-IR LOGIN-REFERRALS ID ENABLE STARTTLS AUTH=PLAIN AUTH=LOGIN] Dovecot ready.
^]
telnet> quit
Connection closed.

4) Restart webserver that configured with the webmail ( cpanel ,apache ,etc,. )

5) Now try to logins to webmail , it will work fine.