Enable Xdebug to profile your PHP app on App Service

Since the old blog post for enabling Xdebug we have included Xdebug DLLs at the platform level but this is not enable due to performance impact on your app. Follow the steps below to enable Xdebug on Azure app service Web Apps.

Enable Xdebug

Step 1: Create a new folder in the bin directory called xdebug_profiles. If you don’t have a bin directory under wwwroot , create a bin directory. xdebug_profiles folder to which profiling results will be written.

Step 2: Add a directory ini directory to the d:\home\site directory. Create extensions.ini file d:\home\site\ini folder. Add the following code

[XDebug]
zend_extension=d:\devtools\xdebug\v2.4.0\php_xdebug_2.4.0.dll 
xdebug.profiler_enable=1
xdebug.profiler_output_dir="d:\home\site\bin\xdebug_profiles"

Step 3: Add app setting PHP_INI_SCAN_DIR and set it to value d:\home\site\ini. Save your setting .


Step 4: Browse your web app. Check the folder d:\home\site\bin\xdebug_profiles to view your xdebug profiler results. You can open the files using Wincachegrind.

Disable Xdebug

Update the file d:\home\site\ini\extensions.ini and change the setting xdebug.profiler_enable to 0.

xdebug.profiler_enable= 0

References

Xdebug official website

New portal to manage Web PI Applications

Existing submission portal for application to be included in Web PI has changed from https://microsoft.com/web/gallery/ to https://webgallery.microsoft.com .

All ISVs and partners who own Web Applications in Web PI , please use the new submission portal moving forward. If you don’t find your application listed in the dashboard , please email the following at appgal@microsoft.com.

  1. Application ID
  2. Unique ID.  (Follow the steps below to find your UNIQUE ID )
    1. Go to https://account.live.com/editprof.aspx
    2. Sign in with your credentials.
    3. At the bottom part of the page, that is where you can find your Unique ID.
  3. Microsoft Account Email

 

 

 

Known issue: WordPress using MySQL cluster broken

This blog post is to inform all Azure users that the template  WordPress using MySQL replication cluster is currently broken due to a bug and we are temporarily removing the template until it is fixed. Please do not deploy the template from Marketplace.

If you want to deploy a site with the same scenario , I recommend click on the button below to deploy a working template . 

This template is being installed from Azure quick start templates repository . It is deploys WordPress backed by a MySQL ( master -slave ) cluster . Please check back to this blog post for update on an update to the template in the Azure marketplace.

How to speed up Joomla Web App on Azure App Services

Every website for a company or personal wants to engage their customers , but if your website takes too long to load then you lose your users. For different types of applications, there are different options to prevent this from happening . In the blog post below we are going to discuss how we can improve Joomla web app fast and respond to users quickly by just making some or all the tweaks mentioned below.

Enable Joomla Caching

Caching is not enabled by default when you set up Joomla web app. Joomla does the following when displaying a page:

  • get the content from its database
  • loads all the plugins, components and/or modules
  • loads your template file
  • finally brings this all together in a single page rendered in visitor’s browser

Continue reading “How to speed up Joomla Web App on Azure App Services”

Web App using Git Deploy Create flow

As part of the Azure App Service team , we are constantly imprving the experience with application created from Azure marketplace. The following apps are using an updated create workflow using Git deploy .

  • WordPress
  • Bakery
  • Node JS empty site
  • Node JS  Express site
  • Node JS Starte site
  • ASPNET Starter site
  • ASPNET Empty site
  • Photo Gallery
  • Ghost
  • Boilerplate
  • HTML5 Empty site
  • Jetty
  • Tomcat
  • Django
  • Flask
  • Bottle
  • Azure ML Batch Execution Service Web App
  • Azure ML Request-Response Service Web App
  • Java Coffee Shop

The create workflow now copies the application code from github repository for the specific application you selected from the list above. There is no change is the user experience when you create the application .The advantage of this process is to easily sync application version updates from the github repository .

We will continue to upgrade apps though multiple phases to the new git deploy workflow . Please check this blog post for update or check out my twitter feed for updates (@mksuni) .

How to update an application installed from Azure Marketplace from Web Apps

If the application you used is listed in the above list , the follow this process to update your application when a new version of the app is available

browse.png

  • Select settings -> Deployment Source -> Sync

sync.png