Cron (automatic tasks) setup Setting Moodle up for run tasks automatically Login to server as root Open crontabcrontab -e Add the below line to crontab (replacing moodlefolder with the actual Moodle folder) */5 * * * * /usr/bin/php /var/www/moodlefolder/admin/cli/cron.php >/dev/null The above example will run the command every 5 min