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.

Peter Pan
  • 23,476
  • 4
  • 25
  • 43
Ruchit Rami
  • 2,273
  • 4
  • 28
  • 53

2 Answers2

17

Another way to install composer

Ankit Mehta
  • 444
  • 4
  • 11
  • 2
    Particularly useful if you're not on a plan that allows extensions. – Richard Ockerby Mar 26 '18 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 '18 at 09: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.

Philippe Signoret
  • 13,299
  • 1
  • 40
  • 58
Gary Liu
  • 13,758
  • 1
  • 17
  • 32
  • I want to add other extensions also for example, https://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? – Ruchit Rami Jan 28 '16 at 11:51
  • You can package your custom libs with your application and deploy to Azure via Git or FTP. refer to https://azure.microsoft.com/en-us/documentation/articles/web-sites-php-mysql-deploy-use-ftp/ – Gary Liu Jan 29 '16 at 01:07
  • 2
    Sadly this option is no longer available. "Extensions" has been disabled in the Azure dashboard – Bern May 21 '20 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 '21 at 15:18