5

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.

2 Answers 2

17

Another way to install composer

2
  • 2
    Particularly useful if you're not on a plan that allows extensions. Mar 26, 2018 at 15:12
  • 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.
    – esjay
    Apr 29, 2018 at 9:35
5

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.

4
  • 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? Jan 28, 2016 at 11:51
  • 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/…
    – Gary Liu
    Jan 29, 2016 at 1:07
  • 2
    Sadly this option is no longer available. "Extensions" has been disabled in the Azure dashboard
    – Bern
    May 21, 2020 at 10:38
  • 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.
    – TechFanDan
    Nov 12, 2021 at 15:18

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.

Not the answer you're looking for? Browse other questions tagged or ask your own question.