How To Migrate A WordPress Blog To New Server
- Updated On 20/02/2016
- Author : Aman Arora @ Tech HowTo's Blog
- Topic : Featured • WordPress
- Short URL : https://hellboundbloggers.com/?p=25294
CONNECT WITH HBB ON SOCIAL MEDIA
It might be a tough job to migrate a wordpress blog, if you are new to websites and blogging. I myself was really frustrated when I first had to migrate my blog to a new server. But when done I was like its a really easy job to do :). There are fews things that you have to keep in mind while doing a migrate. In this article I will tell you what things you must have before starting the migrating process i.e backups and will guide you about the process in 3 easy to follow steps. Will try to include images.
Note : You can also do a clean new wordpress install and then import your database and other files like theme and plugins but the procedure I will be talking about is much more easier and less complecated.
Things you must have before migrating
- New servers control panel access
- Database for your blog (Name can be different from the previous one, you can get this by using the export function of phpmyadmin)
- Database login details and hostname (hostname generally localhost)
- Database backup
- Home directory files backup
Now lets get started with the process.
Step 1 : Upload home directory files to new server.
For doing this I would say to archive all you files into a zip file and upload it to the your cpanel and then use cpanel’s extract feature to extract it. After extracting there will be a new folder with the name of archive just open that folder select all the files and move then to the root or one level up.
Step 2 : Open the new empty database using phpmyadmin and use its import function to import your database.
Go to your cpanel and find phpmyadmin it will be under databases column. Click on it, it will open up in a new tab. After that from the sidebar choose you newly created database. After that there will be a tab saying import click on it to import your database.
You are almost done now.
Step 3 : Change the database login details in wp-config file
Browse to wp-config.php file in the file manager, select it and click on edit. There you have to change 4 fields.
hostname, database username, database password, database name.
Code in the file will look something like this
// ** MySQL settings - You can get this info from your web host ** //
/** The name of the database for WordPress */
define('DB_NAME', 'new database name');
/** MySQL database username */
define('DB_USER', 'new database username');
/** MySQL database password */
define('DB_PASSWORD', 'new database password');
/** MySQL hostname */
There you go, you now just need to change your nameservers to shift your blog to the new server. You might loose some comments if your blog is too active because it usually takes 4-5 hrs for nameserver propagation (they say upto 48 hrs).
Want to discuss your queries and interact with experts? You can connect with HellBound Bloggers (HBB) Facebook group for free!
Join HellBound Bloggers (HBB) and get Instant Updates. We'll also notify you with Great Deals, Discounts and other Interesting Tips. We won't SPAM or SHARE your Email Address with anyone.
YOU CAN ALSO SEARCH FOR YOUR DESIRED TOPICS:
Thank you for reading! We welcome and appreciate your comments, but at the same time, make sure you are adding something valuable to this article. If you have any serious queries, suggestions or anything related to this article, feel free to share them, we really appreciate that.
But, if your blog comments are a random "Thank you", "Useful Post", or anything that doesn't actually upscale the article, then we'll be removing them and it won't be appeared below. Thanks for understanding and thanks for connecting with us. If you want to give us any feedback or report any errors, you can kindly contact us and we'll revert back soon.
- Facebook Comments
26 CommentsFacebook Comments