meta data for this page
  •  

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
cron [2023/05/01 21:30] johnnycron [2026/08/30 22:45] (current) – clarify steps to enable cron wrongecho
Line 1: Line 1:
-The following scripts should be added to your CRON: +====== Cron ======
-  * php /full/path/to/**cron.php** [KEY] -- should execute at 12AM daily +
-  * php /full/path/to/**cron_ticket_parse.php** [KEY] -- should execute every min+
  
-The [KEYcan be found **Settings** > **Alerts** > **Cron Key**+ITFlow includes PHP script designed to run automatically via [[https://en.wikipedia.org/wiki/Cron|Cron]], ensuring background tasks execute without user interaction. We strongly recommend configuring Cron.
  
-Also Cron must be enabled in this area as well.+ 
 +==== Script purposes ==== 
 +All Cron scripts are located in the ''/cron/'' directory. There are several different Cron scripts, each with a particular related purpose. The scheduling of each is managed by ''cron.php''
 +  * ''nightly_tasks.php'' - Daily maintenance tasks (cleanup, auto-closing resolved tickets, alerts, recurring invoices, etc.) 
 +  * ''mail_queue.php'' - Sends e-mails (SMTP) 
 +  * ''ticket_email_parser.php'' - Reads e-mails and creates/updates tickets (IMAP) 
 +  * ''domain_refresher.php'' - Updates domain details (expiry, records, whois) 
 +  * ''certificate_refresher.php'' - Updates certificate details (expiry, issuer, key) 
 + 
 +   
 +==== Crontab file ==== 
 + 
 +To setup the scheduled tasks, copy the [[https://github.com/itflow-org/itflow-install-script/blob/main/cron.d-itflow|provided cron.d-itflow file]] to your system's cron directory (e.g. ''/etc/cron.d/itflow''). 
 + 
 + 
 +==== Cron Activation ==== 
 +You must then activate Cron within ITFlow: 
 + 
 +  * Sign in to ITFlow with administrative rights. 
 +  * Navigate to **Settings** > **Cron** 
 +  * Enable Cron 
 + 
 +{{::cron_switched_off.png?direct&900 |}}