Home > Tips 'n' Tricks > How to: Move WordPress Blog from One Host to another

How to: Move WordPress Blog from One Host to another

January 21st, 2010 Leave a comment Go to comments

Here I am going to explain how I did it. I think it will be useful to you .

First Goto you current host and take a SQL Back up and download it to your computer from the option which is given on the Admin page of your WordPress blog. Now you have to backup your entire blog directory. For this just archive it using TAR. For moving it to your new host you may use SSH. ( will talk about it later). As of now just download the archived TAR file to your computer.

Now goto your new host. Goto PHPMyAdmin or any equivalent applications. We just have to import the database which we backed up from the old wordpress blog. In PHPMyAdmin goto import and upload the database you have. Now after the upload completes just goto your database manager and create a user and password for that user. Now add it to the newly added database( this is the database you have just finished importing using PHPMyAdmin).

PS: Take a note of the Username password and the name of the database We will be needing it.

Now You have to copy all the files from the old blog directory to your new host.For this upload the downloded TAR file from the old blog which have the entire blog directory, Now upload it to the new host. Extract it to the current directory.

If you have SSH in your new host, login to the SSH using any SSh Client and traverse to the public_html directory. Then using ftp get the TAR file from the old blog.

For getting this TAR file type

ftp <oldBlogAddress>



then type the username and the password.

After that type in mget <filename.tar> now the wait as the file is being downloaded to the new host from the old host. Then type

tar -xvvf <filename.tar> for uncompressing the tar file. Now the blog directory structure is recreated Now you can log out from the SSH.

Now edit the wp-config.php file in the root directory of your blog. in the username field type in the username you created for the database, which you might have noted if you are following my steps exactly as I said. Like this type in the new password and database by replacing the old ones.

Now your Blog in your new Host should work fine.

PS: If your web blog address is also changed(Like Domain Name Change) try changing “siteurl” and “home” accordingly in the database table “wp_options” (through phpMyAdmin or similar).

PS: Even if you have done everything as I said, you may still encounter problems. So as a Last resort try copying the .htaccess from the root of the old host to the root of the new host.

Reference: [WordPress Codex]

Categories: Tips 'n' Tricks Tags: , ,
  1. No comments yet.
  1. No trackbacks yet.