Skip to content

Magento 2.4.3-p3 cron not running, but works manually

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?