How to migrate your website from another host to EgWeb (cPanel to cPanel)
This guide shows you how to migrate your website from another host to EgWeb when both hosts use cPanel. If you follow the steps in order, your site and email keep working during the move and visitors never see a broken page. The whole idea is simple: copy everything first, test it on EgWeb, and only then point the domain to the new server.
Before you start
- Order your hosting plan from EgWeb (see How to order a service) and keep the welcome email with your new cPanel login and server details.
- Do not cancel your old hosting yet. Keep it running until the move is finished and tested.
- Make sure the new plan has enough disk space for your site files, databases and mailboxes.
- If you are not sure how to do any step, ask our support team. Tell us the old host and the domain, and we will tell you whether we can do the transfer for you.
Step 1: Take a full backup from the old host
- Log in to the cPanel of your old host.
- Open Backup (in the Files section).
- Under Full Backup, click Download a Full Account Backup.
- Choose Home Directory as the destination, enter your email for the notification, and generate the backup.
- When the email arrives, download the file. Its name looks like
backup-date_username.tar.gz.
A full backup includes your files, databases, email accounts and messages, DNS zone and most cPanel settings.
Step 2: Restore the backup on EgWeb
A full cPanel backup can only be restored from WHM, which is on the server side. Open a support ticket, attach a download link to the backup (or upload it to your new account by FTP or File Manager) and ask us to restore it. If your old host only allows partial backups, you can restore those yourself; see How to back up and restore your website.
Step 3: Lower the DNS TTL (optional but helpful)
At least a day before the switch, lower the TTL of your domain's A records at the current DNS provider to something like 300 seconds. This makes the final switch take effect faster. Read more in Why DNS changes take time (DNS propagation).
Step 4: Test the site on EgWeb before switching
- Find your new server IP in the welcome email or in cPanel (General Information on the right side).
- Edit the
hostsfile on your computer to point your domain to the new IP. On Windows it isC:\Windows\System32\drivers\etc\hosts; on Mac and Linux it is/etc/hosts. Add a line like:
203.0.113.10 example.com www.example.com
Replace the IP and domain with your own. Now your browser opens the copy on EgWeb while everyone else still sees the old host. Check the home page, contact forms, login pages, the shop checkout and images. Remove the line when you finish testing.
Step 5: Switch the domain
- Change your domain's nameservers to the EgWeb nameservers from your welcome email, or update the A records if you keep DNS somewhere else (for example Cloudflare). See How to point your domain to your hosting.
- Wait for propagation. It is usually quick, but it can take up to 24–48 hours in some networks.
- Recreate the email accounts on your phones and computers if the mail server name changed.
Step 6: Final sync and cleanup
- If your site received new orders, comments or emails on the old host during the switch, copy them over (or ask us to run a final sync of the mailboxes).
- Check that the free SSL certificate was issued on the new server.
- Keep the old hosting for a few more days, then cancel it once you are sure everything is on EgWeb.
Common problems
- "Error establishing a database connection" after the move: the database name, user or password in your configuration file (for WordPress,
wp-config.php) does not match the new account. cPanel adds your username as a prefix to database names. - Emails go missing: some messages arrived at the old server before DNS updated. Log in to the old webmail and move them, or ask for a mailbox sync.
- Site shows the old version: your computer or network still has the old DNS cached, or the hosts file line is still there.
Frequently asked questions
Will my site go down during the migration?
No, if you follow the order above. The old host keeps serving visitors until you change DNS, and by then the copy on EgWeb is already tested.
Can EgWeb do the migration for me?
Yes, our team can help with cPanel to cPanel transfers. Open a ticket with the details and we will confirm what is needed for your plan.
My old host does not use cPanel. What now?
You can still move manually: download the files by FTP, export the databases, then upload them to EgWeb and create the email accounts again. Contact us and we will guide you.