Crontab

Hi All,

suitecrm installed on Ubuntu 16.04, mit Apache 2.2, Php 7.

How do I run crontab ? and where do I place my cron in order to run ? (what file permission is needed ??)

Thanks

Cedric

There are two ways, first is using the system-wide crontab:

sudo nano /etc/crontab

add this line (check if this is really your web server name and your web root directory, but they should be correct for your Ubuntu 16.04):

*  *    * * *   www-data cd /var/www/html; php -f cron.php > /dev/null 2>&1

The alternative way is to edit the crontab of www-data:

sudo crontab -e -u www-data

add this line (this time without user name column):

*  *    * * *  cd /var/www/html; php -f cron.php > /dev/null 2>&1

Thank you so much for your help. How do I check if my cron is running smoothly? My workflow is running well now but the scheduler shows No successful run status.

I don’t know, you should be seeing a data and time in the “Last successful run” field of every active scheduler…

You can tweak the level of your logs, at some point (not sure which, maybe DEBUG) it will start including information about cron jobs starting and finishing.