【问题标题】:How to use PHP 5.6 (or later) on cloudControl?如何在 cloudControl 上使用 PHP 5.6(或更高版本)?
【发布时间】:2016-03-26 22:41:45
【问题描述】:

我有一个 Symfony 3.0 应用程序,我想部署在 cloudControl 上。该应用程序正在pinky 堆栈上运行;我的composer.json 需要 PHP >=5.5.9

"require": {
    "php": ">=5.5.9",
    ...
}

当我尝试推动时,我得到了

...
-----> WARN: No php version found in composer.json. Falling back to legacy build.
...
Your requirements could not be resolved to an installable set of packages.

  Problem 1
    - This package requires php >=5.5.9 but your PHP version (5.4.45) does
      not satisfy that requirement.

phpinfo() of the pinky stack 表明 PHP 5.6.12 正在运行。

如何修改我的composer.json(或我的应用程序中的任何其他文件)才能使其在 PHP 5.6 中运行?

【问题讨论】:

    标签: php version cloudcontrol symfony


    【解决方案1】:

    有一篇博文,关于如何使用特定的 PHP 版本和扩展。

    http://www.paasfinder.com/custom-php-version/

    由于所有系统都是 64 位的,你必须使用例如:

    {
        "require": {
            "php-64bit": "5.6.12"
        }
    }
    

    【讨论】:

      猜你喜欢
      • 2017-01-11
      • 2017-08-27
      • 2015-08-27
      • 2017-07-05
      • 1970-01-01
      • 2022-06-13
      • 1970-01-01
      • 2017-04-25
      • 1970-01-01
      相关资源
      最近更新 更多