Azure App Service and Functions team Blog

The latest from the App Service and Functions engineering teams

WordPress on Linux Updated

Updated image for WordPress on Linux

We have recently updated the WordPress on Linux offering on Azure Marketplace.  In this version we have replaced Apache/mod_php with Nginx/PHP-FPM, we’ve seen the improved performance in our internal testing.  Customers can use the WordPress on Linux image from the Azure Marketplace to create a new WordPress site and get the latest image automatically.

Upgrade WordPress on Linux

If you have an existing WordPress site running on the previous version of the Marketplace template, you may upgrade to the new image following the steps below. Before you begin, we recommend you backup the database and WordPress site (details in Migrate section).

Upgrade steps:

  1. In the Azure Portal, find your Web App and go to “Container Settings”
  2. Update the “image:tag” setting to ‘appsvcorg/wordpress-alpine-php:0.61’
  3. Click Save and wait for the Web App to restart

Migrate your site to WordPress on Linux

For customers who plan to migrate their WordPress site to Azure App Service, while the Marketplace image comes with a fresh install of WordPress, customers can replace the code on the Web App and bring their own WordPress codebase (for example during migrations from on-premises or other hosting platforms).

  1. Connect to the Web App using FTPS and replace the contents of the ‘/home/site/wwwroot’ directory.  Alternatively, you can create a zip file for your codebase and deploy it to the Web App using App Service zipdeploy.
  2. Verify that ‘wp-config.php’ contains the correct database connection string, using the wp-config.php file from Azure Marketplace for reference.
  3. For WordPress database, you can use tools such as mysqldump or MySQL Workbench to backup the MySQL database from the original server and restore it to Azure Database for MySQL.

Customization

For cases in which additional customization is needed for plugins or themes, we recommend customers to modify the Docker image used in the Marketplace (source on GitHub), and run it on Web App for Containers. Once completed, migrate the site so that you don’t have to start from scratch.