1. Overview
  2. Before you start
  3. Steps (1 of 2)
  4. Steps (2 of 2)
  5. Things to check
  6. Questions
  7. More questions
  8. Next
Help / WordPress

Move an existing WordPress site into your hosting.

Copy the files, copy the database, edit one settings file, test, and only then point your domain.

Control panel with sliders, dials and buttons
Before you start

Gather two things.

A WordPress site has two parts: its files and its database. You need a copy of each from your current host. Make your own copies and keep them until the move is finished. Also read the moving a website checklist. Keep the old site running until the new one works. Moving from another host? If your current host uses cPanel, Farrington Hosting moves one existing website, with its email and databases, to your new account at no charge. Coming from somewhere else? Ask before you order and we will tell you what is involved.

Steps (1 of 2)

Moving it, step by step.

  1. At your current host, make a zip of your whole site folder and download it. Then export the database as an .sql file, usually with phpMyAdmin.
  2. In cPanel, open File Manager, go to public_html, upload the zip, and extract it. See upload your website files.
  3. Open MySQL Database Wizard. Create a new database and user, give the user All Privileges, and save the details.
  4. Open phpMyAdmin from the Databases section. Select the new database, choose Import, pick your .sql file, and run it.
Steps (2 of 2)

Step by step, continued.

  1. In File Manager, right-click wp-config.php and choose Edit. Change the database name, user, and password to the new ones. Keep the host as localhost unless your old setup differs.
  2. Save the file. To test before pointing your domain, you can edit your computer's hosts file to map your domain to the shared IP address shown in cPanel, then undo it afterward.
  3. When it looks right, point your domain. Create mailboxes first, since mail will move too.
  4. After the change spreads, sign in to WordPress, open Settings, Permalinks, and select Save, to refresh the links.
Glowing fibre optic strands
Things to check

After the move.

Click through the main pages, the contact form, and a login. Check that images load. If pages show an error, look at the database details in wp-config.php first. If the site address changed, update it in WordPress, Settings, General. Cancel the old host only when everything works.

FAQ (1 of 2)

Common questions.

How do I move a WordPress site to a new host?

Copy the site files and export the database from the old host. Upload the files to public_html, import the database into a new one in cPanel, and edit wp-config.php with the new database details. Test the site, then change your domain's nameservers.

Can you move my website for me?

Yes. If your current host uses cPanel, Farrington Hosting moves one existing website, with its email and databases, to your new account at no charge. If your site is somewhere else, ask before you order and we will tell you what is involved.

FAQ (2 of 2)

More questions.

What is wp-config.php?

It is the WordPress file that stores the database name, username, password, and host. After a move, those details must match the database you created in cPanel. If they do not, WordPress shows an error establishing a database connection.

Should I point my domain before or after moving the files?

After. Copy files and database, test the site, then point your domain. Create your mailboxes first so email keeps working. Leave the old site running until the new one is confirmed.

Next step

Stuck on a setting? Open a ticket or call (828) 770-9428.