Running Magento 1 Reindexes from the Shell
Reindexing from the admin can time out on bigger catalogues. Magento 1 includes a command-line indexer that has no such limit.
Rebuild every index
php -f shell/indexer.php reindexall
See all options
php -f shell/indexer.php help
List the indexes
Use the codes this returns to reindex just one area, for example with --reindex catalog_product_price:
php -f shell/indexer.php info
Heads up: this guide applies to Magento 1, which stopped receiving official security updates in June 2020. If your store still runs it, plan a move to Magento 2 or Adobe Commerce soon. We can help with the migration.
Need a second pair of eyes on this? Our team handles Magento development every week. See how we can help.