Note: You are currently viewing documentation for Moodle 2.2. Up-to-date documentation for the latest stable version is available here: Cron.

Cron: Difference between revisions

From MoodleDocs
(copying recent changes from 21 wiki)
(Expanded the introduction a bit.)
Line 1: Line 1:
{{Installing Moodle}}
{{Installing Moodle}}
The Moodle 'cron' process is a script that runs in the background performing vital tasks at regular intervals (e.g. sending mail). The name comes from the Unix program that normally manages these tasks.
The Moodle 'cron' process is a script that runs in the background different tasks at scheduled intervals. In Moodle, these scheduled tasks include sending mail, updating course or activity completions, posting forum messages or other tasks. Cron is a server operating system program, which needs to be told to trigger the Moodle cron scripts.  


'''IMPORTANT: Do not skip setting up the cron process for your Moodle. Your site will not work properly without it'''
'''IMPORTANT: Do not skip setting up the cron process on your server for your Moodle. Your site will not work properly without it'''
 
On some Moodle sites it is possible to trigger the Moodle cron script by running yourmoodle/admin/cron.php in the address bar of a web browser. 


== Setting up cron on your system ==
== Setting up cron on your system ==

Revision as of 16:13, 30 April 2012

The Moodle 'cron' process is a script that runs in the background different tasks at scheduled intervals. In Moodle, these scheduled tasks include sending mail, updating course or activity completions, posting forum messages or other tasks. Cron is a server operating system program, which needs to be told to trigger the Moodle cron scripts.

IMPORTANT: Do not skip setting up the cron process on your server for your Moodle. Your site will not work properly without it

On some Moodle sites it is possible to trigger the Moodle cron script by running yourmoodle/admin/cron.php in the address bar of a web browser.

Setting up cron on your system

Choose the information for your server type:

Cron settings in Moodle

There are settings within Moodle that control aspects of cron operation:

Remote cron

Using the 'web based' version of cron it is perfectly ok to place the cron process on a different machine to the Moodle server. For example, the cron service on a Unix server can invoke the cron web 'page' on a Windows based Moodle server.

See also

Using Moodle forum discussions: