Is it possible to host Wordpress on Azure Virtual Machine?

Aman Singh 26 Reputation points
2022-08-31T12:00:26.933+00:00

I am new to Azure Platform, Previously using Ubuntu and other Debian based Linux OS to setup PHP based apps and WordPress. Is it possible to do same with Azure Cloud ?

PS: I am testing it to try for one of the WordPress site NAYAG Today.

Azure Cloud Services
Azure Cloud Services
An Azure platform as a service offer that is used to deploy web and cloud applications.
643 questions
0 comments No comments
{count} vote

Accepted answer
  1. kobulloc-MSFT 23,496 Reputation points Microsoft Employee
    2022-09-01T00:45:55.347+00:00

    Hello, @Aman Singh !

    In addition to the self host option on a Linux VM as @Dillon Silzer has mentioned, there's also a pretty straight forward option to host a WordPress site on Azure using App Service which may streamline the process for you. This is a good approach for someone is new to Azure.

    How do I create a WordPress site in Azure?
    The Azure documentation on creating a WordPress site will walk you through deploying your WordPress site to Azure App Service on Linux using WordPress in the Azure Marketplace. The WordPress installation comes with pre-installed plugins for performance improvements, W3TC for caching and Smush for image compression.

    Create WordPress site using Azure portal

    1. To start creating the WordPress site, browse to https://ms.portal.azure.com/#create/WordPress.WordPress.
    2. In the Basics tab, under Project details, make sure the correct subscription is selected and then choose to Create new resource group. Type myResourceGroup for the name and select a Region you want to serve your app from.
    3. Under Hosting details, type a globally unique name for your web app and choose Linux for Operating System. Select Basic for Hosting plan. See the table below for app and database SKUs for given hosting plans. You can view hosting plans details in the announcement. For pricing, visit App Service pricing and Azure Database for MySQL pricing.
    4. Under WordPress Setup, type an Admin Email, Admin Username, and Admin Password. The Admin Email here is used for WordPress administrative sign-in only.
    5. Select the Advanced tab. Choose your preferred Content Delivery Network (CDN) and storage. If you're unfamiliar with Content Delivery Network or Blob Storage, leave these unselected. For more details on the Content Distribution options, see WordPress on App Service.
    6. Select the Review + create tab. After validation runs, select the Create button at the bottom of the page to create the WordPress site.
    7. Browse to your site URL and verify the app is running properly. The site may take a few minutes to load. If you receive an error, allow a few more minutes then refresh the browser.

    Create WordPress on App Service configuration options in the Azure portal

    236690-image.png

    Testing your WordPress site

    236742-image.png

    Additional Reading:

    2 people found this answer helpful.
    0 comments No comments

2 additional answers

Sort by: Most helpful
  1. Dillon Silzer 54,646 Reputation points
    2022-08-31T14:56:16.207+00:00

    Hi @Aman Singh

    Yes it is possible to set up WordPress with an Azure Virtual Machine running Linux OS.

    Quickstart: Create a Linux virtual machine in the Azure portal

    https://learn.microsoft.com/en-us/azure/virtual-machines/linux/quick-create-portal

    You can then go ahead and run PHP, MySQL and your web server of your choice to host the WordPress site.

    ----------------------------------------

    If this is helpful please accept answer.

    2 people found this answer helpful.
    0 comments No comments

  2. Deleted

    This answer has been deleted due to a violation of our Code of Conduct. The answer was manually reported or identified through automated detection before action was taken. Please refer to our Code of Conduct for more information.


    Comments have been turned off. Learn more