So on the server, there is a bunch of WordPress installs and their cron jobs seem to be running. Going over the server with Support they can’t see anything wrong and that cron seems to be ok.
It looks like the cron jobs aren’t running from the directory where suitecrm is , but other places it’s ok.
I’ve checked the php.ini for that directory and made sure that “allow_url_fopen” and “allow_url_include” are enabled (some googling suggested this). But still no go.
Any idea why cron jobs wouldn’t be running on only this directory?
starting from 7.11.5 SuiteCRM supports PHP 7.3
otherwise the minimum version has to be 5.6
so we can rule that out.
unsure if you have the same functionality in cpanel but in plesk you have an option to send anything printed to stderr during the cron task in an email
you’ll have to drop the > /dev/null 2>&1 part on the end as this discards anything sent to stderr and stdout
Do you have at least one job with “last ran successfully” at a recent time?
That would show that your cron set up is running fine; which basically means that Linux is doing its job of calling cron.php.
But then cron.php starts doing a bunch of jobs, and some of them might fail: so your problem with the Workflow job would be something else, and a matter for debugging or going through the logs (both)
I suspect the “permission denied” was when the cron command generated an error, and it was trying to write to /var/log, which you probably don’t have access to.
You should just put it back to /dev/null, or if you really what to log it, maybe pick another directory that you are sure you have write access to.