473,287 Members | 3,295 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes and contribute your articles to a community of 473,287 developers and data experts.

How to create a WordPress site on Azure using Azure Database for MySQL

SjoukjeZaal
Azure App Service provides a scalable, secure, and easy to use environment for production-grade WordPress sites. For instance, your WordPress site can scale globally out of the box using Azure App Service, and your MySQL server can be hosted on Azure Database for MySQL, which offers the community edition of MySQL, without having to manage the infrastructure.

In this article, we are going to deploy WordPress in Azure. Therefore, we are going to set up an Azure Web App, where WordPress will be installed. The database is going to be created using Azure Database for MySQL.

To get started with Azure Database for MySQL, you’ll need an Azure subscription. If you don't have one, you can create a free Azure account before you begin.

Create a new server
The first step is to create a new server. We are going to do this from the Azure portal.
  1. Open a web browser and navigate to: https://ms.portal.azure.com
  2. In the top-right menu, select + Create a new resource, and in the search box type WordPress on Linux and click Create.
  3. A new blade will be opened where you can specify the details and pick the Azure Database for MySQL for data storage. Add the following values:
    • App name: WordPressdemo12
    • Subscription: Select a subscription
    • Resource Group: Create a new one. This will be the container where all the different artifacts will be created.
    • App Service Plan/Location: Select this and create a new one. These settings are for the Web App. You can also select different pricing tiers in here

    • Database provider: Azure Database for MySQL.
    • Click OK.
    • Database: Here, you need to provide the Server name, Server admin login name, password, and the PHP version:

    • To select a different pricing tier for the database, click Pricing tier. You can then choose the tier and the vCores, database capacity, backup retention period, backup redundancy options and more, according to your needs:

    • Database name: Provide a new name or keep the default one. Click OK.
    • After that, click Create.
  4. A new MySQL server and Azure Web App will be created. WordPress will be deployed on it.

Configure WordPress
After five minutes, the WordPress instance will be created. You can navigate to the website, by copying the URL from the overview blade:
  1. Paste the URL in a new browser window. The WordPress configuration page will pop up:

  2. Select the language and click Continue.
  3. Add the site values to it, such as the following:

  4. Ensure, that you copy the username and password. You need this when you sign in to the WordPress site after installation.
  5. Click Install WordPress. You don’t have to provide any database settings or credentials; these are automatically configured when we create the WordPress and database instance in the first part of this demo.
  6. When WordPress is installed, you will see the following response. From there, you can sign in to the WordPress site with the credentials that you have specified in the previous WordPress configuration screen.

  7. You can now use WordPress for creating your website, blog, or other type of site.

Summary and next steps
In this article, we created a WordPress site on Azure using Azure App Service and Azure Database for MySQL. Azure handles a lot of the configuration steps for you automatically during deployment, which makes it extremely easy to create highly available, scalable, and secure WordPress sites for your users. There are also additional steps that you can take to speed up your WordPress sites—for instance, optimizing your database by storing media content in Azure Blob Storage or compressing images. You can also use a CDN for storing static content for your WordPress site. For more information about Azure Database for MySQL and additional services and features, you can refer to the following links:
  • Get started with the service by creating your first Azure Database for MySQL server using the Azure portal or Azure CLI.
Jun 16 '19 #1
0 6078

Sign in to post your reply or Sign up for a free account.

Similar topics

1
by: D. Lee Christopher | last post by:
Can anyone point me to a good tutorial for creating a site-level search applet? I am trying to create a virtual catalog of sorts, and I would like to be able to search the catalog and have the...
4
by: Nicolae Fieraru | last post by:
Hi All, I am working on a web site in asp which will be hosted on a Windows 2003 server. I use the following code to connect to the database: Set objConn =...
5
by: msch-prv | last post by:
Hi, I am trying to tie a SQLDataSource control to MySQL without success. The connection string works ok with an ObjectDataSource. (Native asp.net 2.0 MySQL dll loaded in /bin) For some reason,...
6
by: Brandon | last post by:
I'm using PHP with MySQL 4.x and was having trouble converting a datetime from MySQL into a formatted string until I ran across this solution that converts a YYYY-MM-DD HH:MM:SS string into a...
6
by: HMS Surprise | last post by:
Greetings, I need to peform some simple queries via MySQL. Searching the list I see that folks are accessing it with python. I am very new to python and pretty new to MySQL too. Would appreciate...
2
by: benicio | last post by:
I now have completed my site using basic php/mysql Thanks to all who helped me with those errors I got. I use a ftp to publish my static website but don't how with PHP & MySQL and the...
1
by: Abhay Gupta | last post by:
I want to block some websites with using database(Mysql). If i enter the name or url of the website into the database then nobody can access this website.Is it possible?
0
by: sandip777 | last post by:
<?php // Check if a file has been uploaded if(isset($_FILES)) { // Make sure the file was sent without errors if($_FILES == 0) { // Connect to the database $dbLink = new...
4
by: sdcoates | last post by:
I created and uploaded data to an Azure SQL database. But, when I go into the Access database and try to connect to this SQL database, I get the following message: "You cannot use ODBC to import...
2
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 7 Feb 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:30 (7.30PM). In this month's session, the creator of the excellent VBE...
0
by: MeoLessi9 | last post by:
I have VirtualBox installed on Windows 11 and now I would like to install Kali on a virtual machine. However, on the official website, I see two options: "Installer images" and "Virtual machines"....
0
by: DolphinDB | last post by:
The formulas of 101 quantitative trading alphas used by WorldQuant were presented in the paper 101 Formulaic Alphas. However, some formulas are complex, leading to challenges in calculation. Take...
0
by: Aftab Ahmad | last post by:
Hello Experts! I have written a code in MS Access for a cmd called "WhatsApp Message" to open WhatsApp using that very code but the problem is that it gives a popup message everytime I clicked on...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: marcoviolo | last post by:
Dear all, I would like to implement on my worksheet an vlookup dynamic , that consider a change of pivot excel via win32com, from an external excel (without open it) and save the new file into a...
1
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.