How To Install Wordpress On Microsoft Azure Web Application
Microsoft Azure is all in one platform that blogger can do to build an awesome blog. This time, I am going to show an easy way to install wordpress on microsoft azure. It does not need to set up apache, php and mysql. As all requirements are ready to use, follow these step by step to get wordpress up and running not more than 30 minutes.
1. Go to https://portal.azure.com and log in with valid username and password. If do not have one, then sign up.
2. Click on "more services" and type "marketplace" on filter section. Click on "marketplace" menu.
3. Find wordpress application and click on it.
4. Pick a name for the application, in this case, I use mytestblog. The name of application should be then mytestblog.azurewebsites.net. Next step is to set up for the billing subscription and the resource group.
5. Set up database server name, database username, database password, mysql version and database name for storing the data. It is available two version of mysql, 5.6 and 5.7. Choosing the latest version of mysql 5.7 will get the latest features of mysql.
6. Set up pricing tier for mysql. Standard will be sufficient for running low traffic blog wordpress.
7. Start to install wordpress by clicking on "create" button. Wait until deployment of the application complete for about 2 minutes.
8. Open a browser and access the application name by type it on the browser. In this case, it is mytestblog.azurewebsites.net. If all goes well, the wordpress installation will proceed. Click continue.
9. Fill database name, database username, database password and database host with a database that has been set up before. Change "Table Prefix" of the database if you like. All database information can be found at application settings.
10. Pick up a unique username, and use the secure autogenerated password provided by wordpress. Do not use admin as the username, use another name like MyuniqueUsername839777 as an example. Fill "your email" with your valid email.
11. Hit "install wordpress", then click the "Run The Installation".
12. Now, lets login to wordpress dashboard. And the wordpress is outdated, then click on "Please update now". Update wordpress software will take not more than one minute. If others need an update, like plugin and themes, just hit update for each plugin or theme. Now the journey of blogging can begin. You can add a plugin, change a theme, or any other else that wordpress can do.
It is very easy to access a database. I am using the mysql workbench to access the database. To obtain mysql workbench, go to google and type "download mysql workbench" and download it.
Here is step by step access database using mysql workbench :
1. Open mysql workbench and navigate to database menu. Click on "connect to database" menu.
2. Setup database connection, so it will look like this :
Then hit Ok. If a pop up appears asking for a password, fill with database password used by wordpress installation.
3. If all goes well, you can login into database dashboard and can do anything that mysql workbench can do.
It is easy to access wordpress files using ftp. Follow these steps :
1. Download ftp software, use WinSCP or FileZilla.
2. It will require ftp hostname, ftp username and ftp password to access wordpress files. To get those items, go to app services and click on wordpress application we set early. Then click on "Get Publish Profile". I highlight ftp hostname, ftp username and ftp password as per the screenshot below.
3. Setup ftp connection.
4. If all goes well, you can see all wordpress files.
It is time to point a domain to a wordpress blog. To do this, follow these steps :
1. Create A and W record that point to ip address of web application. If your domain registrar has DNS feature, it is easy to do this. Make sure your DNS configuration as per the screenshot below.
2. Validate domain by hit "validate" button. To validate domain, it is going to take time, maybe for about 10 minutes or less. Wait until domain validation is complete.
3. Login to wordpress blog, then navigate to settings. Change "Wordpress Address(URL)" and "Site Address (URL)" to "mysuperdomain.com".
4. The url of "mytestblog.azurewebsites.net" should be redirected to "mysuperdomain.com".
1. To backup wordpress blog and database, click "Backups".
2. Set up backup schedule and storage to backup files. It may need to create a storage account. The blob storage could be sufficient.
Pro And Cons
a. It is easy to setup, even for a beginner can do.
b. Easy to back up.
a. It is expensive. It needs about $70 for one smoothly wordpress blog.
b. It is going to need a more complicated setup for high traffic blog.
Using microsoft azure to host wordpress blog is very easy. The most problem, the cost is too expensive. We can go to another hosting provider, like wpengine, kinsta for an alternative for high traffic blog. For low traffic, using shared hosting would be sufficient enough.