Rebuilt Magento Indexes in terminal with php-cli

by cliper Tuesday, December 07, 2010 5:25 PM

 

For the past 6 months, had been doing a lot of work with Magento. I’ve notice that the more I know the whole thing, the more I don’t want to share about it. Well, I still like to share some things though… so now it’s time to give some tips/tricks…

In your terminal do:

cd /magento/shop/path/shell/

where “/magento/shop/path” is your magento rooth path. For e.g. (in live terminal)

user:~$ cd /home/cliper/magento/shell/

after that, you can run the indexer by doing:

php indexer.php reindexall

that will re-index all available indexes in magento.

Well, you can always run it in one command like:

php /home/cliper/magento/shell/indexer.php reindexall

For help on how to use the indexer and available arguments do:

php indexer.php

For a list of available indexes do:

php indexer.php info

and you should be able to see a list of indexes something like this:

catalog_product_attribute     Product Attributes

catalog_product_price         Product Prices

...                           ...

 

 

Add comment


(Will show your Gravatar icon)

  Country flag

biuquote
  • Comment
  • Preview
Loading



About the author

Author's PhotoI enjoy web developing and would like to share my thoughts of it.

Send mailE-mail me

Most comments

Calendar

<<  February 2012  >>
MoTuWeThFrSaSu
303112345
6789101112
13141516171819
20212223242526
2728291234
567891011

View posts in large calendar