简体   繁体   中英

How to use PHP 5.6 (or later) on cloudControl?

I have a Symfony 3.0 application that I want to deploy on cloudControl. The app is running on the pinky stack; my composer.json requires PHP >=5.5.9

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

When I try to push, I get

...
-----> 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.

The phpinfo() of the pinky stack shows, that PHP 5.6.12 is running.

How do I have to modify my composer.json (or any other file in my application) to make this run in PHP 5.6?

There is a blog post, about how to use specific PHP versions and extensions.

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

Since all systems are 64bit, you have to use eg:

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

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM