How to install composer on app service?

11,536

Solution 1

You can install composer extension in the manage portal of your App Services.

  • Login on your Azure Account at https://portal.azure.com
  • Click the "tools" button, select "extensions" bar in the list on the right. Click "Add" button, open the extension list allowed to install in App Services. You can choose "Composer" there. enter image description here

After installing, you also can install Visual Studio Online extension or leverage Kudu console site to handle or run commands of your Apps.

Solution 2

Another way to install composer

Share:
11,536
Ruchit Rami
Author by

Ruchit Rami

Updated on July 06, 2022

Comments

  • Ruchit Rami
    Ruchit Rami almost 2 years

    I am new to using Microsoft Azure. My application requires composer to be installed on the server, how can I have it installed on the system of App services service? Application is in PHP.

  • Ruchit Rami
    Ruchit Rami about 8 years
    I want to add other extensions also for example, github.com/nrk/predis. How can I develop this extensions? How can I go about installing other php extensions which are not covered in the app service extension list?
  • Gary Liu
    Gary Liu about 8 years
    You can package your custom libs with your application and deploy to Azure via Git or FTP. refer to azure.microsoft.com/en-us/documentation/articles/…
  • Richard Ockerby
    Richard Ockerby about 6 years
    Particularly useful if you're not on a plan that allows extensions.
  • esjay
    esjay almost 6 years
    This is also what I needed to use it with an Azure Sponsorship for non-profits where extensions are not allowed. Although the GitHub deployment runs composer - it would fail because of PHP extension dependencies. The extensions were enabled for the web service, but not the CLI.
  • Bern
    Bern almost 4 years
    Sadly this option is no longer available. "Extensions" has been disabled in the Azure dashboard
  • TechFanDan
    TechFanDan over 2 years
    IIRC, the extension that can be added through the portal seems to only be for PHP 5.x and requires a Windows OS. @ankit mehta's solution works well today.