The below has basic instructions for setting up the Cron In a Cpanel.
- Firstly go to the Cron Area in your Cpanel
- In the Add New Cron Job Area, Drop down Common Setting to Once Per Five Minutes (*/5 * * * *) This set the cron to run every 5 minutes
- In the Command Field put in one of these (the exact one depends on your server setup, you could ask your host which you need or try them all on at a time)
- */5 * * * * /bin/sh /[magento_path]/cron.sh
- */5 * * * * /bin/bash /[magento_path]/cron.sh
- */5 * * * * /usr/bin/php /[magento_path]/cron.php
- */5 * * * * /usr/local/bin/php -f /[magento_path]/cron.php
- Personally I aslo add >/dev/null 2>&1 to the end of the command line so that and email isn’t sent out every 5 minute on execution of the cron.
Thanks for sharing such a great article, really i had been looking for help in creating cron job, i found one post here: https://www.cloudways.com/blog/setup-magento-cron-job/ , i got help from both posts, helped me a lot and i have created the cron job for email.
Thank you for this tutorial for setup Magento cron job. I have gone through several tutorial but I find your tutorial one of the best to solve my issue while implementing the code. Also I have seen other tutorials including https://magenticians.com/how-to-setup-cron-job-in-magento/