The SuiteCRM cron job is buggy. :(
A couple of changes need to be made:
-
the path to the cron.php is wrong in the cron job. It's currently cron.php but should be public/legacy/cron.php.
-
in the default config, the www-data user needs to be added as an allowed user in public/legacy/config.php. I.e. once added it should look like this (snippet):
'cron' =>
array (
'max_cron_jobs' => 10,
'max_cron_runtime' => 30,
'min_cron_interval' => 30,
'allowed_cron_users' =>
array (
0 => 'www-data',
),
),
Note the change is swapping the default user to www-data.
The SuiteCRM cron job is buggy. :(
A couple of changes need to be made:
the path to the
cron.phpis wrong in the cron job. It's currentlycron.phpbut should bepublic/legacy/cron.php.in the default config, the
www-datauser needs to be added as an allowed user inpublic/legacy/config.php. I.e. once added it should look like this (snippet):Note the change is swapping the default user to
www-data.