azure-templatesmoodle

Configure scheduled tasks

Moodle requires a cron task that must be run regularly. The administrator can do this from the Admin panel’s “Site Administration -> Notifications” menu. To run this task in the background, create a cron job.

To edit the crontab, run the following command:

$ sudo crontab -e

Add the following line to it:

*/15 * * * * sudo su daemon -s /bin/sh -c "/opt/bitnami/php/bin/php /opt/bitnami/moodle/admin/cli/cron.php > /dev/null"

This cron entry will run the script every 15 minutes.

Last modification September 4, 2018