cancel
Showing results for 
Search instead for 
Did you mean: 

Reindex command isn't working

SOLVED

Reindex command isn't working

Hi folks

 

I've installed Magento 2 on W7 running on localhost via wamp server 3.0.6.

 

Everything was going fine until I had to reindex..

 

I've found this command

 

fire this command from magento root via terminal

reindex all : php bin/magento indexer:reindex

reindex perticuler : php bin/magento indexer:reindex indexer_name

Where indexer_name Should be catalog_category_product,catalog_product_category,catalog_product_price,catalog_product_attribute,cataloginventory_stock,catalogrule_rule,catalogrule_product,catalogsearch_fulltext.

 

on stackoverflow but I get the next error:

 

'php' is not recognized as an internal or external command,
operable program or batch file.

 

Why? I'm running the code on this directory

C:\wamp64\www\Magento

 

So what I do is this:
C:\wamp64\www\Magento php bin/magento indexer:reindex

 

Thanks in advance (I'm new to Magento, so please keep that in my while suggesting something)

1 ACCEPTED SOLUTION

Accepted Solutions

Re: Reindex command isn't working

solved by installing composer

View solution in original post

1 REPLY 1

Re: Reindex command isn't working

solved by installing composer