Maintenance mode: Różnice pomiędzy wersjami

Z MoodleDocs
Skocz do:nawigacja, szukaj
(see also link)
(→‎See also: forum discussion link)
 
(Nie pokazano 32 wersji utworzonych przez 16 użytkowników)
Linia 1: Linia 1:
The idea of maintenance mode is to prevent any users other than admin to use the site while the maintenance process takes place.
{{Server settings}}
Maintenance mode is for preventing any users other than administrators from using the site while maintenance is taking place, though ''it's not designed to prevent user access during version upgrades''.


When students/guests/teachers try access a course in maintenance mode, they will obtain a message saying the course is in maintenance mode. A customized message may be added, perhaps stating when the site will be available again or giving the reason for doing maintenance.
When users attempt to access a course when your site is in maintenance mode, they obtain a message informing them that the site is in maintenance mode. If you wish, you can create a customized maintenance mode message, perhaps stating when the site will be available again or giving the reason for doing maintenance.
 
Note: The front page of your site will appear as normal when your site is in maintenance mode. Users will only see the maintenance mode message when they attempt to access a course.
 
==Setting maintenance mode==
 
An administrator can put the site into maintenance mode in ''Settings > Site administration > Server > Maintenance mode''.
 
When a site is in maintenance mode, the link "In Maintenance Mode" is displayed near the top right of each page (except the front page) for admins.
 
==CLI maintenance mode==
 
Admins can enable CLI maintenance mode by adding file from the command line <code>$CFG->dataroot/climaintenance.html</code>. The difference from the standard maintenance mode is that all web access is prevented, CLI scripts continue to work (with the exception of admin/cli/cron.php). This CLI maintenance mode is used often during CLI version upgrades.
 
It's possible using the admin/cli/maintenance.php mode to schedule the CLI maintenance mode and then to  display a message to users warning them when the site will become unavailable. See MDL-37596
{|
|[[File:maintenancecli25.png|thumb|Scheduled  maintenance mode]]
|}
See also the section on maintenance mode in [[Administration via command line]].


==See also==
==See also==
*Using Moodle [http://moodle.org/mod/forum/discuss.php?d=46451 Maintenance mode?] forum discussion


[[Category:Administrator]]
Forum discussions:
*[https://moodle.org/mod/forum/discuss.php?d=245299 Maintenance mode cannot be switched off]
*[https://moodle.org/mod/forum/discuss.php?d=251954 Moodle for Windows stuck in Maintenance mode]
 
[[es:Modo de mantenimiento]]
[[fr:Mode de maintenance]]
[[ja:メンテナンスモード]]
[[de:Wartungsmodus]]

Aktualna wersja na dzień 12:57, 14 sty 2014

Maintenance mode is for preventing any users other than administrators from using the site while maintenance is taking place, though it's not designed to prevent user access during version upgrades.

When users attempt to access a course when your site is in maintenance mode, they obtain a message informing them that the site is in maintenance mode. If you wish, you can create a customized maintenance mode message, perhaps stating when the site will be available again or giving the reason for doing maintenance.

Note: The front page of your site will appear as normal when your site is in maintenance mode. Users will only see the maintenance mode message when they attempt to access a course.

Setting maintenance mode

An administrator can put the site into maintenance mode in Settings > Site administration > Server > Maintenance mode.

When a site is in maintenance mode, the link "In Maintenance Mode" is displayed near the top right of each page (except the front page) for admins.

CLI maintenance mode

Admins can enable CLI maintenance mode by adding file from the command line $CFG->dataroot/climaintenance.html. The difference from the standard maintenance mode is that all web access is prevented, CLI scripts continue to work (with the exception of admin/cli/cron.php). This CLI maintenance mode is used often during CLI version upgrades.

It's possible using the admin/cli/maintenance.php mode to schedule the CLI maintenance mode and then to display a message to users warning them when the site will become unavailable. See MDL-37596

Scheduled maintenance mode

See also the section on maintenance mode in Administration via command line.

See also

Forum discussions: