Microsoft Azure Open Source Development Support Team Blog

Support for Open Source Technologies on Microsoft Azure App Service

HTTP to HTTPS redirect for WordPress on Azure Web App on Linux

If you host WordPress site on Azure Web App on Linux running Apache, here are the steps to implement HTTP to HTTPS redirect: 1. Add RewriteRule in .htaccess in WordPress application root RewriteCond %{HTTP:X-ARR-SSL} ^$ RewriteRule ^(.*)$ https://%{HTTP_HOST}%{REQUEST_URI} [L,R=301] 2. Once this RewriteRule is added, you may see wp-admin page lost style like this, this… Read more

Migrate WordPress content to Azure blob storage

Azure storage provides solution for applications requiring scalable, durable, and highly available storage for their data. In this blog, we cover the steps how to migrate existing WordPress content from file system to Azure blob storage. 1. Create storage blob Create an Azure storage account Create blob storage Create a blob container to store the… Read more

Best Practices for WordPress Security on Azure

By Mangesh Sangapu  and Yi Wang WordPress Security is often an overlooked feature. Customers are quick to configure their site, but often forget to fine tune the security aspect. Here we have compiled steps that will help make your WordPress site more robust on Azure. More information can also be found at the official site:… Read more

WordPress Tools and MySQL Migration with WordPress Buddy+

WordPress Buddy+ is an Azure Web Apps Site Extension that facilitates WordPress configuration and especially useful for WordPress migrations. It has features for updating HOME and SITE_URL, viewing list of plugins and updating passwords. In addition, it can also help migrate the MySQL database, whether it be MySQL In-App, ClearDB or on a Virtual Machine… Read more

WordPress: Redirecting to wrong URL!!

Problem: While trying to browse to, it keeps redirecting to!!   Redirection Scenarios There are a couple situations where one may face the WordPress Redirection issue: Migrated from another host Changed your custom domain name and it’s going to your old domain!   Understanding The Issue This redirection can occur for two reasons: URL… Read more

Triggering the PHP Process Report on Azure Web Apps

The PHP Process Report can be a vital tool in troubleshooting slowness or errors with your PHP Web Application. This article covers how to trigger the report based on a rule. Reference Apurva Joshi has a great article on Diagnostics as a Service (DaaS) for Azure Websites located here: Details on the Azure Web… Read more

WordPress: Error establishing a database connection

If you see the infamous “Error establishing a database connection“, enable WordPress Debug Logging by following the steps outlined here:     Debug.log will be saved within wp-content folder. Possible error messages in debug.log: [25-Jul-2016 15:34:44 UTC] PHP Warning: mysqli_real_connect(): (HY000/1045): Access denied for user ‘be96d626d450b1’@’’ (using password: YES) in D:\home\site\wwwroot\wp-includes\wp-db.php on line 1490 [25-Jul-2016 15:34:44… Read more

Enable WordPress Error Logs

Logs can help identify slowness, HTTP 500 Fatal Errors,  WordPress “white screen of death” and other issues your Azure App Service Web App may be experiencing. To enable error logging in WordPress, you will have to make both of the following changes.  Quick Instructions   .user.ini Within wwwroot directory, create a file named .user.ini Add the following… Read more

Giving your existing WordPress MultiSite a new domain name on Microsoft Azure

Prerequisites:  This article assumes you acquired a new domain name and have configured the DNS Zones. If you haven’t already done so, see the article here: Configuring a custom domain name for a Microsoft Azure Web Site   Problem: You installed WordPress through the MS Azure Gallery and setup a MultiSite (WP feature). However, now… Read more