Contents
Moving a WordPress site to another host means copying three things: the files, the database, and the DNS record that decides which server your domain points to. Get the order right and visitors see no downtime and no email is lost. This guide covers the move in eight steps, from preparation to the DNS switch. If you are moving to Fiberserver, eligible cPanel accounts can use our free website migration; the steps below are for those who want to do it themselves or understand the process.
1. Take inventory
Write down what has to move: the size of the site files, the database name, the PHP version in use, email accounts on the domain, scheduled tasks (cron) and where the DNS records are managed. What goes wrong in most migrations is a forgotten mailbox or subdomain.
2. Lower the DNS TTL
A day or two before the move, lower the TTL of your domain's A record to 300 seconds. On the day you change DNS, visitors then reach the new server within minutes.
3. Take a backup
- cPanel to cPanel: Create a full account backup with the Backup tool in the old account. Files, databases and email accounts come in one archive.
- By hand: Download the site folder (especially
wp-content) with FTP or File Manager, and export the database from phpMyAdmin as an.sqlfile. - With a plugin: Migration plugins speed things up on small sites; on large sites you may hit file size limits.
4. Set up the files and database in the new account
- Create a new database and user in cPanel and give the user all privileges.
- Import the
.sqlfile in phpMyAdmin. - Upload the files to the
public_htmlfolder. - Update
DB_NAME,DB_USERandDB_PASSWORDinwp-config.phpwith the new details. On most hostsDB_HOSTstayslocalhost.
Set the PHP version to the same one as on the old server or to a newer, supported version; our PHP 8.2 end-of-life news lists which versions still receive updates.
5. Test without changing DNS
Add the new server's IP address together with your domain name to the hosts file on your computer. Only your computer opens the site from the new server; everyone else still sees the old one. Try the home page, the admin area, the contact form and, if you run a store, the cart and checkout. Remove the hosts line when you are done.
6. Prepare the email accounts
If your email lives in the hosting account, create the same addresses in the new account. A full account backup brings the mailboxes with their contents. If you move by hand, you can copy old mailboxes to the new ones over IMAP with a mail client. If your email is with another service, leave the MX records alone.
7. Point DNS and enable SSL
Change the A record of your domain to the new server IP, or change the nameservers. Once the domain points to the new server, the free SSL certificate can be issued; then open the site over HTTPS and check the padlock. To avoid a gap between the copy and new posts or orders, switch at the site's quietest hour and do not add content during the move.
8. Check after the switch
- Open Settings > Permalinks and save; this rebuilds the rewrite rules.
- Configure your cache plugin for the new server. On LiteSpeed servers, follow our LiteSpeed Cache settings guide.
- Test that form and order emails arrive.
- Keep the old hosting account for at least a week, so you can go back for a missing file or email.
Common errors
| Symptom | Likely cause | Fix |
|---|---|---|
| "Error establishing a database connection" | Wrong details in wp-config.php | Check the database name, user and password |
| Blank page or 500 error | PHP version or a missing PHP extension | Set the PHP version and extensions in cPanel |
| Images missing, no padlock | Old http addresses in the pages | Update the addresses to https |
| Email not arriving | MX record still on the old server, or mailbox not created | Check the MX record and the accounts |
| Admin area goes back to the old site | DNS has not propagated yet | Wait for the TTL, clear the browser cache |
If the domain name changes too
If you move the site to a new domain name, the old addresses in the database have to be replaced as well. Do not do this by hand: WordPress stores some settings in a special format, and a plain find-and-replace breaks those records. Use WP-CLI's wp search-replace command or a plugin built for it. If you also want to change the company your domain is registered with, see the domain transfer guide.
To host the site on a fast platform after the move, look at our WordPress hosting and cPanel web hosting plans, and ask our support team whether your account is eligible for migration.

Comments0
No Comments Yet
Be the first to share your thoughts.
Please sign in or sign up to leave a comment.