Note: You are currently viewing documentation for Moodle 2.0. Up-to-date documentation for the latest stable version is available here: Maintenance mode.
Location: Administration > Server > Maintenance mode
Maintenance mode is for preventing any users other than administrators from using the site while maintenance is taking place.
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
To put your site in maintenance mode:
- Access Administration > Server > Maintenance mode.
- Click the Enable button.
If for some reason the webinterface is not available you can also put the Moodle installation in maintenance mode by creating a file called maintenance.html in the folder called 1 (i.e. numeric 'one') in your moodle data folder. Any text in that file will be displayed to users trying to access anything other than the frontpage.
When you go into Maintenance mode and create this file you will need to test the Maintenance mode to make sure that you can come out of Maintenance mode and a non admin user can login. If they can't you may have to delete the maintenance.html for non admin users to be able to login. TEST, TEST, TEST. Be sure it works before you are stuck in Maintenance mode and non admin users are unable to login past the front page.--Russ Jones 20:01, 29 October 2008 (CDT)
Template:Moodle 1.9In Moodle 1.9.3 onwards, 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.
- Using Moodle Maintenance mode? forum discussion