How to set up the cron job for Magento
Setting up the cronjob using shell access
- Before setting up a new cron job, check that it has not been set up yet. Use the following command to get a list of cron jobs:
crontab -l
- To add a new cron task, open crontab for editing:
crontab -e
- Add the following record to the end of the list of jobs:
* * * * * /[path_to_php]/php -f /[path_to_magento]/cron.php >> /[path_to_magento]/var/log/cron.log 2>&1
Setting up the cron job using a control panel (CPanel, Plesk, etc)
- Open settings of cron jobs in your control panel.
- Before setting up a new cron job, check that it has not been set up yet.
- Add a new cron job with the following parameters:
- Minute: *
- Hour: *
- Day: *
- Month: *
- Weekday: *
- Command: /[path_to_php]/php -f /[path_to_magento]/cron.php >> /[path_to_magento]/var/log/cron.log 2>&1
- Click the button Click Add New Cron Job.
Was this page helpful?
Your feedback about this content is important.
Let us know what you think.