Move a WordPress Website to Another Server

Move a WordPress Website to Another Server

I needed to move a WordPress site to another server the other day to improve performance, so I thought I’d write down the process. Here are the 7 steps that I follow every time:
  1. Access your domain manager and add an A Record to your DNS settings – I recommend ‘temp’. So, if your domain is example.com, you’ll add temp.example.com. To complete this step, you’ll need to know the IP address of the new server.
  2. Associate the new ‘temp’ version of your domain with the new server (may have to wait an hour or so for propagation to occur).
  3. Install WordPress on the new server to the ‘temp’ version of your domain
  4. Make a backup copy of your database (a SQL file)
  5. Upload the SQL file to the _db_backups folder on the new server (at the root level)
  6. Restore the database associated with the ‘temp’ version of your domain
  7. you may need to open your wp-config.php file and change the database references to match the newly restored database.

define(‘DB_NAME’, ‘your database name here’);

/** MySQL database username */

define(‘DB_USER’, ‘your database name here’);

/** MySQL database password */

define(‘DB_PASSWORD’, ‘your database password here’);

/** MySQL hostname */

define(‘DB_HOST’, ‘your database hostname here – it’s usually longer than the username’);

  1. Try your site at temp.example.com – if it works proceed. If not, you may have to call your hosting provider for assistance.
  2. Login to the DNS manager for your domain and change the A Record for the primary domain (example.com) to point the ‘@’ record to the new IP address.
  3. Delete the ‘temp’ record.
  4. Login to the Hosting Admin for your old server and remove example.com from the associated domains
  5. login to the Hosting Admin for the new server (you may have to wait an hour or so to do this step) and associate example.com with the server. That’s it – wait for your domain change to propogate – you may see weird stuff for a couple of hours – be patient.

About the Author:

He has over 20 years of experience managing and leading the Ecommerce efforts of small, medium and large companies. He has held sales, sales management, marketing, operations, IS/IT, legal and executive management positions in start-up to multi-billion dollar organizations. He has also served as an adjunct professor of Ecommerce for the MBA program of the University of Missouri (where he received an MBA concentrated in Direct Marketing in 1989). He led the Ecommerce initiative for Sprint PCS (PCS) and Sprint (FON) as Vice President of Ecommerce. He led the integrated marketing efforts for Insight (NSIT) as Senior Vice President of Marketing and Ecommerce. Today, he is the CEO and Founder of Aidan Taylor Marketing - a marketing agency for small businesses (between $1 million and $20 million in annual revenue).

Leave A Comment