Azure-docs: Configure PHP extension in Web App for Linux

Created on 18 Apr 2019  ·  4Comments  ·  Source: MicrosoftDocs/azure-docs

I came across this link which talks about configuring PHP extension for Web App (using code) on Windows.
Similarly is there a way to configure PHP extension (PECL or PEAR) for Web App (using code) for Linux ?


Document Details

Do not edit this section. It is required for docs.microsoft.com ➟ GitHub issue linking.

app-service-wesvc cxp in-progress product-question triaged

All 4 comments

@Anand-Moghe Thanks for the question! We are investigating and will update you shortly.

@Anand-Moghe Thanks again for the question! You can use the steps from the blogs below to install the PHP extension.

https://azureossd.github.io/2019/01/29/azure-app-service-linux-adding-php-extensions/

https://azureossd.github.io/2019/01/29/azure-app-service-linux-update-php-settings/

Also, if you need to include additional dependencies for Linux PHP app, you can use Composer to install them. This tutorial shows how to use a .deployment file to invoke the custom deployment script to run “php composer.phar install” command.

https://docs.microsoft.com/en-us/azure/app-service/containers/tutorial-php-mysql-app#deploy-to-azure

@SnehaAgrawal-MSFT I was reviewing some documentation in the Microsoft doc link provided by you and came across these steps for injecting external deployment script to install PHP extension. Thank you very much !!

@Anand-Moghe If there are further questions regarding this matter, please reopen it and we will gladly continue the discussion.

Was this page helpful?
0 / 5 - 0 ratings