Configuring Cron for Linux
The Cron job scheduler is a component of the Linux operating system. It is used to run certain scripts on a server at the right time, according to a schedule.
Starting with version 5.1.0 there is a special script which is responsible for running the background tasks:
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
Check the file/var/www/app/logs/run-command.log for errors
💡 Your user must have write access to the folder logs
Let's set up a launchrun-scheduled-tasks.php for every minute.
Open the Cron settings file
Add a line
Save the file.
Go to Passwork under the administrator and open the Background tasks page.
If configured 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/var/www/app/logs/run-command.log. It can be sent to Passwork Technical Support for details.
By default, cron runs scripts as a userroot. You can set up another user with more limited privileges to increase security measures.
First, log in as a required useruser:
Run the script to make sure that the nameuser everything works correctly.
Check that you haveuser have write rights to
If the script worked without errors, set up a cron for the useruser
Add a line
And save the file.
To view the crone log, use the command