How To Move WordPress Blog To Another Server And/Or Change Domain Name

Log in to Old Server (Cpanel):
go to File Manager:
compress folder that you are moving (.zip)
download the compressed (.zip) file to computer
delete the compressed (.zip) file from this server

go to phpMyAdmin:
find the corresponding database (click on it on left sidebar)
click on Export tab
click “Select All” to export all files
make sure format is SQL
*leave other values as default
click on GO button
save file to computer

Exit Old Server

*****************
Important: make a copy of both the compressed file and SQL file on your computer. Always work on copies only.
*****************

Log in to New Server (Cpanel)
go to File Manager –> public_html
upload the compressed (.zip) file
extract the file (make sure all files and folders are in Web ROOT or an appropriate folder if moving to subdomain or directory)
delete the compressed (.zip) file

Go To Control Panel –> My SQL Databases
Create Database
Create User — make sure to copy down Password
Give all Privileges to User
Link User to Database

Go to File Manager
Edit wp_config.php

Edit:
New Database Name
Database User
Database Password

SAVE changes

**************

Edit the copy of SQL file saved to computer earlier.
Use a Text Editor to Search and Replace all paths then SAVE file.

*If changing domain names: Search and Replace old domain and change to new one.
*Do the same if changing email address.

*****************

Return to Cpanel of New Server:

Go to phpMyAdmin
Select the corresponding Database created earlier (click on the Database link on left sidebar)
Click Import tab
Upload the editted SQL file from computer
Make sure character set is the same (usually utf8)
Make sure format is SQL
Leave other values as default

Click GO button

****************************

Once upload of SQL file is completed, check if your site is working by going to http://IP ADDRESS/~login ID/ on your browser

You should be able to see your site. Time to change Nameservers.

To check if your Nameservers have been changed successfully, use Command Prompt on your computer (the black box) and type:

ping (domain name)
example: ping journal.cyberpartygal.com

Note: Nameservers will need 24 to 48 hours to completely propagate.

After changing Nameservers, go to WordPress dashboard and reSAVE Permalinks structure.
If Permalinks still do not work, you may need to delete .htaccess from your server. Back up this file before deleting.
If further troubleshooting is required, delete your Plugins folder or go back to default theme.
Once everything looks fine, regenerate Sitemap.

Go to Google Webmaster Tools to resubmit Sitemap.

After a day or two, go to Webmaster Tools to check for crawl errors.

Be Sociable, Share!

Leave a Reply

Your email address will not be published. Required fields are marked *