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
Another way to install composer
- Navigate to your azure portal
- Click on SSH
- Type curl -sS https://getcomposer.org/installer | php
-
2Particularly 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.– esjayApr 29, 2018 at 9:35
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.
After installing, you also can install Visual Studio Online extension or leverage Kudu console site to handle or run commands of your Apps.
-
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 LiuJan 29, 2016 at 1:07
-
2Sadly this option is no longer available. "Extensions" has been disabled in the Azure dashboard– BernMay 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. Nov 12, 2021 at 15:18