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.
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:
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
The following scripts should be added to your Cron:
sudo -u www-data php /full/path/to/cron.php [KEY]
– This should run daily at 2 AM for tasks such as cleanup, auto-closing resolved tickets, alerts, recurring invoices, and more.sudo -u www-data php /full/path/to/cron_ticket_email_parser.php [KEY]
– This should run every minute: it interprets emails and creates/updates ticketssudo -u www-data php /full/path/to/cron_mail_queue.php [KEY]
– This should run every minute: it's used for in-app email sendingsudo -u www-data php /full/path/to/cron_domain_refresher.php [KEY]
– This should run every day: each run will update the details of the oldest updated domainsudo -u www-data php /full/path/to/cron_certificate_refresher.php [KEY]
– This should run every day: each run will update the details of the oldest updated certificates.Please note: Swap [KEY] with your actual Cron key, and don't include the brackets [ ]