Microsoft Azure Open Source Development Support Team Blog

Support for Open Source Technologies on Microsoft Azure App Service

WordPress Plugin: App Service Assistant for Windows App Service Web Apps

App Service Assistant is a WordPress plugin that provides details on important settings and configuration. This can be helpful to troubleshoot WordPress issues. Information such as current theme, theme path, WP defines, plugins, php_errors.log (if enabled), debug.log (if enabled), user.ini, app settings. Installing this plugin is a cinch! Just follow the steps below to get it… Read more

Import a WordPress MySQL Database using WordPress Buddy+

This post discusses how to use the Azure Web App Site Extension, WordPress Buddy+, to import a WordPress MySQL Database (.sql file) into MySQL In-App. If you haven’t already, review and install (link here) the WordPress Buddy+ Site Extension for Azure Web Apps. The steps below require MySQL In-App to be enabled. Import Steps From Kudu CMD… Read more

WordPress Migration: Easy as A-B-C, 1-2-3

Fig 1. WordPress Migration Components There are 3 steps to migrating a WordPress website to Azure App Service Web Apps. Copy WordPress files Migrate the MySQL Database Configure WordPress   Step 1. Copy WordPress files Make a backup of the current WordPress website. Tools commonly used for this is FTP Software like FileZilla or WinSCP…. Read more

Send email on App Service using Office 365 (O365)

For PHP – This is a Proof of Concept to send email using the PHP Mailer library and Office 365. From the PHPMailer GitHub site, follow the “Minimal installation” section and download class.phpmailer.php and class.smtp.php. Copy-paste the code from “A Simple Example” section or use the following: <?php require ‘class.phpmailer.php’; require ‘class.smtp.php’; $mail = new… 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

MySQL In-App Configuration for PHP Content Management Systems

Read more about MySQL In-App here. Content Management Systems such as WordPress, Drupal, Joomla contain the database credentials within a configuration file. If you decide to use MySQL In-App for development purposes, you will quickly realize that you need to modify these credentials to work with MySQL In-App. Below is a table containing the default… Read more

Use IIS AppInit Module to Clear Cache on Local Disks for Multiple Instances on Azure Web Apps

A solution to increase PHP Performance for MVC Frameworks (ex: CodeIgniter, Symfony, Laravel, etc.) is to save the cache to local disk. Since the cache is saved locally to the VM, there will be an improved performance boost. However, this raises a couple of questions: How can cache be cleared from the local disk? And… 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

WordPress MultiSite 404 on Admin Dashboard

If you are experiencing a 404 when switching to the dashboard of a given site, verify the web.config is accurate. We’ve found that older versions of WordPress have incorrect rules within web.config. Try the following web.config: <?xml version=”1.0″ encoding=”UTF-8″?> <configuration> <system.webServer> <rewrite> <rules> <rule name=”WordPress Rule 1″ stopProcessing=”true”> <match url=”^index\.php$” ignoreCase=”false” /> <action type=”None” />… Read more