1

I tried to reindex using SSH. Here is one of the commands I used -

php -f indexer.php --reindexall

and here is the result which i am getting -

Usage:  php -f indexer.php -- [options]

  --status <indexer>            Show Indexer(s) Status
  --mode <indexer>              Show Indexer(s) Index Mode
  --mode-realtime <indexer>     Set index mode type "Update on Save"
  --mode-manual <indexer>       Set index mode type "Manual Update"
  --reindex <indexer>           Reindex Data
  info                          Show allowed indexers
  reindexall                    Reindex Data by all indexers
  help  
11
  • where do you execute this command from?
    – OSdave
    Commented Aug 27, 2015 at 15:29
  • from the shell folder in magento root Commented Aug 27, 2015 at 16:00
  • then it must be something of your environment, what is the server's OS?
    – OSdave
    Commented Aug 27, 2015 at 16:01
  • CentOS I came to magento root and this worked now: php -f indexer.php --reindexall Commented Aug 27, 2015 at 16:06
  • so your indexer.php in in MAGENTO_ROOT??? this is not where it is supposed to be
    – OSdave
    Commented Aug 27, 2015 at 16:08

3 Answers 3

4

The reindexall command is without the --.

So php -f indexer.php reindexall should work!

0
php -f shell/indexer.php reindexall

OR

php shell/indexer.php --reindex catalog_product_attribute
php shell/indexer.php --reindex catalog_product_price
php shell/indexer.php --reindex catalog_url
php shell/indexer.php --reindex catalog_product_flat
php shell/indexer.php --reindex catalog_category_flat
php shell/indexer.php --reindex catalog_category_product
php shell/indexer.php --reindex catalogsearch_fulltext
php shell/indexer.php --reindex cataloginventory_stock
0

Connect your Magento store with SSH and use cd command to go to MAGENTO_ROOT/shell.

Now run the following commands on by one:

php indexer.php help

php indexer.php --status

php indexer.php info

php indexer.php --reindexall

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.