Legacy
...
Administration
Background tasks

Configuring Cron for Linux

9min
the cron job scheduler is a component of the linux operating system it is used to run server side scripts according to a set schedule starting with passwork 5 1 0 there is a special script which is used to run the background tasks /var/www/app/tools/run scheduled tasks php it can be executed manually or set to run on the cron scheduler we recommend that you first test the script in manual mode to do this, run the script cd /var/www/app/tools/ php run scheduled tasks php then, check the file at /var/www/app/logs/run command log for errors your user must have write access to the logs folder setting up cron let's set up run scheduled tasks php to launch every minute open the cron settings file crontab e then add the line php /var/www/app/tools/run scheduled tasks php and save the file testing and troubleshooting open passwork under an administrator's account and open the background tasks page if everything was set up correctly, you will see a message that the scheduler is configured if you see a message that the scheduler is not configured, runtime errors can be found in the log file at /var/www/app/logs/run command log you can forward it to our technical support if you need help with troubleshooting setting up a script to run as non root user by default, cron runs scripts as a root user you can set up another user with limited privileges to increase security first, log in as a required user su user run the script to make sure that everything works correctly under user cd /var/www/app/tools/ php run scheduled tasks php check that user has write rights to the logs folder /var/www/app/logs/ if no errors show up, set up cron for user \# get back to root exit crontab u user e add the following line php /var/www/app/tools/run scheduled tasks php and save the file cron logs to view the cron log, use the following command journalctl u crond