"无法杀掉该进程"误差" PHP composer.phar安装"在Azure上 [英] "Unable to kill the process" error with "php composer.phar install" on Azure

查看:312
本文介绍了"无法杀掉该进程"误差" PHP composer.phar安装"在Azure上的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想部署我的Symfony 2应用到微软的Azure云计算网站。
对于这个我下面的步骤与本指南<一个href=\"http://symfony.com/doc/current/cookbook/deployment/azure-website.html#configure-the-symfony-application\">http://symfony.com/doc/current/cookbook/deployment/azure-website.html#configure-the-symfony-application

现在,当我到达步骤配置Symfony的应用程序我运行命令 PHP composer.phar安装。我省略了 -d延长= php_intl.dll 交换机分机已加载。其实我都尝试,它不会有所作为。

现在,在运行时,安装后我碰到下面的错误命令:

  [Symfony的\\分量\\程序\\异常\\的RuntimeException]
无法杀掉该进程

我试图增加的max_execution_time(但它被设置为0,反正),并试图app_settings的 SCM_COMMAND_IDLE_TIMEOUT 参数设置为像3600的值仍然没有工作。

任何想法?
以下是完整的输出:

  D:\\家\\网站\\ wwwroot的&GT; PHP composer.phar安装
 装载作曲家​​储存库包信息从锁定文件安装依赖关系(包括要求-DEV)警告:锁定文件是不是最新的,在composer.json的最新变化。你可能会越来越过时的依赖。运行更新更新它们。没有安装或更新生成自动加载的文件&GT; Incenteev \\ ParameterHandler \\ ScriptHandler :: buildParameters更新应用程序/配置/ parameters.yml文件&GT; SENSIO \\包\\ DistributionBundle \\作曲\\ ScriptHandler :: buildBootstrap&GT; SENSIO \\包\\ DistributionBundle \\作曲\\ ScriptHandler :: clearCache脚本SENSIO \\包\\ DistributionBundle \\作曲\\ ScriptHandler :: clearCache处理与异常终止的安装后,CMD事件  [Symfony的\\分量\\程序\\异常\\的RuntimeException]  无法杀掉该进程安装[ - preFER源] [ - preFER - 距离] [--dry运行] [--dev] [--no-dev的] [--no-插件] [ - 没有自定义安装] [--no-自动加载] [--no-脚本] [--no-进步] [-v | VV | VVV | --verbose] [-o | --optimize-自动加载] [ - 忽略平台的请求数] [packages1] ... [packagesN]
致命错误:未捕获的异常'的Symfony \\分量\\程序\\异常\\ RuntimeException的与消息无法杀死进程的中药业:// D:/家居/网站/ wwwroot文件/composer.phar/vendor/symfony/process/Symfony /Component/Process/Process.php:801
堆栈跟踪:
#0 phar://D:/home/site/wwwroot/composer.phar/vendor/symfony/process/Symfony/Component/Process/Process.php(177): Symfony的\\分量\\程序\\流程 - &GT;停止()
#1 [内部功能]:Symfony的\\分量\\程序\\流程 - &GT; __自毁()
#2主{}
  抛出phar://D:/home/site/wwwroot/composer.phar/vendor/symfony/process/Symfony/Component/Process/Process.php上线801


解决方案

FYI

下面是官方Symfony的下载网站,的https://symfony.com/doc/current/book/installation.html#installing-the-symfony-installer

要安装在Azure上,按照适用于Windows的下载指令。希望它可以提供帮助。

I am trying to deploy my Symfony 2 application to the Microsoft Azure Website Cloud. For this I am following the steps from this guide http://symfony.com/doc/current/cookbook/deployment/azure-website.html#configure-the-symfony-application

Now, when I get to the step "Configure the Symfony Application" I run the command php composer.phar install. I omit the -d extension=php_intl.dllswitch as the extension is already loaded. I actually tried both, it doesn't make a difference.

Now, when running the post-install commands I get the following error:

[Symfony\Component\Process\Exception\RuntimeException]
Unable to kill the process                              

I tried increasing the max_execution_time (but it was set to 0 anyway) and also tried setting the SCM_COMMAND_IDLE_TIMEOUT parameter in app_settings to a value like 3600. Still not working.

Any ideas? Here is the full output:

D:\home\site\wwwroot>php composer.phar install
 Loading composer repositories with package information

Installing dependencies (including require-dev) from lock file

Warning: The lock file is not up to date with the latest changes in composer.json. You may be getting outdated dependencies. Run update to update them.

Nothing to install or update

Generating autoload files

> Incenteev\ParameterHandler\ScriptHandler::buildParameters

Updating the "app/config/parameters.yml" file

> Sensio\Bundle\DistributionBundle\Composer\ScriptHandler::buildBootstrap

> Sensio\Bundle\DistributionBundle\Composer\ScriptHandler::clearCache

Script Sensio\Bundle\DistributionBundle\Composer\ScriptHandler::clearCache handling the post-install-cmd event terminated with an exception







  [Symfony\Component\Process\Exception\RuntimeException]  

  Unable to kill the process                              







install [--prefer-source] [--prefer-dist] [--dry-run] [--dev] [--no-dev] [--no-plugins] [--no-custom-installers] [--no-autoloader] [--no-scripts] [--no-    progress] [-v|vv|vvv|--verbose] [-o|--optimize-autoloader] [--ignore-platform-reqs] [packages1] ... [packagesN]






Fatal error: Uncaught exception 'Symfony\Component\Process\Exception\RuntimeException' with message 'Unable to kill the process' in phar://D:/home/site/wwwroot    /composer.phar/vendor/symfony/process/Symfony/Component/Process/Process.php:801
Stack trace:
#0 phar://D:/home/site/wwwroot/composer.phar/vendor/symfony/process/Symfony/Component/Process/Process.php(177): Symfony\Component\Process\Process->stop()
#1 [internal function]: Symfony\Component\Process\Process->__destruct()
#2 {main}
  thrown in phar://D:/home/site/wwwroot/composer.phar/vendor/symfony/process/Symfony/Component/Process/Process.php on line 801

解决方案

FYI

Here is the official Symfony download site, https://symfony.com/doc/current/book/installation.html#installing-the-symfony-installer

To install on Azure, follow the download instruction for windows. Hope it can help.

这篇关于&QUOT;无法杀掉该进程&QUOT;误差&QUOT; PHP composer.phar安装&QUOT;在Azure上的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
相关文章
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆