Reindex Magento Data 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. More information on how to access your SiteGround account via SSH can be found in this tutorial.

Once you access your hosting account via SSH go to your Magento installation directory (e.g. public_html/store) and execute the following command, depending on the version of your Magento application:

  • Magento 1.9.x and older:

/usr/local/php56/bin/php-cli -f shell/indexer.php reindexall

  • Magento 2.x and newer:

/usr/local/php56/bin/php-cli bin/magento indexer:reindex

This command will reindex data by all indexers.

You need help with a shopping cart? SiteGround is specialized in eCommerce hosting and provides expert support for a large number of shopping carts. Check out our shopping cart hosting services!