From: "Fernando Correia" fernandoacorreia@gmail.com
How can I put the wiki in off-line mode so the users will see a message that the wiki is down for maintenance?
Use a beta version of MySQL. It will show such a message at random.
Seriously, if you simply stop MySQL, the user will get such a message. Of course, if MySQL is used for other things, you can't do that.
:::: Don't anthropomorphize computers -- they hate it when you do that! :::: :::: Jan Steinman http://www.Bytesmiths.com/Item/99-3024-31 ::::
2007/2/26, Jan Steinman Jan@bytesmiths.com:
Seriously, if you simply stop MySQL, the user will get such a message. Of course, if MySQL is used for other things, you can't do that.
Thanks, but I'd like to be able to show this message while the upgrade script is updating the database... The solution proposed, to use the read-only message, is probably an acceptable alternative, although during the version upgrade some error message could be generated to the user.
Could you not rename index.php to index_old.php and put a new one up with some nice message and then revert after the upgrade?
I just tried it and it appears to work on my dev site. Gives you total control on what people see and can easily be changed back in seconds.
Paul
On 2/26/07 11:29 AM, "Fernando Correia" fernandoacorreia@gmail.com wrote:
2007/2/26, Jan Steinman Jan@bytesmiths.com:
Seriously, if you simply stop MySQL, the user will get such a message. Of course, if MySQL is used for other things, you can't do that.
Thanks, but I'd like to be able to show this message while the upgrade script is updating the database... The solution proposed, to use the read-only message, is probably an acceptable alternative, although during the version upgrade some error message could be generated to the user.
MediaWiki-l mailing list MediaWiki-l@lists.wikimedia.org http://lists.wikimedia.org/mailman/listinfo/mediawiki-l
2007/2/26, Paul Coghlan pcoghlan@usa.net:
Could you not rename index.php to index_old.php and put a new one up with some nice message and then revert after the upgrade?
This sounds like a good idea. A redirect rule sounds too troublesome to me.
Actually, I raised this question because I though MediaWiki had some "out-of-service mode" like other server software do. In some of them, the presence of a file or a configuration option make the software just output a message saying that it is in maintenance.
mediawiki-l@lists.wikimedia.org