Note: You are currently viewing documentation for Moodle 2.8. Up-to-date documentation for the latest stable version of Moodle may be available here: Cron settings.

Cron settings: Difference between revisions

From MoodleDocs
mNo edit summary
(Added Note: Moodle 2.9 will have the setting of 'Cron from Command Line Interface only' on by default.)
 
(3 intermediate revisions by 2 users not shown)
Line 8: Line 8:
==Cron from Command Line Interface only==  
==Cron from Command Line Interface only==  


The cronclionly setting will stop the browser URL trigger. This sets Moodle so that cron.php cannot be invoked by the Moodle URL.
The cronclionly setting will stop the browser URL Moodle cron process trigger. For example, the site administrator or others running '''<nowiki>http:demo.moodle.net/admin/cron.php</nowiki>''' from their web browser.


:''TIP:'' While this is identified as CLI (command line interface) this is a bit misleading in that it does not mean that you have to be sitting at a shell account entering the command. If you enable this switch you can invoke cron.php through any set of batch or script files you wish,  but it must be invoked via its correct location in the operating systems file structure. This can be especially frustrating for those not used to scripting in that environment is not typically provided.
''Note:'' Moodle 2.9 will have the setting of 'Cron from Command Line Interface only' on by default.
 
:''TIP:'' It is a bit misleading to use the term CLI (command line interface). It does not mean that you have to be sitting at a shell account entering the command. It does mean it you must invoke cron.php through any set of batch or script files. This can be especially frustrating for those not used to scripting via the operating system.
 
See the template on the right for assistance with how to create scripts in different operating systems.


==Cron password==
==Cron password==
The cron process can be protected by a password with the cronremotepassword setting.
The cron process can be protected by a password with the cronremotepassword setting.
==See also==
...
[[es:Configuraciones de cron]]

Latest revision as of 16:44, 20 April 2015

Location: Site administration >Security > Site Policies

Moodle has two settings where the site administrator can have some control of how the Moodle cron process is triggered. This is done from the Site Policies link.

Cron settings in Site Policies

Cron from Command Line Interface only

The cronclionly setting will stop the browser URL Moodle cron process trigger. For example, the site administrator or others running http:demo.moodle.net/admin/cron.php from their web browser.

Note: Moodle 2.9 will have the setting of 'Cron from Command Line Interface only' on by default.

TIP: It is a bit misleading to use the term CLI (command line interface). It does not mean that you have to be sitting at a shell account entering the command. It does mean it you must invoke cron.php through any set of batch or script files. This can be especially frustrating for those not used to scripting via the operating system.

See the template on the right for assistance with how to create scripts in different operating systems.

Cron password

The cron process can be protected by a password with the cronremotepassword setting.

See also

...