Home > Magento > Magento 1 dan 2 : Re-index via ssh / putty

Magento 1 dan 2 : Re-index via ssh / putty

Magento 1

You are running this command from ROOT and indexer.php is located under shell directory. So try this commands instead:

php shell/indexer.php --reindex catalog_product_attribute

For re-indexing all indexes :

php -f shell/indexer.php reindexall

Listing all commands :

php shell/indexer.php help

php shell/indexer.php --status

php shell/indexer.php info
php shell/indexer.php --reindex catalog_product_attribute
php shell/indexer.php --reindex catalog_product_price
php shell/indexer.php --reindex catalog_url
php shell/indexer.php --reindex catalog_product_flat
php shell/indexer.php --reindex catalog_category_flat
php shell/indexer.php --reindex catalog_category_product
php shell/indexer.php --reindex catalogsearch_fulltext
php shell/indexer.php --reindex cataloginventory_stock
php shell/indexer.php --reindex tag_summary
 Magento 2 to 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

and if you want to reindex only one indexer then write following command:

php bin/magento indexer:reindex indexer_name.

where indexer_name can be found by typing following command :

php bin/magento indexer:info

73 total views, 3 views today

About Andhi Irawan

Leave a Reply

Your email address will not be published. Required fields are marked *