0

I am trying to install magento2 via composer using following command. My System specification is PHP Version 7.0.20-1~ubuntu16.04.1

composer create-project --repository-url=https://repo.magento.com/ magento/project-community-edition

I got the following error

Updating dependencies (including require-dev)

Your requirements could not be resolved to an installable set of packages.

Problem 1

- Installation request for magento/product-community-edition 2.1.7 -> satisfiable by magento/product-community-edition[2.1.7].
- magento/product-community-edition 2.1.7 requires php ~5.6.5|7.0.2|7.0.4|~7.0.6 -> your PHP version (7.1.6) does not satisfy that requirement.
asked Jun 11, 2017 at 15:41
1

1 Answer 1

1

Your error message already answered the question.

Magento 2 doesn't support PHP 7.1.x yet, please downgrade it to ~5.6.5|7.0.2|7.0.4|~7.0.6 There is a typo in DevDocs, if you need to know about the detail, please check this GitHub issue.

Good luck and welcome to Magento 2 :)

answered Jun 11, 2017 at 16:13
2
  • I know that, but my PHP Version is 7.0.20-1 and this PHP version is in range of 7.0.2|7.0.4|~7.0.6 Commented Jun 16, 2017 at 6:55
  • It said your PHP version (7.1.6), please notice that PHP CLI might use different version with your PHP FPM. I have 4 PHP version in my webserver too. Commented Nov 19, 2017 at 23:04

Your Answer

Draft saved
Draft discarded

Sign up or log in

Sign up using Google
Sign up using Email and Password

Post as a guest

Required, but never shown

Post as a guest

Required, but never shown

By clicking "Post Your Answer", you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.