In this blog series I’m going to show you how I migrated my WordPress blog to Azure. I’m currently using HostGator and in the following steps you’ll see how I used their cPanel for all sorts of tasks, but I’m sure the same can be accomplished with any cPanel or any other hosting provider.
There are many ways you can achieve this, many ways to install WordPress in azure, using MySQL or other services… What you’ll see in this guide is what I chose based on the size of my blog and my needs. Feel free to explore any other options.
My WordPress blog is already running on Azure and it runs great!
Let me first describe my existing environment:
- Hosted on HostGator
- Platform/version WordPress 4.9.7
All sorts of plugins/themes installed
The platform on Azure:
- WordPress (on Windows, docker image)
- MySQL in App
Now that we have all the information, let’s get to work.
During the migration process I’m going to run 2 sites side-by-side. My blog will be running on HostGator as long as my Azure blog is in the process of installation. Depending on the size of your blog and your level of expertise, this can take a while.
First thing first, let’s run a full website backup. I’ve used my cPanel to create a full backup of my hosted server (I have several projects there). Also, I have connected to MySQL using workbench installed on my computer (you can get connection details from your hoster) and exported the entire DB to my local drive. My hoster (HostGator) provides access to phpMyAdmin online where you could also create a full export of your DB. Again, there are several ways you can achieve this, use any option you find suitable.
After accomplishing this, you should have a full backup of your entire website and your WordPress database.
In the next post I will cover how to create a new WordPress on Azure.