Magento Reindex from shell

Go to the Shell folder

 cd root_folder/shell

To execute full reindex, use the below command

php -f indexer.php reindexall

Commands for individual reindexes are given below

php indexer.php --reindex catalog_product_attribute
php indexer.php --reindex catalog_product_price
php indexer.php --reindex catalog_url
php indexer.php --reindex catalog_product_flat
php indexer.php --reindex catalog_category_flat
php indexer.php --reindex catalog_category_product
php indexer.php --reindex catalogsearch_fulltext
php indexer.php --reindex cataloginventory_stock
php indexer.php --reindex tag_summary


2 comments on “Magento Reindex from shell

  1. Pingback: Unable to Reindex / Indexes stuck at Processing in Magento |

  2. In some situation when you want to re-index Magento catalog you will get an error message or reindex process will be broken. This problem is appearing when you have a lot of products in database and limited server resource. You can try to reindex from command line or shell. In Magento there is folder with name shell in this folder you will find file with name indexer.php this is shell script for reindexing. You will ask yourself how to call this script, and take a look on my examples below and everything will be clear.

Leave a Reply

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