Table of Contents
To work properly, Kanboard requires that a background job run on a daily
basis. Usually on Unix platforms, this process is done by cron
.
This background job is necessary for these features:
There are multiple ways to define a cronjob on Unix/Linux operating systems, this example is for Ubuntu 14.04. The procedure is similar for other systems.
Edit the crontab of your web server user:
sudo crontab -u www-data -e
Example to execute the daily cronjob at 8am:
0 8 * * * cd /path/to/kanboard && ./cli cronjob >/dev/null 2>&1
Note: the cronjob process must have write access to the database in case you are using Sqlite. Usually, running the cronjob under the web server user is enough.
Before to configure the recurring task, create a batch file (.bat or.cmd) that run the Kanboard CLI script.
Here is an example (C:\kanboard.bat
):
"C:\php\php.exe" -f "C:\inetpub\wwwroot\kanboard\cli" cronjob
You must change the path of the PHP executable and the path of the Kanboard’s script according to your installation.
Configure the Windows Task Scheduler:
In case your hosting provider doesn't offer CLI access, you can run cron jobs by calling a URL. The URL is protected using the webhook token and should be called via HTTPS for added security.
Cron job URL (with URL rewriting enabled):
https://domain.tld/cronjob?token=WEBHOOK_TOKEN_HERE