When I run below code in command prompt:

C:\xampp\php>php C:\xampp\htdocs\magento2\bin\magento indexer:reindex

it is showing as access denied.

1 Answer 1


Reindex in magento 2, go to the CLI and then the root folder of your magento installation and run the below command:

php bin/magento indexer:reindex

If you use linux operating system Check your file permission

Your Answer

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

Not the answer you're looking for? Browse other questions tagged or ask your own question.