moodle site down

Re: moodle site down

by Ken Task -
Number of replies: 0
Picture of Particularly helpful Moodlers

This sort of thing happens from time to time.   If one is prepared, with some sort of 'sos' page it could help ... especially when one is geting the 'white screen of death' or the Admin menu isn't working.

The trick shared earlier were links going to specific areas of admin via URL's but in the future, should be a time when this issue happens again (it might), one won't remember those URL's. :\

Save My Site HTML
Or 'Save Our Souls' (sos) page ...

Create an html page with relative addressing that points to the specific areas
of Moodle where admin level user can 'un-install' or turn on debugging, etc. via
web browser.

The sos.html page is uploaded to /moodlecode/local/ or any location inside moodle code directory.

Then in browser, hit the page:
http://yoursite/local/sos.html

Is it secure?
Since all of the URL's contained on the sos page require login to Moodle,
even if discovered by search engine, Moodle is protecting access to those
areas of Moodle admin by requiring a login.
The only exception to using sos page ... when php is broken and thus moodle cannot
protect access.

After initial login, moodle has set a time out for the session to 240 Seconds
by default.   So navigating back to the sos.html page and clicking the next
relatively addressed link to an admin area will NOT require you to login
again.

Some areas via relatively addressed URL's:

Notifications
../admin/index.php?cache=1
Plugins Overview (where on finds link to Additional Plugins
../admin/plugins.php
Additional Plugins where one finds settings, un-install links
../admin/plugins.php?updatesonly=0&contribonly=1
Theme Selector
../theme/index.php

An example sos.html page

<html>
<head>
<title>Save Our Souls</title>
</head>
<body>
<pre>
<a href="../admin/index.php?cache=1" target="_new">Notifications</a>
<a href="../admin/plugins.php" target="_new">Plugins Overview</a>
<a href="../admin/plugins.php?updatesonly=0&contribonly=1" target="_new">Additional Plugins</a>
<a href="../admin/blocks.php" target="_new">Manage Blocks</a>
<a href="../admin/modules.php" target="_new">Manage Activities</a>
<a href="../admin/settings.php?section=maintenancemode" target="_new">Maintenance Mode</a>
<a href="../admin/settings.php?section=debugging" target="_new">Debugging</a>
<a href="../admin/purgecaches.php" target="_new">Purge All Caches</a>
</pre>
</body>
</html>

Just in case the forum editor here messes with the HTML shown on this posting, please see attached sos.html page.

And a screen shot of what it looks like.


Attachment sosscreenthot.png
Average of ratings: Useful (2)