Microsoft Azure Open Source Development Support Team Blog

Support for Open Source Technologies on Microsoft Azure App Service

Migrating data between MySQL databases using kudu console – Azure App Service

NOTE: Always keep multiple backup’s of your database before migration. There are often times when you want to migrate data from one MySQL server to another. This maybe because you are migrating from an On-Premise environment to Azure or upgrading a ClearDB database to a different tier or other reasons. Database migration can be done… Read more

How to upgrade ClearDB database for Azure App Service

If you are using ClearDB as your MySQL database on Azure, you probably know that there is no upgrade path available on Azure portal. The only way to upgrade would be through ClearDB dashboard. You will need to put your credit card information on ClearDB portal to upgrade your database. This blog talks about how… 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

Custom deployment folder on Azure Web Apps with Git

Sometimes you don’t want to deploy your application in the default webapps directory when deploying from GitHub (continuous deployment) on Azure webapp. You can do this in 2 ways – 1. Use the SCM_TARGET_PATH to set your path which can be absolute or relative to the D:\home\site path.       2. Create two files in… Read more

PHP ImageMagick on Azure Web Apps

This post is outdated. See alternatives: PHP 7 x64 ImageMagick Site Extension. This can be installed through the Azure Portal or the SCM/Kudu > SiteExtensions area. for PHP 7.0 steps.       While this post is outdated, the steps to enable this SiteExtension is still helpful. Not all versions of the Windows Application… Read more

Setting environment variable and accessing it in Java program on Azure webapp

Sometimes, you want to set new environment variable and want to access it in your Java Program. You can do this by setting up the value in JAVA_OPTS either in web.config or in webapps App Setting. 1. In web.config – <httpPlatform processPath=”%AZURE_TOMCAT7_HOME%\bin\startup.bat” arguments=””> <environmentVariables> <environmentVariable name=”JAVA_OPTS” value=”-DmyNewEnvVar=Wow” /> </environmentVariables> </httpPlatform >   2. In App Setting… Read more

Convert Apache .htaccess to IIS Web.Config

  A web.config file is the settings and configuration for applications on IIS Server (ex: Azure Paas Websites ). But what if you’re coming from a Linux host – what then? Well, there are few options: 1) Online Conversion Tool As always, please verify the converted web.config rules on a development site before introducing… Read more

Migrate Yii Framework Application to Azure Web App

1. Create a PHP Empty Web App on Azure:               2. Copy the contents from Yii framework application root to wwwroot, e.g.          Note: In this example, framework and application (assets, themes, index.php, etc.) are all in wwwroot.   3. Turn on error log, so that you can watch for… Read more

Troubleshooting PHPMyAdmin Site Extension

If you recently started having trouble (HTTP 500) with PHPMyAdmin (PMA) SiteExtension, it may be a problem with sessions. The errors look like this: Browser Screenshot of Error Text Description Chrome The page cannot be displayed because an internal server error has occurred. Internet Explorer The website cannot display the page This error (HTTP 500… Read more

Migrate Zend Framework 2 Project to Azure Web App

1. Create an empty web app on Azure     2. Check PHP runtime     – Default PHP version on Azure web apps is PHP 5.4, you can change it from Azure portal “CONFIGURE” page. Change PHP version to match the version used in your ZF2 project     – Create an info page at wwwroot, e.g. info.php,… Read more