1

I have a magento site hosted on a hostgator shared plan. It only allows me to run cron jobs which are more than 15 mins. I have used the following format to run the cron job.

*/15    *   *   *   *   php /home/username/public_html/path/cron.php

Still my 'cron_schedule' table is empty. I have also set the cron.php file permission to 755. (Magento ver. 1.9.2.1)

====Update=====

Contacted hostgator, They ran the script manually and still the 'cron_schedule' table is empty.

  • contact hostgator, mostly they will fix for you..... – Baby in Magento Mar 30 '16 at 17:14
  • Contacted host gator. They ran the cron.php script manually and still the 'cron_schedule' table is empty. – Lakshin Karunaratne Mar 30 '16 at 17:54
  • It would be better to change the cronjob to cron.sh instead of cron.php and make sure cron.php is not available from public, as anyone else could trigger your cronjobs then. See also: magento.stackexchange.com/a/63717/231 – Anna Völkl Mar 30 '16 at 18:32
  • */15 * * * * www-data /bin/sh /path/to/magento/cron.sh cron.php -m=default */15 * * * * www-data /bin/sh /path/to/magento/cron.sh cron.php -m=always Added these two cron jobs as well. But still it was also no use – Lakshin Karunaratne Mar 31 '16 at 16:17
2

I Installed a plugin called AOE Scheduler from this url https://www.magentocommerce.com/magento-connect/aoe-scheduler.html

And then i went to schedule -> Job Configuration and clicked Generate Schedule button. Then it gave me an exception. The exception was a about a 3rd party plugin called cron doctor. I uninstalled the plugin and my cron jobs started working fine.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

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