
finding the right place on your system to put the command. There are essentially two steps to implementing cron: See the later sections for your server type this section contains some general background information. 9 Scaling up cron with multiple processes. 5 Running cron for several Moodle servers. 1.3 Finding the right place to put the command. 1.1 Working out the Moodle cron command. On Unix based systems this list is a file called a 'crontab' which all users have. Most shared hosting systems use CPanel to manage sites, and usually will have a section for Cron Jobs on the panel.Įssentially, the task involves adding a single command to the list of cron activities on your system. On shared hosting, you should find the documentation (or ask support) how cron is configured. On Windows the simplest solution is to create a task in the Windows Task Scheduler and set it to run at regular intervals. The cron program (that runs the Moodle script) is a core part of Unix-based systems (including Linux and OSX) being used to run all manner of time-dependent services.
It is recommended that the cron is run every minute, as required for asynchronous activity deletion when using the recycle bin. Your site will not work properly without it. IMPORTANT: Do not skip setting up the cron process on your server for your Moodle. The Moodle cron script runs different tasks at differently scheduled intervals. The Moodle 'cron' process is a PHP script (part of the standard Moodle installation) that must be run regularly in the background.