Adding extension of Composer to Linux Web App

Bea Vear 6 Reputation points
2020-12-06T02:08:45.21+00:00

Hi there,

I've researched and tried to find an up to date answer however I can't hence why I'm asking here.

For my project I need to add the composer dependency into PHP, however when I go into my web app service extensions is greyed out.
I managed to navigate to the extensions page, but whenever I go to select an extension it never loads.

I was wondering what I can do to get this composer into PHP.

Thanks for your time

Azure App Service
Azure App Service
Azure App Service is a service used to create and deploy scalable, mission-critical web apps.
7,757 questions
{count} vote

1 answer

Sort by: Most helpful
  1. SnehaAgrawal-MSFT 21,506 Reputation points
    2020-12-07T18:28:06.81+00:00

    Thanks for the question! You may want to use the steps from the below blog to install the PHP extension.

    Azure App Service Linux - Adding PHP Extensions

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

    Please refer to below tutorial link which shows how to use a .deployment file to invoke the custom deployment script to run “php composer.phar install” command.

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

    1 person found this answer helpful.
    0 comments No comments

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.