Cron

ITFlow comes with an array of PHP scripts that are meant to be executed automatically using Cron. The operation of scripts via Cron guarantees that actions are carried out autonomously in the background, eliminating the need for a user to be logged in. We strongly recommend configuring cron.

Cron Activation & Key

For the sole execution of the scripts by Cron, not by an arbitrary user or bot visiting the pages, it is necessary to activate Cron and generate a Cron Key.

Sign in to ITFlow with administrative rights. Proceed to Settings > Notifications:

Cron Script 2.0 as of 2024-10-27

If installed by script after the date above location will now be /etc/cron/cron.d/itflow

0 2 * * * www-data /usr/bin/php /var/www/install.dev.itflow.org/cron.php hhy4rK5R0jaSRP4ao9Oq
* * * * * www-data /usr/bin/php /var/www/install.dev.itflow.org/cron_ticket_email_parser.php hhy4rK5R0jaSRP4ao9Oq
* * * * * www-data /usr/bin/php /var/www/install.dev.itflow.org/cron_mail_queue.php hhy4rK5R0jaSRP4ao9Oq
Cron Scripts

The following scripts should be added to your Cron:

Please note: Swap [KEY] with your actual Cron key, and don't include the brackets [ ]

Example
# /etc/crontab: system-wide crontab

# ITFlow - Nightly cron script
0  02   * * *   root    php /var/www/pr-review-base.itflow.org/cron.php 4PlrCJ2kJ5cvf4jnJmoB2E1oTY4PsX8w 2>&1 | logger -t itflow-nightlycron