How to Indexing Magento from command line directly without admin login

Here is the easy way to indexing Magento indexing  from command line without administration login.

All

<pre>php -f MAGE_INSTALLATION_DIR/shell/indexer.php reindexall

Individual indexing

php -f MAGE_INSTALLATION_DIR/shell/indexer.php -- --reindex catalog_product_attribute
php -f MAGE_INSTALLATION_DIR/shell/indexer.php -- --reindex catalog_product_price
php -f MAGE_INSTALLATION_DIR/shell/indexer.php -- --reindex catalog_url
php -f MAGE_INSTALLATION_DIR/shell/indexer.php -- --reindex catalog_product_flat
php -f MAGE_INSTALLATION_DIR/shell/indexer.php -- --reindex catalog_category_flat
php -f MAGE_INSTALLATION_DIR/shell/indexer.php -- --reindex catalog_category_product
php -f MAGE_INSTALLATION_DIR/shell/indexer.php -- --reindex catalogsearch_fulltext
php -f MAGE_INSTALLATION_DIR/shell/indexer.php -- --reindex tag_summary
php -f MAGE_INSTALLATION_DIR/shell/indexer.php -- --reindex cataloginventory_stock

Note that MAGE_INSTALLATION_DIR should be Absolute Directory like /var/www/magento

Leave a Reply

Your email address will not be published. Required fields are marked *