magento / magento2

Prior to making any Submission(s), you must sign an Adobe Contributor License Agreement, available here at: https://opensource.adobe.com/cla.html. All Submissions you make to Adobe Inc. and its affiliates, assigns and subsidiaries (collectively “Adobe”) are subject to the terms of the Adobe Contributor License Agreement.
http://www.magento.com
Open Software License 3.0
11.55k stars 9.32k forks source link

Magento 2.2.0 error during cache clean via CLI command #11682

Closed routbiplab closed 7 years ago

routbiplab commented 7 years ago

Preconditions

  1. Magento v2.2.0
  2. php version v7.0.24
  3. mysql version Ver 14.14

Steps to reproduce

  1. Cache clean via CLI command : php bin/magento cache:clean

Expected result

  1. It would clean all Magento cache with proper response

Actual result

  1. Magento supports 7.0.2, 7.0.4, and 7.0.6 or later. Please read http://devdocs.magento.com/guides/v1.0/install-gde/system-requirements.html Screenshot has been attached: image
orlangur commented 7 years ago

@routbiplab could you please execute php -v and show output here?

routbiplab commented 7 years ago

Sure. Here is the output for php -v: php-version

The server that we are using is a multi-path PHP.

orlangur commented 7 years ago

As you can see, currently PHP5.6 is used in CLI which is not supported by Magento 2.2. You need to setup your server in such a way that PHP7 is used for both web server and CLI.

So observed error is correct system behavior.