Moving a Wordpress Installation
Oct 30th, 2007 by Xangis
Today survivingwithoutajob.com was moved to another server. It is a Wordpress-based blog and I was afraid that moving it would be a nightmare. It turned out not to be.
I started by downloading the entire directory structure of the site to my local machine. Once that was done, I logged into my old server’s control panel and ran the PHPMyAdmin database administration tool (most hosting providers seem to make this available to their users). I exported the whole database for the site to an SQL query and saved it to my local machine.
After that, I logged into the new server and started uploading the directory structure I downloaded earlier.
While that was going, I logged into the hosting provider’s control panel, created a new database and database user to store the new installation, and granted the user permissions to the new database.
After creating the user and database, I logged into PHPMyAdmin on the new server and imported the SQL query that I had exported the original database to without any problems.
By this time, the file transfer was just finishing up. The last thing left to do from the Wordpress configuration standpoint was to change the database connection information. To do this I opened up the wp-config.php file in the root directory of my site and changed the database connection info from the old to the new.
After changing my DNS server info to point to the new server, the move was complete. Painless, with no downtime. I hope moving a Drupal installation is this easy.
Leave a Reply
You must be logged in to post a comment.