Start with an inventory, then set up the new server and transfer files and database. Test the new environment via the hosts file. After that, lower the TTL, switch DNS, reissue the SSL certificate and update the mail records. Only cancel the old contract once the new server has run stably for a few days.
Key facts
- Duration
- Usually one to three working days
- Most critical step
- DNS switch after lowering the TTL
- Lower TTL first
- To 300 seconds, at least 24 hours ahead
- Domain transfer
- Request auth code (EPP code) from old registrar
- Most common mistake
- Forgotten mail accounts and cron jobs
- Money-back guarantee
- 14 days at Realtoxmedia
Where does a migration begin?
With a list of what runs on the old system: all domains and subdomains, the website files, every database with its credentials, mailboxes, forwards and autoresponders, cron jobs, SSL certificates, FTP and SSH access, and the PHP version with its extensions. Also note who manages the domain and where the DNS zone is hosted. That is not always the same provider. Finally, take a full backup of files and databases and store it separately from both servers.
The migration step by step
For a website, a shop or a custom application the procedure is the same; only the scope differs. Schedule the switchover for a quiet period, such as early morning or the weekend, and let colleagues or customers know beforehand. Keep to the order. If you switch DNS before the new server has been tested, you end up troubleshooting in live operation.
- 1. Set up the new server: operating system, web server, PHP version and database as close as possible to the old environment.
- 2. Transfer the data: files via rsync or SFTP, databases as a dump. Then adjust paths, credentials and cron jobs.
- 3. Lower the TTL of the DNS records to 300 seconds at least 24 hours in advance.
- 4. Test: enter the new IP in your local hosts file or use a test domain and click through the entire site.
- 5. Switch DNS: point the A, AAAA and MX records to the new server.
- 6. Reissue the SSL certificate, create mail accounts and send test emails in both directions.
Only cancel the old contract after one to two weeks of stable operation. Until then you can always go back to the old system.
How do you switch DNS without downtime?
The TTL (time to live) sets how long DNS servers cache an answer. If it is 86,400 seconds, some visitors will reach the old server for another day. Lower the value to around 300 seconds one to two days before the move, wait for the old TTL to expire and only then switch. As long as both systems run in parallel and serve the same content, there is no downtime. Only write operations are a problem. Put a shop into maintenance mode during the switchover so no order ends up in the old system. Afterwards, raise the TTL again.
Which mistakes happen most often?
Usually it is small things that only show up days later, for example when an order confirmation is missing or a nightly import has stopped running. After the switchover, go through what was active on the old system outside the website. The log files of both servers show whether requests are still arriving at the old destination. These points are often overlooked:
- A TTL that is too high before the switchover. This is the most common cause of apparent outages.
- Forgotten cron jobs: imports, backups and invoice runs stop working after the move.
- Mail forwards and autoresponders that were only set up in the old panel.
- No backup immediately before the move, so there is no state to return to.
- A different PHP version or missing extensions on the new system.
- SPF, DKIM and DMARC records that were not updated, so mail lands in spam.
What happens to the domain?
Moving the server and moving the domain are two separate processes. You can change servers and leave the domain with the old registrar. In that case you only change the DNS records there. If the domain is to move too, request the auth code (EPP code) from the current registrar. This transfer code identifies you as the holder. You enter it at the new provider and confirm the transfer. Check beforehand that the holder data is up to date and the domain is not locked, and back up the DNS zone, because not every provider carries it over. For .de domains the transfer usually takes a few hours, for other extensions up to five days. The website stays reachable as long as the DNS records do not change.
When is changing host worth it?
A migration takes time and should have a concrete reason. Common reasons are recurring outages without a binding SLA, slow response times, no data center in Germany, missing DDoS protection, or an environment you have outgrown, for example when you need root access, a newer PHP version or your own services. Price can be a reason, but should not be the only one. The risk stays low if you run both systems in parallel for a while: the new server runs as a test, the old one stays live, and you switch only when everything works. The 14-day money-back guarantee at Realtoxmedia covers this period.
Take a complete inventory, test via the hosts file, lower the TTL in good time and make a backup beforehand. Only cancel the old contract once the website, mail and cron jobs have run without errors on the new server for several days.