This shows you the differences between two versions of the page.
Both sides previous revision Previous revision Next revision | Previous revision | ||
internet:hosting:virtualmin_migrate [2019/03/31 11:18] gcooper |
internet:hosting:virtualmin_migrate [2019/04/02 08:45] (current) gcooper |
||
---|---|---|---|
Line 68: | Line 68: | ||
===== Verify the Migration ===== | ===== Verify the Migration ===== | ||
+ | |||
+ | ==== Apache Web Server ==== | ||
Make sure the web server restarts after migrating a domain. | Make sure the web server restarts after migrating a domain. | ||
Line 77: | Line 79: | ||
< | < | ||
sed -i '/ | sed -i '/ | ||
- | |||
systemctl restart apache2.service | systemctl restart apache2.service | ||
- | |||
systemctl status apache2.service | systemctl status apache2.service | ||
</ | </ | ||
+ | |||
+ | ==== Default Web Site ==== | ||
:!: On the new Virtualmin server, check that the **default web site** has not changed: | :!: On the new Virtualmin server, check that the **default web site** has not changed: | ||
Line 87: | Line 89: | ||
**Virtualmin -> < | **Virtualmin -> < | ||
- | Also check: | + | ==== DNS ==== |
+ | |||
+ | Verify and correct: | ||
* **DNS SPF record** | * **DNS SPF record** | ||
- | * **nameserver | + | * **Name Server |
* **DNS Slave server** | * **DNS Slave server** | ||
- | * **domain plan and features** | ||
- | If the DNS slave server | + | === DNS Slave Server === |
+ | |||
+ | To correct or verify | ||
+ | |||
+ | - **Delete the DNS domain**, if it exists, | ||
+ | | ||
+ | - **Initiate a domain transfer** to populate all DNS records to the slave server | ||
+ | |||
+ | Primary | ||
< | < | ||
Line 100: | Line 111: | ||
</ | </ | ||
- | Lastly, reset the DNS TTL after verifying your DNS is all correct. | + | Slave DNS server: |
< | < | ||
- | virtualmin modify-dns --domain | + | rndc retransfer migrated-domain.tld |
+ | tail -200 / | ||
+ | </ | ||
+ | |||
+ | === DNS TTL === | ||
+ | |||
+ | Lastly, **after you are quite sure the DNS is all correct for the migrated domain**, reset the DNS TTL: | ||
+ | < | ||
+ | virtualmin modify-dns --domain | ||
</ | </ | ||
Line 111: | Line 130: | ||
virtualmin modify-dns --all-domains --ttl 14400 | virtualmin modify-dns --all-domains --ttl 14400 | ||
</ | </ | ||
+ | |||
+ | ==== Hosting Plan and Features ==== | ||
+ | |||
+ | Check that the migrated domain is on the **correct hosting plan** and that all **appropriate features are enabled**. | ||
===== Default Site ===== | ===== Default Site ===== | ||
Line 125: | Line 148: | ||
**Virtualmin -> < | **Virtualmin -> < | ||
+ | |||
+ | ===== Fix Filesystem Permissions ===== | ||
+ | |||
+ | < | ||
+ | virtualmin fix-domain-permissions --all-domains | --domain < | ||
+ | </ | ||
---- | ---- |