doue1925 2017-04-19 03:48
浏览 48

无法安装Composer Azure Server

I'm trying install composer on azure portal from extension and it throw:

Failed to install Composer - ExitCode: -1073741819, Output: D:\home\SiteExtensions\ComposerExtension># Install Composer D:\home\SiteExtensions\ComposerExtension>cd Commands D:\home\SiteExtensions\ComposerExtension\Commands>IF EXIST composer.phar (rm -f composer.phar ) D:\home\SiteExtensions\ComposerExtension\Commands>IF NOT EXIST "D:\local\AppData\Composer" (mkdir "D:\local\AppData\Composer" ) D:\home\SiteExtensions\ComposerExtension\Commands>IF NOT EXIST "D:\local\LocalAppData\Composer" (mkdir "D:\local\LocalAppData\Composer" ) D:\home\SiteExtensions\ComposerExtension\Commands>php -r "readfile('https://getcomposer.org/installer');" | php, Error: '#' is not recognized as an internal or external command, operable program or batch file., Kudu.Core.Infrastructure.CommandLineException: '#' is not recognized as an internal or external command, operable program or batch file. D:\home\SiteExtensions\ComposerExtension\install.cmd at Kudu.Core.Infrastructure.Executable.ExecuteInternal(ITracer tracer, Func2 onWriteOutput, Func2 onWriteError, Encoding encoding, String arguments, Object[] args) at Kudu.Core.Infrastructure.Executable.ExecuteWithProgressWriter(ILogger logger, ITracer tracer, String arguments, Object[] args) at Kudu.Core.SiteExtensions.SiteExtensionManager.<>c__DisplayClass25_1.b__1() at Kudu.Core.Infrastructure.OperationManager.<>c__DisplayClass2_0.b__0() at Kudu.Core.Infrastructure.OperationManager.Attempt[T](Func1 action, Int32 retries, Int32 delayBeforeRetry, Func2 shouldRetry) at Kudu.Core.Infrastructure.OperationManager.Attempt(Action action, Int32 retries, Int32 delayBeforeRetry) at Kudu.Core.SiteExtensions.SiteExtensionManager.d__25.MoveNext() --- End of stack trace from previous location where exception was thrown --- at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task) at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task) at Kudu.Core.SiteExtensions.SiteExtensionManager.d__24.MoveNext()

Thank for your help.

  • 写回答

1条回答 默认 最新

  • douchongzhang9267 2017-04-19 06:03
    关注

    In my test, it seems due to the build in PHP runtime version. I will reproduce your issue if I set the PHP version to 7.1 in Azure portal. But the composer extension will be installed fine if I downgrade the build in PHP version to 7.0.

    So currently, you can downgrade the PHP runtime to 7.0 as a workaround. Or try to manually download composer.phar extension in your project.

    评论

报告相同问题?

悬赏问题

  • ¥15 如何在scanpy上做差异基因和通路富集?
  • ¥20 关于#硬件工程#的问题,请各位专家解答!
  • ¥15 关于#matlab#的问题:期望的系统闭环传递函数为G(s)=wn^2/s^2+2¢wn+wn^2阻尼系数¢=0.707,使系统具有较小的超调量
  • ¥15 FLUENT如何实现在堆积颗粒的上表面加载高斯热源
  • ¥30 截图中的mathematics程序转换成matlab
  • ¥15 动力学代码报错,维度不匹配
  • ¥15 Power query添加列问题
  • ¥50 Kubernetes&Fission&Eleasticsearch
  • ¥15 報錯:Person is not mapped,如何解決?
  • ¥15 c++头文件不能识别CDialog