Before the move: know what you have
“The website and the database” is rarely everything. When we built our own recovery plan, we found how much lives outside the site itself: scheduled jobs, mailboxes, DKIM keys, database users and versions. We use the same list when a hosting account moves.
- List domains, subdomains, databases, mailboxes and scheduled jobs (cron).
- Note the PHP and database versions, so the new host can match them.
- Save a copy of the whole DNS zone: A, AAAA, CNAME, MX and every TXT record.
- Find out whether mail lives on the hosting account or somewhere else. In a review of our own domains we found one with no MX record at all: enquiries to it had never arrived.
The move itself
The order is what removes the downtime.
- Lower the TTL Set the TTL on the DNS records that will change to, say, 300 seconds at least a day before.
- New host ready Create the account, choose the same PHP version and add SSL.
- First copy Copy files and database while the old site keeps running.
- Test without DNS Point only your own computer at the new host (hosts file), so no customer sees it yet.
- Final sync Pause changes briefly, copy the last of it, and switch DNS.
- Follow-up Compare every page with before. Cancel the old hosting only after a few days.
Mail is the hard part
A website can be tested before DNS switches. Mail cannot in the same way. If mailboxes move too, copy them, switch MX, and sync again afterwards so messages that arrived during the switch are not lost. Remember SPF, DKIM and DMARC: a new host sends from a new server and often has a new DKIM key.
We run mail for 28 domains with 85 mailboxes ourselves and have changed DKIM keys without a single rejected message. The order was: new key in DNS, wait until it is visible from outside, switch signing, test, and only then remove the old key. A classic mistake after a move is two SPF records on one domain. SPF then fails, and mail lands in spam. More on moving mailboxes: move mail without losing messages.
Mistakes we have met
- A backup that was not there. A panel reported success although the cloud upload had failed. Check that you can open the backup before you delete anything.
- Backup files in the web folder. On nginx,
.htaccessprotects nothing. Files under the web folder could be downloaded from outside. Never put backups or database dumps in the web folder during a move. - Name servers without a zone. For .dk, the new name servers must answer for the domain before the change can go through. Load the whole zone in advance, or the site or mail stops.
After the move
We do not write “moved” until we have shown that it works. When we restart or update our own servers, we compare the answer from every single site before and after. We do the same after a move:
- Compare status codes and response times for the key pages with the earlier measurement.
- Send a test mail in and out, and check SPF, DKIM and DMARC.
- Check that scheduled jobs run at the new host and are switched off at the old one.
- Raise the TTL again once everything is stable.
- Keep a last copy of the old hosting before you cancel it.
Moving to a VPS instead? From shared hosting to your own server there are more steps: firewall, updates and monitoring. See the checklist move a server without downtime.
Questions about moving hosting
How long does a move take?
The switch itself usually takes minutes, because the copy is made in advance. Preparation takes longer, especially when mail moves too.
Must the domain move at the same time?
Not necessarily. You can move the hosting first and just change DNS. The domain can change registrar later, see .dk domain.
What if something goes wrong?
The old hosting keeps running until the new one is confirmed. DNS can point back, and because the TTL was lowered, the change takes effect quickly.
Will I lose Google rankings?
Not when the addresses stay the same. The pages must answer as before, and the old host must not keep showing a copy of the site at another address.
Fixed price, no commitment
Get your hosting moved
Tell us your domain and where the site and mail are today. You get a plan and a price before we touch anything.
- A fixed price before we start
- An answer by e-mail, no calls
- Your details are used only to answer you