
Tutorial | How To Migrate a WordPress Website
Moving you’re Blog To a new server? Need to know how to transfer all of your files without losing all of your database information such as comments and posts? Then look no farther, this article will be the answer to your prayers.
For this article, site A will be your current site, and site B will be the new site. Here’s what you will need to start.
FTP access to your servers, both on site A and site B. I recommend FireFTP for Firefox.
Access to your MySQL database, phpMyAdmin.
PART A:
First we need to download a file that holds the text of your site, such as posts and pages
Log into your WordPress admin panel on site A
Under tools, select Export
Download Export File
PART B:
Next, you need to make a complete backup of your site. You can get away with just backing up the Themes, Uploads and Plugin folders, but I prefer a full backup.
FTP into site A
Download everything into a folder on your computer.
Locate the wp-config.php file that you download with the rest of your site and delete it.
PART C:
Now you need to export the MySQL database. Using phpMyAdmin, access the underlying WordPress database for Site A
Log into your admin panel of the server, or however you access phpMyAdmin. For anyone using cPanel, this would be located at http://yoursitedomain.com:2082
Open up phpMyAdmin and use the export tool to download a SQL export file.
We now have to edit that file. Open it up in a text editor (I recommend notepad++) and replace every reference to siteA.com and change to siteB.com. This can be quickly accomplished with notepadd++ by going to Search -> Replace. Once you entered the correct replacement data, select replace all (it’s a large file so and could take up to 30 seconds to finish).
PART D:
Now you need to set up site B.
Create a new database for site B
Using phpMyAdmin, select the new database then use the import tool to upload the mySQL file you just downloaded and edited in PART C.
Now FTP into site B and upload the entire backup you made in PART B. If you only backed up the Themes, Uploads, and Plugins folders, then install a fresh version of WordPress first, then upload those folders. If you backed up the entire site as I recommended, then just upload everything.
PART E:
We’re almost done!
Navigate the the url of site B and because I had you delete the wp-config.php file, you should be confronted with a WordPress input fields.
Enter the name of your new database, username, password and leave the other fields default. Click save and that’s it! Remember that the database and username is appended to the account name in cPanel. So if your account is called test and your database is called wp with a username of Dylan, then the database entry and username entry would be test_wp and test_Dylan respectively.
Disclaimer: All data and information provided on this site is for informational purposes only.The author of this article,
Design By Pixel
, and
Harmonic Design
are not responsible for any loss of data, corruption, or harm caused by any information posted.
Cakephp Blog Tutorial Part 4 – Using the Read and Html Link Methods
Related Articles
No user responded in this post
Leave A Reply