Magento: Reindex via SSH

The fastest way to reindex Magento data is manually via SSH. To reindex the Magento data manually, you need to have an SSH access to your web hosting account. All you need to do to reindex your Magento data manually is to log in your hosting account via SSH, go to your Magento installation directory (e.g. /var/www/html) and execute the following command:

php shell/indexer.php reindexall

To reindex individual items execute the below commands:

Category Flat Data:
php shell/indexer.php --reindex catalog_category_flat

Product Flat Data:
php shell/indexer.php --reindex catalog_product_flat

Stock Status:
php shell/indexer.php --reindex cataloginventory_stock

Catalog product price:
php shell/indexer.php --reindex catalog_product_price

Category URL Rewrites:
php shell/indexer.php --reindex catalog_url_category

Product URL Rewrites:
php shell/indexer.php --reindex catalog_url_product

URL Redirects:
php shell/indexer.php --reindex url_redirect

Catalog Category/Product Index:
php shell/indexer.php --reindex catalog_category_product

Catalog Search Index:
php shell/indexer.php --reindex catalogsearch_fulltext

Tag Aggregation Data:
php shell/indexer.php --reindex tag_summary

Product Attributes:
php shell/indexer.php --reindex catalog_product_attribute

Advertisements
Magento: Reindex via SSH