0

I am trying to reindex using the following command from public_html folder (root directory):

php bin/magento indexer:reindex

I have even tried

bin/magento indexer:reindex

I receive the following message:

Magento supports PHP 5.0 or later ...

Another error message:

-bash: bin/magento: Permission Denied.

I am not a programmer. Could someone kindly explain in simple words how to solve this. Many thanks!

Shoaib Munir
9,59210 gold badges54 silver badges109 bronze badges
asked Oct 11, 2017 at 1:09
3
  • What is your PHP version? Enter the command php -v to get this. Commented Oct 11, 2017 at 2:30
  • Try sudo php bin/magento indexer:reindex Commented Oct 11, 2017 at 3:45
  • First upgrade your php version higher than your latest magento version. Commented Oct 11, 2017 at 7:58

1 Answer 1

0

It seems permission issue on bin/magento folder. To fix this issue, execute below command to add permission for the bin/magento.

chmod u+x bin/magento
answered Oct 11, 2017 at 5:46

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.