Difference between revisions of "Cron"

Jump to: navigation, search

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

m (minor)
(Setting up cron on your system)
Line 16: Line 16:
 
*''Apple OSX'' - use the built-in 'crontab' service which is exactly the same as [[Cron with Unix or Linux]]. However, you might want to do it the 'Apple way' using launchd - see [[Cron with MAC OS X]]
 
*''Apple OSX'' - use the built-in 'crontab' service which is exactly the same as [[Cron with Unix or Linux]]. However, you might want to do it the 'Apple way' using launchd - see [[Cron with MAC OS X]]
 
*[[Cron with web hosting services]]- Cron services in various web hosting examples.
 
*[[Cron with web hosting services]]- Cron services in various web hosting examples.
 +
 +
Here are some more instructions for specific hosts (please check that these are up to date):
 +
 +
*[[Cron on 1and1 shared servers]]
  
 
=== Cron settings in Moodle ===
 
=== Cron settings in Moodle ===

Revision as of 08:32, 17 May 2012

The Moodle 'cron' process is a script that is usually triggered by a web server program. The Moodle cron script runs different tasks at differently scheduled intervals.

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

A cron web server program is programmed to run the Moodle cron script at a regular interval. The Moodle cron script determines which tasks need to be completed. For example these tasks include sending mail, updating Moodle reports, RSS feeds, activity completions, posting forum messages and other tasks. Since different tasks have different schedules, not every task will run in Moodle when the cron script is triggered.

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:

Here are some more instructions for specific hosts (please check that these are up to date):

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: