Skip to content

Setting Up Cron Jobs for MantisBT

Published: at 06:22 AM

There are two primary cron jobs in Mantis BT; one to dispatch emails and another is an event for all plugins to hook into.

Setting Up the Email Dispatch Cron Job

The scripts/send_emails.php script is responsible for sending out emails when the configuration $g_email_send_using_cronjob is set to ON. It is recommended to run this job every 5 minutes.

5 * * * /usr/bin/php <path to mantisbt root>/scripts/send_emails.php

Replace <path to mantisbt root> with the actual path to your MantisBT installation.

ref: MantisBT Email Configuration Guide

Setting Up the Plugin Events Cron Job

The scripts/cronjob.php script was introduced to allow all plugins to hook into a single cron job event. It is recommended to run this job every hour.

0 * * * * /usr/bin/php <path to mantisbt root>/scripts/cronjob.php

Replace <path to mantisbt root> with the actual path to your MantisBT installation.

ref: MantisBT Developers Guide

Note


Previous Post
Fixing/Aligning GitHub Repo with Its .gitignore
Next Post
Monitor Colour Calibration on Windows