[root@root]$ pwd
/home/mcomerce
[root@root]$ ls
access-logs etc perl5 public_ftp ssl www
cpbackup-exclude.conf mail php.ini public_html tmp
[root@root]$ cd public_html/shell
[root@root]$ ls
abstract.php compiler.php indexer.php log.php
[root@root]$ php -f indexer.php help
  --status             Show Indexer(s) Status
  --mode               Show Indexer(s) Index Mode
  --mode-realtime      Set index mode type "Update on Save"
  --mode-manual        Set index mode type "Manual Update"
  --reindex            Reindex Data
  info                          Show allowed indexers
  reindexall                    Reindex Data by all indexers
  help                          This help
       Comma separated indexer codes or value "all" for all indexers
[root@root]$ php -f indexer.php info
catalog_product_attribute     Product Attributes
catalog_product_price         Product Prices
catalog_url                   Catalog Url Rewrites
catalog_product_flat          Product Flat Data
catalog_category_flat         Category Flat Data
catalog_category_product      Category Products
catalogsearch_fulltext        Catalog Search Index
cataloginventory_stock        Stock status
tag_summary                   Tag
[root@root]$ php -f indexer.php -- -reindex catalog_url
Catalog URL Rewrites index was rebuilt successfully

Leave a reply

Your email address will not be published.