I am using magento 1.
My magento show a warning about:
One or more of the Indexes are not up to date: Product Attributes, Tag Aggregation Data. Click here to go to Index Management and rebuild required indexes.
504 Gateway Time-out
But when I want to re-index. It is loading a long an long time and display
504 Gateway Time-out
So I think there are lots of products in my site. How can I re-index its?
Solved! Go to Solution.
Hello @erik_chan
You can login in SSH and run: php shell/indexer.php reindexall
OR
You can follow the below URL also:
https://stackoverflow.com/questions/14827996/magento-reindexing-price-programmatically
Please Kudos & Accept it as Solution. Cheers coding
Hello @erik_chan
Try raising max_execution_time setting in php.ini or you can reindex using cron as follows:
0 5 * * * php -f /shell/indexer.php reindexall
To reindex all indexes:
php -f indexer.php reindexall
To retrieve a full list of available indexes:
php -f indexer.php info
Then specify the type of index you would like to reindex like so:
php indexer.php --reindex catalog_product_attribute
Below is the full list of individual commands:
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
To retrieve a full list of indexer commands:
php -f indexer.php help
Issue solved, Please Kudos and Accept as a solution. Cheers coding
Hi Manish Mittal
Firstly thanks for your reply
But I am a new beginner for magento. I don't know how to input you provided command?
Hello @erik_chan
You can login in SSH and run: php shell/indexer.php reindexall
OR
You can follow the below URL also:
https://stackoverflow.com/questions/14827996/magento-reindexing-price-programmatically
Please Kudos & Accept it as Solution. Cheers coding