Microsoft Azure Open Source Development Support Team Blog

Support for Open Source Technologies on Microsoft Azure App Service

How to send emails through Azure Web Apps using Google / Gmail

How to send emails through Azure Web Apps using Google / Gmail Part I – Configuring Google to use App Passwords   Two quick notes before proceeding: This is not a ‘once and done’ secret or app generation concept, this is unique to the gmail address and will need to be done for each and… Read more

Azure App Service Linux – Adding PHP Extensions

Customers that need to install PHP extensions that are not available on the provided PHP images on Azure App Services Linux can perform the following steps below to install their extensions. Install PHP extensions-  Go to your KUDU console https://<sitename>.scm.azurewebsites.net  Select SSH.  In your SSH session, run the command highlighted in yellow.  root@3628690f5888:/home/site/wwwroot# pear config-show  Configuration (channel pear.php.net):  =====================================… Read more

Azure App Service Linux – Update PHP Settings

Azure App Service Linux provides PHP images with preconfigured settings and extensions.  If you need to adjust your PHP settings, follow the steps provided below.   Updating PHP Settings-   Settings such as upload_max_filesize, expose_php, and others can be modified using a custom “ini” file. You can use either SSH or Bash to accomplish this.   Go to… Read more

Building Python Functions App that use Native Modules – Custom Docker

Prerequisites To build and test locally, you will need to: Install Python 3.6 Install Docker Install Azure Functions Core Tools version 2.0.3 or later To install Azure Functions Core tools you will need also these requirements: Install .NET Core 2.1 for Windows. Install Node.js, which includes npm. For version 2.x of the tools, only Node.js 8.5 and… Read more

Restrict access to login for the WordPress running on Azure web app container

For WordPress sites that running on Apache server in Azure web app for containers, here is sample code to restrict access to login pages, such as wp-login.php or wp-admin 1. FTP to files in /home/site/wwwroot, find the file “.htaccess” (create one if it does not exist) 2. Add the code below to “.htaccess”, replace the… Read more

RewriteRule sample for WordPress in subdirectory

In the case you installed another instance of WordPress in a subdirectory of main WordPress site in Azure web app for Windows, your WordPress installation may be like this,   if use “Post name” Permalink setting, with default web.config, articles in subdirectory might give 404 (not found), for example,   For this problem, you can… Read more

How to change memory_limit on WordPress Web App for Linux on Azure

Do you need to edit the memory_limit and post_max_size PHP settingson your Linux Web App hosted with MS Azure? I can show you how to do this without needing to install anything via SSH (which by the way is not recommended. Read up on why here). Step 1: Login to the portal and go to… Read more

How to set node version for Windows node.js webapp from Azure Portal

Create the Azure WebApp Create new WebApp using Azure portal   Set the App name, Resource Group and click “Create”   Wait for deployment to succeed and then click on Application Settings for the new Webapp. Add a new setting with App Setting Name “WEBSITE_NODE_DEFAULT_VERSION” and Value “8.9.4” and click Save. If you would like… Read more

Configuring node.js application on Azure App Service with Azure Blob Storage

In this article, we will learn about configuring the node js applications deployed on Azure App Services with the Azure blob storage. If you would like to store the application logs in a blob storage on azure for the node.js applications, you would need to follow the steps below. It basically includes 2 main steps:… Read more

Debugging Node.js applications on Azure App Services Linux/containers

  This is the continuation of the earlier post where I had explained how to enable logging for node applications on App Service Windows.  In this blog, you will learn how to debug the node.js applications that are hosted on Azure App Service Linux / Azure webapp for containers. Enabling logs on linux offerings of… Read more