Create a WordPress website hosted on Azure
Tags: azure, tutorial, wordpress, webdev
Published: 2021-02-03 14:45:33

###### Originally published at [www.foteinisavvidou.codes](https://www.foteinisavvidou.codes/create-a-wordpress-website-hosted-on-azure/)

In this five-part tutorial, you will learn how to create and configure a WordPress website hosted on Microsoft Azure and connect a secure custom domain to it. In the first part of this tutorial series, you will learn how to create a new resource in Azure and install WordPress. To complete the exercise, you will need an Azure subscription.

We are going to create a WordPress website hosted on Azure in less than five minutes. Therefore, we won’t write any code and will use instead one of the WordPress applications from the Azure Marketplace.

### Create a WordPress website
[WordPress](https://wordpress.org/) is a free and open-source content management system. It provides powerful website building features that help you create and publish your websites easily. 
1. Sign in to [Azure Portal](https://portal.azure.com/), expand the left navigation panel and select **Create a resource**.
![Create a resource in Azure Portal](https://www.foteinisavvidou.codes/wp-content/uploads/2021/01/01-left-menu.png)
2. In the Azure Marketplace, search for **WordPress** and select the default WordPress option.
![WordPress in Azure Marketplace](https://www.foteinisavvidou.codes/wp-content/uploads/2021/01/02-search-wordpress.png)
3. Then click **Create** to build the app.
![Create WordPress app on Azure](https://www.foteinisavvidou.codes/wp-content/uploads/2021/01/03-wordpress-1024x593.png)
4. Configure the new WordPress app. Select:
    * App name: It should be unique and will be part of the domain name (app-name&#46;azurewebsites&#46;net).
    * Subscription.
    * Resource Group: Click **Create new** and enter the name of the new resource group.
    * Database Provider: We are going to use **Azure Database for MySQL.**

    ![Configure WordPress app](https://www.foteinisavvidou.codes/wp-content/uploads/2021/01/04-settings-1024x447.jpg)
5. The next step is to configure the App Service plan. Select **App Service plan/Location**. You can either use the existing plan or create a new one. Select **Create new**.
![App Service plan](https://www.foteinisavvidou.codes/wp-content/uploads/2021/01/05-service-plan.jpg)
6. In the **App Service plan** tab, enter a name for the new app service plan and choose a location.
![Create new App Service plan](https://www.foteinisavvidou.codes/wp-content/uploads/2021/01/06-new-service-plan.jpg)
7. Select the **Pricing tier** to see the available types of services plans and their features.
8. In **Spec Picker**, select the **Dev/Test** tab and select the **F1** (free) pricing tier. Then click **Apply**.
![App Service plan pricing tier](https://www.foteinisavvidou.codes/wp-content/uploads/2021/01/07-service-plan-pricing-1024x427.png)
9. Back on the New App Service plan tab, select **OK** to create and apply the new service plan.
10. In the WordPress app configuration tab, select **Database**. In the Database server tab, enter the following information:
    * Server name.
    * Server admin login name.
    * Password.
    * Pricing tier: We are going to use **Basic, 1 vCore(s), 5 GB**. Select the Pricing tier. Then select the **Basic** tab, choose 1 vCore and 5 GB storage and click **OK**.
    * Database name.

    ![Create a database](https://www.foteinisavvidou.codes/wp-content/uploads/2021/01/08-database.png)
11. Then click **OK**.
12. Select **Create** and wait for the app to be created (it may take several minutes). Once the deployment is complete, select **Go to resource**.
![Go to resource](https://www.foteinisavvidou.codes/wp-content/uploads/2021/01/09-deployment-succeeded.png)

### Complete the WordPress Configuration
1. In the **Overview** tab, click on **URL** (app-service-name&#46;azurewebsites&#46;net) to go to your WordPress website and complete the WordPress configuration.
![WordPress app on Azure](https://www.foteinisavvidou.codes/wp-content/uploads/2021/01/10-app-service-1024x445.png)
2. If your website has been successfully set up, you will see the default WordPress screen. Select language and location and enter a site name, a username, and a password. 
![Install WordPress](https://www.foteinisavvidou.codes/wp-content/uploads/2021/01/11-install-wordpress.png)
3. Once the setup is completed, login to WordPress (https\://app-name&#46;azurewebsites&#46;net/wp-admin). You are now ready to add content in your website!

### Next steps
The next step is to start building your websites. Install a theme, remove the existing WordPress parts (Hello World post, comment and page, unused plugins and themes) and configure basic WordPress settings (tagline, timezone and date format, permalinks and discussion settings).

In the **Tools** tab, the **Site Health** shows important information about your WordPress configuration and recommended improvements. One common issue is that your website is running on an old version of PHP. In the next tutorial, you will learn how to update the PHP version via the Azure Cloud Shell.