- android - RelativeLayout 背景可绘制重叠内容
- android - 如何链接 cpufeatures lib 以获取 native android 库?
- java - OnItemClickListener 不起作用,但 OnLongItemClickListener 在自定义 ListView 中起作用
- java - Android 文件转字符串
我正在尝试将我的 Symfony 2 应用程序部署到 Microsoft Azure 网站云。为此,我按照本指南 http://symfony.com/doc/current/cookbook/deployment/azure-website.html#configure-the-symfony-application 中的步骤进行操作
现在,当我到达“配置 Symfony 应用程序”步骤时,我运行命令 phpcomposer.phar install
。我省略了 -d extension=php_intl.dll
开关,因为扩展已加载。我实际上都尝试过,这没有什么区别。
现在,当运行安装后命令时,我收到以下错误:
[Symfony\Component\Process\Exception\RuntimeException]
Unable to kill the process
我尝试增加 max_execution_time(但无论如何它都设置为 0),并尝试将 app_settings 中的 SCM_COMMAND_IDLE_TIMEOUT
参数设置为 3600 之类的值。仍然不起作用。
有什么想法吗?这是完整的输出:
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
最佳答案
我尝试重现您的问题,但失败了, Composer 在我的 Azure 项目中运行良好。请尝试以下步骤:
1,使用 MySQL 数据库在 Azure 上创建 Web 应用程序并从 git 设置部署。
2、通过cmdlet在本地创建一个新的symfony 2.7项目:
php -r "readfile('http://symfony.com/installer');" > symfony
symfony new my_project
然后将项目部署到 Web 应用程序上。
3、切换回Kudu应用的在线控制台,执行以下命令:
"cd site\wwwroot"
"curl -sS https://getcomposer.org/installer | php"
"php composer.phar install"
4、回答composer安装过程中出现的提示问题。
对我来说效果很好。
顺便说一句,当 Composer 清理项目环境中的缓存时,超时 RuntimeException 似乎有问题。有两种处理方法:
1、我们可以在部署到Azure之前手动清理缓存。
2、我们可以在composer.json
中设置命令执行超时选项。在composer.Json文件中,有这样的代码:
"config": {
"bin-dir": "bin",
"process-timeout":0
},
我们添加“process-timeout:0”来消除命令执行时间的限制。
关于php - Azure 上的 "Unable to kill the process"错误为 "php composer.phar install",我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/31672051/
我实际上使用 wamp 2.5 和 PHP 5.5.12,当我尝试创建一个 时制药文件它返回给我以下消息: Uncaught exception 'UnexpectedValueException'
我正在尝试创建一个带有可执行 stub 的 PHAR 存档。代码: buildFromDirectory('files/'); $phar->setStub($phar->createDefaultS
我将我的 phar 添加到 cache_list php.ini 中的指令和缓存效果很好。几天后我更新了 phar 现在我收到以下错误: Warning: Phar::webPhar(phar:///
首先要做的是:我的 Phars 确实在运行。我正在玩一点,我有以下场景: 应用程序的 Phar(没有任何不规则之处)(application-phar) 第二个 phar,例如用于图书馆。 (lib-
我已将 PHP 应用程序打包到可执行的 Phar 存档 中,并在一个类中放置了一个方法,该方法应访问已执行的 Phar 存档 元数据。 我可以获得如下所示的元数据,但是我在执行的 Phar archi
我正在使用 PHP 构建系统 phing 创建一个 phar 归档文件。 是否有任何已知的科学可以让我自动将 phar.readonly 设置为 0(这将允许创建 phar 到知道)在 phing 运
我正在尝试创建一个 php 可执行文件(一个 phar 文件)来生成一些文件,我想知道如何获取 phar 文件的真实路径(在 phar 文件代码中)。 我想做的是在phar文件的同一级别创建一个文件夹
前言 最近因为工作需要要使用PHP 7,所以从网上找教程进行安装, 结果编译没问题, 安装的时候报了错误。 错误如下 ?
后 composer install PhpStorm 开始索引并卡在“扫描库 PHARS”上。 几个小时后它没有完成。 最佳答案 您可以将 *.phar 添加到 Settings -> Editor
我正在考虑构建我们的 php 应用程序的部署过程,以便构建的输出为在生产中运行应用程序所需的代码生成单个 phar 存档。我想知道以这种方式部署 web 应用程序的性能与 check out 或将源树
我在构建 php 应用程序时遇到问题。 此项目中不存在目标“构建” 在 netbeans php 项目中。 只需发送使用 ubuntu 操作系统在 netbeans IDE 中构建 Phar 和 Co
我将在 php 中启动一个新的门户应用程序,它将包含 5 7 个组件。几个月前我阅读了有关 php phar 的文章,想知道单独创建每个组件的 phar 并以某种方式使用它们是否对我有益。我即将启动该
我只是想知道将静态内容添加到 phar 文件(图像、javascript 或 html 文件)是否合法。如果是这样,我如何让他们为客户服务? 到目前为止我看到的唯一例子是: 但我想这不是一个好方法。
使用phar创建tar.gz压缩包返回一个奇怪的错误,错误信息如下: exception 'BadMethodCallException' with message 'Unable to add ne
我尝试使用 Silex 框架作为我的网络应用程序的基础。但是,如果我尝试包含 *.phar 存档,PHP 会抛出以下错误: Fatal error: Class 'Phar' not found in
我正在尝试使用 Symfony2 控制台库构建 CLI 工具。我有一些基本的工作,现在我想把它打包成 phar。我读过几个示例,但我看到的示例非常简单(3 个文件,没有命名空间等)。 在我的 src/
我需要将配置文件放在我的网络应用程序的 phar 之外。我需要安装它。在我的 stub 文件中我尝试过:
我在 Debian 上使用 PHP 5.3,并根据 php -m 加载“Phar”。 但是执行 php Pyrus.phar 或 php Pyrus.phar config-show 根本不会产生任何
向 Phar 专家提问 假设我有 3 个 php 文件,在每个文件中我打开一个 mysql 连接并执行一些操作。 如果我将这 3 页压缩到一个 Phar 文件中,mysql 连接是否在整个 Phar
我正在尝试安装 composer,但是我无法理解这一行,我需要做什么?我已经尝试转到 github token 设置,但我实际上需要生成哪个 token ?有没有人在安装的时候遇到类似的问题?
我是一名优秀的程序员,十分优秀!