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 1.9.2.2

If your Magento store is patched with the SUPEE-6799 security patch or upgraded to Magento Community Edition 1.9.2.2, 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



  • 11 Users Found This Useful
Was this answer helpful?

Related Articles

503 Error (Service Temporarily Unavailable)

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

500 Error (Internal Server Error)

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

Magento Built-In Backup System (Magento Backup)

We do not recommend clients to use the Magento Built-In Backup System (Magento Backup) as there...

403 Error (Forbidden)

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

Magento Security Patches

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