Why is Magento cron job not working?

cPanel + CageFS and CloudLinux's PHP switcher may cause problems with Magento CRON. Until this is fixed, you can get the cron working by tweaking the cron.sh file:

PHP_BIN=`which php`

to

PHP_BIN="/usr/local/bin/php"

in your cron.sh file on line 14.

.
  • 1 Users Found This Useful
Was this answer helpful?

Related Articles

How to add and edit attribute sets in Magento

Each product that you add in Magento can be configured thanks to a set of attributes. These are...

Migrating your CMS from one server to another one

From time to time, you may need to push your CMS from your staging env to your production...

Magento Security Tips

E-commerce Site VulnerabilitiesMost e-commerce platforms and payment gateways possess the same...

How to add a custom link to the top navigation in Magento

By default, Magento's top navigation contains links to your product categories. But what if you...

SQLSTATE[23000]: Integrity constraint violation: 1062 Duplicate entry '2828-148-1-471' for key 'PRIMARY'

While trying to reindex your store using the command line, you stumble on the following...