EN · $ USD
Web Hosting and cPanel

How to Migrate Web Hosting from Another Provider with Zero Downtime

7 min read Updated: Sunucu Atlas technical team

In short

For a zero-downtime hosting migration, lower your DNS TTL first, then copy your files and database to the new host and test the site through your hosts file. Create the email accounts with the same names, and after pointing DNS to the new server, sync the old mailboxes over IMAP one last time. Do not cancel your old hosting until DNS propagation is complete.

In this guide
  1. What can get lost in a migration?
  2. Stage 1: Preparation and inventory (2-3 days before the switch)
  3. Stage 2: Copying files and databases
  4. Stage 3: Testing on the new server without changing DNS
  5. Stage 4: Moving email without losing messages
  6. Stage 5: Switch day
  7. Migration checklist
  8. What to monitor in the first week after migrating
  9. Next step: get your new home ready

Done in the right order, a hosting migration is so quiet that visitors never notice it. The secret is to get the site fully working on the new server before you change DNS, switch DNS with a short TTL you set up in advance, and sync email one more time after the switch. This guide lays out a move from another provider to cPanel-based hosting as a five-stage, zero-downtime plan.

What can get lost in a migration?

Downtime rarely comes from the files themselves; it comes from details that get overlooked:

  • Email: While DNS propagates, some senders deliver mail to the old server and some to the new one. Without a plan, messages that land in the old mailbox are forgotten.
  • Order and form data: Orders, sign-ups and comments created on the old site after you copy it are not in the new database.
  • Cron jobs, PHP settings and .htaccess rules: Files move over, but panel settings do not.
  • SSL certificate: The new server may not be able to get an automatic certificate until the domain points to it.

Stage 1: Preparation and inventory (2-3 days before the switch)

  1. Take inventory. In the old panel, list your domains, subdomains, databases, email accounts, forwarders, cron jobs and the PHP version you use.
  2. Choose your new plan. Pick a plan that fits the number of sites, databases and email accounts in your inventory. If you are moving many sites or email accounts, business hosting plans, with their high addon domain, database and email limits, are designed for exactly this.
  3. Lower your DNS TTL. Wherever your domain's DNS is managed (often at the old host), set the TTL of your A, AAAA and MX records to 300 seconds. Then wait at least as long as the current TTL; resolvers around the world need to forget the old record with its long TTL.

One important detail: the TTL of nameserver (NS) records is set by the registry for your domain extension and cannot be lowered by you; for most extensions it can range from hours to days. That is why, for the fastest and most controlled switch, it is safer to point the A and MX records to the new server first and change nameservers later. You can find how propagation works in detail in the DNS propagation guide.

Stage 2: Copying files and databases

Method A: cPanel-to-cPanel full backup

If your old provider also uses cPanel, the cleanest route is Backup > Download a Full Account Backup, which creates a single .tar.gz file. This file contains your files, databases, email accounts and messages. Because a full backup is restored through WHM, prepare the file and ask your new provider's support team to restore it. At Sunucu Atlas, you can send that request through a support ticket (support is provided in Turkish).

Method B: Manual migration

If the old panel is not cPanel, or you are moving only the website:

  1. Download the contents of public_html from the old server over FTP, or compress and download it with the panel's file manager.
  2. Export your databases as .sql files from phpMyAdmin.
  3. In the new cPanel, create a database and user with the same (or new) names and assign the user to the database with all privileges.
  4. Upload the files to the new public_html, extract them and import the .sql file with phpMyAdmin.
  5. Update the database name, user and password in the application's configuration file (wp-config.php for WordPress).

If you have SSH access on both servers, moving large sites from the command line is much faster:

# On the old server: database dump
mysqldump -u eski_kullanici -p eski_veritabani > site.sql

# On the new server: pull files from the old server
rsync -avz -e ssh kullanici@eski-sunucu:~/public_html/ ~/public_html/

# On the new server: import the database
mysql -u yeni_kullanici -p yeni_veritabani < site.sql

For WordPress-specific steps such as plugin-based migration and replacing URLs, see the WordPress migration guide.

Stage 3: Testing on the new server without changing DNS

To open the site on the new server so that only your own computer sees it, use the hosts file. Your computer reads this file before asking DNS.

  • Windows: Open Notepad as administrator and edit C:\Windows\System32\drivers\etc\hosts.
  • macOS and Linux: sudo nano /etc/hosts
203.0.113.10  alanadi.com
203.0.113.10  www.alanadi.com

Replace the example IP with your new hosting account's IP address (shown in the right-hand panel of the cPanel home page). Restart your browser and check the home page and inner pages, logging in to the admin panel, the contact form, search, the cart and checkout, and image loading. When you finish testing, remember to delete those lines from the hosts file.

Stage 4: Moving email without losing messages

  1. In the new cPanel, create every email account from the old server with the same names. Set up forwarders and autoresponders again too.
  2. Before the DNS switch, copy existing messages over IMAP. For many mailboxes, the imapsync tool is the most reliable method:
imapsync \
  --host1 mail.eskisaglayici.com --user1 info@alanadi.com --password1 'ESKI_PAROLA' --ssl1 \
  --host2 YENI_SUNUCU_ADRESI --user2 info@alanadi.com --password2 'YENI_PAROLA' --ssl2
  1. After you point the MX record to the new server, some messages may still land in the old mailbox during propagation. Run the same imapsync command one more time 24-48 hours after the switch; the tool copies only the missing messages.
  2. Update the incoming and outgoing server addresses in your users' Outlook and phone mail apps to match the new server.

If you do not want to install imapsync, you can add both accounts to one email client at the same time and drag the folders across; for a comparison of methods, see moving email to a new host. Also remember to update your SPF record to include the new server; otherwise the mail you send may end up in spam.

Stage 5: Switch day

  1. Freeze content. On ecommerce or membership sites, turn on maintenance mode on the old site right before the switch, or briefly stop taking new orders.
  2. Final database sync. Export the old site's database again and import it on the new server, so orders and comments created during testing move over too.
  3. Switch DNS. Point the A records (and AAAA, if any) to the new server's IP and the MX record to the new mail server. Because the TTL is 300 seconds, most visitors move to the new server quickly.
  4. Check SSL. Once the domain points to the new server, run AutoSSL from the SSL/TLS Status screen in cPanel.
  5. Finish the settings. Recreate cron jobs, the PHP version and custom PHP settings in the new panel using your inventory list.
  6. Change nameservers (optional). If you also want to move DNS management to the new provider, change the nameservers only after confirming that the records in the new DNS zone exactly match the old ones.

Migration checklist

WhenTo doCheck
T-3 daysInventory, new plan, TTL 300TTL change saved
T-1 dayCopy files + database, create email accounts, first imapsyncAll pages tested through the hosts file
T (switch)Content freeze, final DB sync, A and MX changeSite loads from the new IP, SSL active
T+1/T+2 daysSecond imapsync, client settings, SPF updateNo messages left in the old mailbox
T+7 daysCancel old hostingFinal full backup downloaded

Before canceling your old hosting, download one last full backup from it and keep it for a while. A missing file noticed weeks after the move can only be recovered this way.

What to monitor in the first week after migrating

  • Error logs: Look in cPanel's error log for missing PHP extensions, permission errors or file-not-found warnings; problems caused by the different server environment show up here in the first few days.
  • Mixed content warnings: If there is no padlock icon in the browser's address bar, the page still loads images or scripts over http://.
  • Email delivery: Send a test message from your own address to an external mailbox, and confirm that it does not land in spam and that replies come back.
  • Search engine access: Check Search Console for a sudden spike in crawl errors; if your URL structure did not change, you should not see one.
  • Scheduled tasks: After their first scheduled run, check that cron jobs such as backups, newsletters or stock syncs actually run on the new server.

Next step: get your new home ready

A zero-downtime migration starts with a destination that comfortably fits your inventory. If you are moving one or a few sites, cPanel web hosting plans with NVMe storage, LiteSpeed Web Server and free SSL are enough. For companies with many domains, databases and email accounts, the SA-KURUMSAL-1 business hosting plan, which includes access and error logs, or our business hosting plans with higher limits are a better fit. Once you choose a plan, you can share your migration plan with the Sunucu Atlas support team and get help, in Turkish, wherever you get stuck.

Frequently asked questions

Will my site go down during a hosting migration?

Not if you plan it properly. DNS is switched only after the site is fully tested on the new server, so visitors see a working site on either the old or the new server.

How long does a DNS change take to propagate?

If you lowered the TTL of your A and MX records to 300 seconds in advance, most visitors move to the new server quickly. A nameserver change depends on the domain extension and can take longer.

Will I lose email during the migration?

Not if you create the accounts with the same names on the new server, copy messages over IMAP and run a second sync 1-2 days after the DNS change.

When should I cancel my old hosting?

Cancel after DNS propagation is complete and the second email sync is done, usually about a week after the switch. Download one last full backup before canceling.

Can I upload a cPanel full backup to my new host myself?

A full account backup is restored through WHM, so it is usually done by the provider's support team. You can upload home directory and database backups yourself from cPanel.

Do I also need to transfer my domain to the new provider?

No. To move your hosting, you only need to point your DNS records or nameservers to the new server; a domain transfer is a separate, optional process.

For this guide

Recommended plans

cPanel and business hosting plans with NVMe storage, LiteSpeed Web Server and free SSL bring your sites, databases and email accounts together in one panel, giving you a solid destination for a zero-downtime migration.

SA-CP-1

cPanel
Recommended

20 GB NVMe disk

$0.39/mo

+VAT

  • Memory1 GB
  • LocationIstanbul
  • 1 Hosted Domains
  • 50 GB Traffic
  • 5 Email Account Limit
  • 2 Databases

SA-CP-2

cPanel

40 GB NVMe disk

$0.69/mo

+VAT

  • Processor2 cores
  • Memory2 GB
  • LocationIstanbul
  • 1 Hosted Domains
  • 100 GB Traffic
  • 10 Email Account Limit
  • 5 Databases

SA-CP-3

cPanel

60 GB NVMe disk

$0.98/mo

+VAT

  • Processor3 cores
  • Memory3 GB
  • LocationIstanbul
  • 1 Hosted Domains
  • 200 GB Traffic
  • 25 Email Account Limit
  • 10 Databases

Web Hosting — all plans Business Hosting — tüm paketler

Need help with setup?

Send questions about your service in a support ticket, and our technical team will walk you through it step by step.