For all enquiries please call or email us. 01484 506220info@designthatfits.co.uk

Magento - Reindex using SSH

Magento indexes can take ages to process if you run them via your dashboard. If you have access to SSH, or a crontab you could make the process much quicker.
Mar 26, 2015
Magento indexes can take ages to process if you run them via your dashboard. If you have access to SSH, or a crontab you could make the process much quicker.

If you have ever used the Magento Index Management (System -> Index management) section within your admin dashboard you will know just how long refreshing the indexes can take, particularly if you run a larger shop.

Login to your your server using SSH, find your magento root folder (probably within httpdocs of public_html), and then jump into the "shell" directory.

Once here you can run each individual process by executing one of the following 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

If you wish to re-index everything at once, use the following command:

php ./indexer.php -reindexall

Depending on any Magento extensions you have installed you might have more indexes than the ones listed above. To find out what is available in your installation you can use the following command to pull up a list:

php ./shell/indexer.php info

Return to articles
Fishpig's Wordpress extension was a key part of any magento 1.9.x project. This hasn't changed with Magento 2, but...
Marketing automation is a great asset for any business and once set up requires very little maintaining.
If you use plesk to run Magento 2 you might find difficulty when you come to run bin/magento commands
We'd suggest adding address lookup to the checkout.

Businesses can trust us to deliver effective online marketing solutions. Find out why.

Speak to an expert