Microsoft Azure Open Source Development Support Team Blog

Support for Open Source Technologies on Microsoft Azure App Service

Debugging Node.js apps on Azure App Services

A large part of software development involves troubleshooting. Logging is one of the mechanisms that is used to make it easier to enables the developers to see what the code is really doing. Therefore, It is necessary to have the proper logging to troubleshoot the issues faster , which otherwise will become nearly impossible to… Read more

Configure WordPress Database Connection on Azure App Services

Configure WordPress Database Connection on Azure App Services For WordPress sites hosted on Azure App Services, there are two ways to configure database connection in wp-config.php. When you modify database connection for WordPress, verify the connection from wp-config.php. 1. Current WordPress installed on Azure App Services pull database connection information from hosting environment- code in… Read more

Change PHP_INI_SYSTEM configuration settings

PHP_INI_SYSTEM level settings cannot be changed from .user.ini or ini_set function. To make change for PHP_INI_SYSTEM settings on Azure web app, follow the steps, 1. Add an App Setting to your Web App with the key PHP_INI_SCAN_DIR and value d:\home\site\ini 2. Create an settings.ini file using Kudu Console (http://<site-name> in the d:\home\site\ini directory. 3. Add… Read more

Adding SSH support to Asp.Net Core Docker Container created in Visual Studio 2017

When creating a Docker container used in Azure App Service Web App for Containers, a common requirement is to add SSH support so that we can log into the application container from the Kudu console. There are various different methods to make this work and the general process is documented here: . This blog… Read more

Run PHP Webjob on Azure App Service (Windows)

When you deploy a webjob to run PHP program, there are few items to verify and help to understand the PHP runtime for webjobs. 1. How to create a PHP webjob – Execute a .php file – Create batch to execute .php file – Create shell to execute .php file 2. PHP runtime for webjob is difference… Read more

Setup SMTP in Drupal 8 on Azure Webapp

Example of setup SMTP in Drupal 8 using O365 SMTP server for the Drupal8 site hosted on Azure Webapp: 1.Download smtp module 8.x-1.x-dev from 2.Extract “smtp-8.x-1.x-dev” and copy “smtp” folder to “D:\home\site\wwwroot\modules” 3.Login as Drupal admin, find Extend -> MAIL->SMTP Authentication Support, check it and click install 4.Configure SMTP module, find Configuration -> SYSTEM ->… Read more

Debugging Java containers

Can you debug Java applications within your container? Yes. How? Check below… 1. Modify your dockerfile To expose JPDA params                  ENV JPDA_OPTS=”-agentlib:jdwp=transport=dt_socket,address=8000,server=y,suspend=n” To expose the debug port along with application port                  EXPOSE 7080 8000 To add the options in your command                CMD [“sh”, “-c”, “java $JPDA_OPTS -Durl=$url -jar app.jar”] 2. Build the… Read more

Nodejs App Performance Tweaks – Azure App Services (Windows)

Node.js is a JavaScript runtime built on Chrome’s V8 JavaScript engine. Node.js uses an event-driven, non-blocking I/O model that makes it lightweight and efficient. At some point of your application lifecycle you might end-up with performance issue in any web application. This blog would help you fix such issue on nodejs app hosted in Azure… Read more

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

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