For those of you celebrating today, I would like to wish you happy “Thanksgiving”! Even though in Singapore we don’t celebrate Thanksgiving, we express our gratitude to all great things happened in our life! Today I am going to cover what I have been doing for these few days, which are
Moving WordPress To My New Host!
Why Moving WordPress?
Well, I wish I can just leave some sites on my old server. However, things are not running smooth with my old server and the server was down for 11 times during the past 3 days. Each down period is around 5-25 minutes. This is really annoying as quite a few of my niche sites are still with the old server. In another words, that means loss of income and risk to my niche sites due to unstable server issue.
Just in case you are wondering how I track my server up/down time, I use a free service called Uptime Robot, which allowed me to add up to 50 sites and every website is monitored in 5 minutes interval. Whenever you site is down, it will send out an email to inform you instantly once it detects. This is a really handy service to keep an eye on the server health of all your sites. Besides, if you keep receiving down time notification about your sites, you know there is something on your server. This is a nice way to track the server’s performance despite how reliable (i.e. 99.9% up time) they claimed to be.
How To Move WordPress To New Host?
The process is not very tedious but you do need to be careful on each time to ensure your data is safe. I am going to show you step by step how you can move your WordPress site to new host. This assumes that your domain is still the same, only moving your WordPress to a new server. There are actually several ways to do that and which are documented in the WordPress official site. However, I don’t really understand every single method as I am not very tech savvy. So, I only show you what I have done to successfully migrate my WordPress to new host.
Before that, I highly encourage you to back up your database regularly, i.e. one per day or once per week, depending on how frequent you update your post. You can use plugin such as WordPress Database Backup to help you schedule the backup of your WordPress Database. I have scheduled to backup once per week and automatically sent to my email so that I always have a copy of my backup WordPress database every week. All right, enough said, here we go for the step to move WordPress to New Host!
Step 1: Download your backup sql WordPress database
You can download your backup WordPress database from your email. This is done by using the plugin – WordPress Database Backup. You also have an option to backup the database immediately and send to your email or local drive with the plugin. Keep your Backup WordPress Database (it is a zip file with a .gz extension, i.e. xxxxxxxxxxxx.sql.gz) in your hard drive.
Step 2: Use ftp to download all the file within your WordPress folder
You will need a ftp software such as FileZilla to download all files within your WordPress Sites. For example, if the your domain is www.YourDomain.com, you should have a folder call YourDomain.com inside the ftp. Just right click and select download and you will start download all the files.
As you can see below, my blog MingJongTey.com is within the public_html folder. All I need to do is to right click and download all the files inside the folder to my hard drive.
Step 3: Create a New Database in your New Host
Do you remember that we have back up our WordPress Database in the first step? Now, we will need to create a new database in the new host and import the backup database. This can be easily done in Cpanel.
1. Inside your Cpanel, under Databases, choose MySQL Database Wizard.
2.Follow the steps to create your database name, user name and password. Do copy down all these detail in a notepad. In the last step, select all privileges and click next step. Now, you are done with creating a new database.
Step 4: Import The Old Database To New Database You Just Created
1. In your Cpanel, under Databases, choose phpMyAdmin. It will open up a new Window Tab.
2. On the left hand side, choose the Database name you just created in Step 3.
3. Select Import, Browse your computer. Browse the backup WordPress database (.gz file) you downloaded in Step 1.
4. Click Go.
Wait for a few minutes (depending on the file size of the Database) to let the process finish.
Step 5: Add on Domain
In your Cpanel, Domains, Click “Addon Domain”. Add your domain of the blog you are moving to your new server.
Step 6: Edit Wp-Config.php Within the Domain Folder
In Step 2, you have downloaded all files within the WordPress Folder. You will find a file called “Wp-Config.php” under the root. Open “Wp-Config.php” with a notepad. Change the Database Name, Database Username and Database Password as you setup in Step 3. After that, save the file and close it.
Step 7: Upload All Files Downloaded In Step 2 To New Server
Now, use FileZilla to login to your new server. Upload all the files you just downloaded in Step 2 to the domain folder you created in Step 5. Wait until it is done. Depending on the file size and your connection speed, you might need to wait for a few minutes to hours.
Step 8 (Finally): Point your DNS to your New Hosting in Domain Registrar
Login to your Domain Registrar (i.e. Name Cheap or Go Daddy) and select the domain you would like to move to new server. After that, Click on “Domain Name Server Setup” and change the name server details to your new server.
Congratulation! Now you should have successfully move your WordPress to New Server! Wait for a few hours (up to 24 hours) before the changes to take effect.
This is kinda lengthy process, especially the downloading and uploading part for me. Feel free to share your experience with moving WordPress to a new server by leaving a comment below! Always love to learn a better yet simple solution