6

Host Wordpress In Microsoft Azure With App Service (PaaS Hosting) | Build5Nines

 1 year ago
source link: https://build5nines.com/host-wordpress-in-microsoft-azure-with-app-service-paas-hosting/
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.

Host WordPress in Microsoft Azure with App Service (PaaS hosting)

By Chris Pietschmann | February 25, 2023 - 10:59 PM EST (03:59 UTC)Category: Infrastructure & Compute


Host WordPress in Microsoft Azure with App Service (PaaS hosting)

WordPress is the most popular open-source Content Management System (CMS) in the world. It support customization, plugins, themes, and many other features. It’s a great tool to choose for hosting a website, blog, or other types of websites. Most commonly it’s installed and hosted using a Virtual Machine; which can also be done within the Microsoft Azure cloud. However, WordPress can also be hosted using a Platform as a Service (PaaS) hosting option using Azure App Service. This will eliminate the need to manage any Virtual Machines / Servers, enabling you to more easily and securely host WordPress in Microsoft Azure.

WordPress continues to grow in usages to host websites on the Internet. When it used to be primarily used by bloggers, it has grown to be used by all types of businesses; such as e-commerce, news, online stores, and more.

WordPress is used to host 43.2% of all websites on the Internet; this is up from 39.5% in 2021.

W3Techs, 2022

Let’s take a look at the steps necessary to get setup hosting WordPress using Azure App Service!

Benefits of Hosting WordPress in Azure App Service

Using Azure App Service to host WordPress sites can provide several benefits

The following is a highlight of the benefits of hosting WordPress using Azure App Service:

  1. Scalability
    Azure App Service allows for easy scaling of resources to handle increased traffic or usage.
  2. High availability
    Azure App Service provides built-in mechanisms for ensuring high availability of your WordPress site, such as automatic failover.
  3. Easy deployment
    Azure App Service provides integration with popular source control providers, such as GitHub and Bitbucket, making it easy to deploy and manage updates to your WordPress site.
  4. Security
    Azure App Service includes built-in security features, such as SSL support and Web Application Firewall (WAF) to protect your site from common web vulnerabilities and attacks.
  5. Monitoring and troubleshooting
    Azure App Service provides monitoring and troubleshooting tools to help you keep track of your site’s performance and identify and resolve issues quickly.
  6. Cost-effective
    Azure App Service allows you to pay only for the resources you use, making it a cost-effective option for hosting your WordPress site.

Install WordPress in Azure App Service

Using Azure App Service to host a WordPress website can be a great way to reduce the overall maintenance as compared to using a virtual machine for hosting. This will enable you to worry less about the hosting of WordPress, and give you more time to focus on your business, content, or other priorities of your website instead.

Let’s look at the steps to get WordPress installed using Azure App Service!

Step 1: Sign up for Microsoft Azure

You need to have an active Microsoft Azure Subscription in order to create cloud resources, such as setting up Azure App Service to host a WordPress web site.

You can sign up for and create a new Azure Subscription at https://azure.microsoft.com

Step 2: Choose WordPress on App Service in Azure Marketplace

Within the Azure Portal, click on the + Create a resource option on the homepage, then search the Azure Marketplace for WordPress on App Service. There are WordPress Virtual Machine options in the marketplace as well, be sure to choose the WordPress on App Service option from Microsoft to follow the steps in this article.

Host Wordpress in Microsoft Azure with App Service (PaaS hosting) 7

WordPress on App Service in Azure Marketplace search

Click on the WordPress on App Service option and then click Create to get started.

Step 3: Create WordPress on App Service

On the Create WordPress on App Service screen, you need to choose the following required options to configure things before the resource can be provisioned in your Azure Subscription.

These are the options to fill in:

  • Resource group: Create a new resource group to organize the resources for your WordPress website to be organized within your Azure Subscription. Click Create new and type in a name that you want here.
  • Region: Choose the Azure Region (basically the datacenter) to host your WordPress website within Microsoft Azure.
  • Name: Set a name for the default DNS name that is a subdomain of the .azurewebsites.net domain that will host the WordPress site initially. Keep in mind you can set a custom domain on the website later.
  • Hosting plan: Choose a pricing tier, or hosting plan, to use for hosting your WordPress website within Azure App Service.
  • Admin email: Set the administrator email address for your WordPress setup.
  • Admin username & password: Set the username and password to set up for the WordPress administrator.

Next, there is a tab for some Advanced options that can be configured. If you don’t know what these are, you can just leave the defaults.

Host Wordpress in Microsoft Azure with App Service (PaaS hosting) 8

Create WordPress on App Service screen

Once the configuration for the WordPress on App Service resources has be set, click Review + create, then Create, to initiate the deployment of the resources for your new WordPress website hosted on Azure App Service.

Once the deployment has completed, navigate to the new Resource Group that was created with all the new Azure resources for hosting your WordPress website on Azure App Service.

Here you will see multiple Azure resources that were provisioned and configured to host your new WordPress website. These will include a MySQL database for the database backend of WordPress, and the App Service resource that hosts the WordPress web application, among a few other resources created to set everything up.

Host Wordpress in Microsoft Azure with App Service (PaaS hosting) 9

WordPress on App Service resources in Azure

Clicking on and navigating to the App Service resource will allow you to see the default domain name and other configuration options for the WordPress website. This default domain name can be used to access and use the WordPress website without needing to configure any custom domains. Keep in mind that a custom domain can be configured later as needed.

Host Wordpress in Microsoft Azure with App Service (PaaS hosting) 10

App Service Default domain highlighted

Step 4: Login to the WordPress website

Navigating to the Default domain for the WordPress website in your web browser will enable you to access the website. Also, accessing the usual WordPress Admin URL at /wp-admin on the website will enable you to login. Initially, you will be able to login as the WordPress Administrator using the Admin username and password that was set when deploying the WordPress on App Service website. From there you will be able to configure and manage your new WordPress website as usual.

Host Wordpress in Microsoft Azure with App Service (PaaS hosting) 11

WordPress login page

Configure your Custom Domain on the WordPress website

While you could host your website with the default domain name (subdomain of .azurewebsites.net) of the Azure App Service, it’s really best practice to purchase a domain name from a registrar to host your WordPress website with instead.

To set up your own custom domain to be used with your WordPress website, then navigate to the Custom domains pane of the App Service resource that was created for your WordPress website. From here you can find the information you need, and a link to instructions on how to configure the custom domain for your WordPress website to be hosted at.

Host Wordpress in Microsoft Azure with App Service (PaaS hosting) 12

App Service Custom domains pane

When configuring a custom domain, keep in mind that you will also need to configure an SSL / TLS certificate for the custom domain to ensure your website is fully secured as well. You don’t want to skip this step when configuring a custom domain.

Happy blogging and/or website hosting!

About the Author

d565ce4d3fdf8007e1d707362cca9465?s=128&d=identicon&r=gMicrosoft MVP

Chris Pietschmann

Chris Pietschmann is a Microsoft MVP (Azure & IoT) and HashiCorp Ambassador (2021) with 20+ years of experience designing and building Cloud & Enterprise systems. He has worked with companies of all sizes from startups to Fortune 100. He is also a Microsoft Certified Azure Solutions Architect and developer, a Microsoft Certified Trainer (MCT), and Cloud Advocate. He has a passion for technology and sharing what he learns with others to help enable them to learn faster and be more productive.
HashiCorp Ambassador (2021)Microsoft Certified Trainer (MCT)Microsoft Certified: Azure Solutions Architect


About Joyk


Aggregate valuable and interesting links.
Joyk means Joy of geeK