Magento Cron Job

With Magento version 1.8.x and 1.9.x, some users are facing issues where the Magento Cron Job is not executing properly. 

This is a known bug in Magento's Cron Job system but it has not been resolved to date and it can seriously hamper website operations especially when Magento 1.9.x now requires the Cron Job to send out emails

If you have ruled out all other issues with the Cron Job, follow the steps below to fix this bug for your Magento store.

Open up the cron.php file in your Magento root directory (usually "public_html") and look for the following line of codes:-
$isShellDisabled = (stripos(PHP_OS, ‘win’) === false) ? $isShellDisabled : true;

Add the following codes in a new line exactly after the above line of codes:-
$isShellDisabled = true;

SUPEE-6788 and Magento Community Edition

If your Magento store is patched with the SUPEE-6799 security patch or upgraded to Magento Community Edition, you will need to make sure that your Cron Job is configured not to use CURL or WGET but instead execute by PHP instead:-
/usr/local/bin/php -f /home/<cPanelUsername>/public_html/cron.php

  • Email, SSL
  • 5 Users Found This Useful
Was this answer helpful?

Related Articles

How do I set the correct file permissions for Magento?

Magento installation out of the box does not use the correct and safe file permissions for our...

500 Error (Internal Server Error)

If you see a 500 Internal Server Error error, your Disk Space usage is most likely full. You...

Magento Security Patches

From time to time Magento will release patches for security vulnerabilities or simply standard...

503 Error (Service Temporarily Unavailable)

If you see a 503 Service Temporarily Unavailable error, go to the directory you install...

403 Error (Forbidden)

If you see a 403 Forbidden error, there can be a few reasons that causes it:-1. Wrong File...