This is an intermittent problem as sometimes order confirmation emails are received, i.e. the cronjob runs automatically and doesn't remain as 'pending' in cron_schedule table. But most of the time it's stuck as pending as cron doesn't run. (php bin/magento cron:run works).

I'm getting mulitple errors in var/log/magento.cron.log:

Magento supports PHP 7.3.0 or later. Please read https://devdocs.magento.com/guides/v2.4/install-gde/system-requirements-tech.html

Although, PHP 7.4.32 is installed and crontab is valid:

/opt/cpanel/ea-php72/root/usr/bin/php /home/****/public_html/bin/magento cron:run 2>&1 | grep -v "Ran jobs by schedule" >> /home/****/public_html/var/log/magento.cron.log

Any ideas?

1 Answer 1


That path looks like php7.2

/opt/cpanel/ea-php72/root/usr/bin/php -v

Paste above command in console, I bet it will show 7.2

And... What about pasting just php -v?

Not sure what would be the right path in your server, maybe replacing that ea-php72 by ea-php74? If not, contact your hosting provider 👍🏼

  • Many thanks. Changing the command to /opt/cpanel/ea-php74/root/usr/bin/php got rid of the error, but it still doesn't run automatically, only manually with php bin/magento cron:run.
    – eleventy
    Oct 30, 2022 at 8:38
  • I've submitted a ticket with the host and will update here 👍
    – eleventy
    Oct 30, 2022 at 11:13
  • Feel free to accept the answer as valid if it helped Oct 30, 2022 at 11:47
  • 1
    Thanks for your help, rep and accept done. I also needed to flush the magento cache. All working now.
    – eleventy
    Nov 1, 2022 at 12:11

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

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