Re-Index Magento Data via SSH

Share It!

All Magento information can be reindexed through the Magento Index Management area in the administrator board. On the other hand, at times the reindexing methodology times out and does not finish. So there is another, quicker approach to reindex your Magento information. To reindex the information physically, you will require SSH access to your facilitating record.


Magento utilizes a great deal of assets to re-record information from the Admin Panel. A decent approach to re-index information without utilizing the administrator board is to utilize summon shell “ssh”. This likewise would work in the event that you happen to be bolted out of the administrator board.

Follow below instruction to re-index information using command shell:

Step 1:Go to ‘shell’ folder in your Magento installation:

# cd shell

Step 2: Execute reindex using following command:

php -f indexer.php reindexall
  • It is possible to get full list of Magento indexer commands using this command:
    php -f indexer.php --help
  • To get a list of available indexes, execute below command:
    php -f indexer.php info 

    After running above command It give’s following Magento indexer list. By default, there are 8 indexes in Magento.

    catalog_product_attribute     Product Attributes
    catalog_product_price         Product Prices
    catalog_url                   Catalog Url Rewrites
    catalog_product_flat          Product Flat Data
    catalog_category_flat         Category Flat Data
    catalog_category_product      Category Products
    catalogsearch_fulltext        Catalog Search Index
    cataloginventory_stock        Stock status
  • If we want to re-index individually, then follow below commands:
    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
  • Leave a Reply

    Your email address will not be published.