This howto will explain how to move WordPress from one domain or server to another with about 5 minutes worth of work.

Applicable to Centos Versions:

  • Centos 5.x
  • Centos 6.x

Requirements

Explanation of requirements.

  1. Admin or root access to the old or existing website, database, database dump and files.
  2. Admin or root access to the new server.
  3. A basic understanding of Linux, Apache httpd, Mysql and WordPress.

Doing the Work

This howto assumes your domain name already resolves to the new server and you’ve already uploaded the core WordPress files, custom themes and any plugins in to the proper httpd docroot.

  1. Take a mysqldump of the database to be moved and save it locally.
  2. Change the old WordPress Address (URL) and Site Address (URL) in the database using sed.
  3. Copy the document root of the site
  4. Or, from the WordPress admin, with an admin account, use the following plugin from the WordPress plugins repository:
  5. Edit wp-config.php

Troubleshooting / How To Test

Explanation troubleshooting basics and expectations.

  1. Take a good look at the steps above and make sure you’ve followed them in precise order.

Common problems and fixes

Disclaimer

We test this stuff on our own machines, really we do. But you may run into problems, if you do, come to #centoshelp or #wordpress on irc.freenode.net

Added Reading

Last Modified: 11 May, 2014 at 00:03:07