Skip to content

Instantly share code, notes, and snippets.

@luizventurote
Created October 17, 2016 16:00
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save luizventurote/152691e1cb093b1ba4fc924ed88074e5 to your computer and use it in GitHub Desktop.
Save luizventurote/152691e1cb093b1ba4fc924ed88074e5 to your computer and use it in GitHub Desktop.
Magento Cron configuration

Magento 1

Log in to the server via SSH. Run crontab -e command to add a cron task.

Add these lines on file:

MAILTO="webmaster@example.com"
*/5 * * * * php -f /var/www/html/cron.php
0 2 * * * php -f /var/www/html/shell/indexer.php reindexall
0,30 * * * * php -f /var/www/html/shell/indexer.php -- -reindex cataloginventory_stock
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment