[Mediawiki-l] Locking the Database

Zain Memon zain at voltage.com
Wed Jun 29 19:18:42 UTC 2005


Set $wgReadOnlyFile='/locked' in LocalSettings.php and then make a file
called /locked with some text in it. Then, when you go to Edit a page,
it will show your text at the top of the page and won't allow regular
users to edit the page.

-----Original Message-----
From: mediawiki-l-bounces at Wikimedia.org
[mailto:mediawiki-l-bounces at Wikimedia.org] On Behalf Of Arthur Guy
Sent: Wednesday, June 29, 2005 11:52 AM
To: 'MediaWiki announcements and site admin list'
Subject: RE: [Mediawiki-l] Locking the Database

Sorry for all the questions I just want to learn how everything works
before
I launch my Wiki site.

How does the $wgReadOnlyFile command works?
I have tried setting $wgReadOnlyFile to true, false and a file name and
nothing happens.
If it is a file does it have to be a specific type and where is it
stored.

Thanks again
Arthur
 
arthur at astarsolutions.co.uk

-----Original Message-----
From: mediawiki-l-bounces at Wikimedia.org
[mailto:mediawiki-l-bounces at Wikimedia.org] On Behalf Of Zain Memon
Sent: 27 June 2005 22:07
To: MediaWiki announcements and site admin list
Subject: RE: [Mediawiki-l] Locking the Database

Trust the FAQ to be typo free...

It should be $wgReadOnlyFile in LocalSettings.php. I've updated the FAQ
to reflect that as well.

-----Original Message-----
From: mediawiki-l-bounces at Wikimedia.org
[mailto:mediawiki-l-bounces at Wikimedia.org] On Behalf Of Arthur Guy
Sent: Monday, June 27, 2005 1:01 PM
To: 'MediaWiki announcements and site admin list'
Subject: RE: [Mediawiki-l] Locking the Database

Where is commonsettings.php?
Shouldn't it be in localsettings.php?
How do you use $mgReadOnlyFile, I have tried setting it t true and to a
text
file but neither works?

Thanks
Arthur
 
arthur at astarsolutions.co.uk

-----Original Message-----
From: mediawiki-l-bounces at Wikimedia.org
[mailto:mediawiki-l-bounces at Wikimedia.org] On Behalf Of Zain Memon
Sent: 27 June 2005 19:50
To: MediaWiki announcements and site admin list
Subject: RE: [Mediawiki-l] Locking the Database

http://meta.wikimedia.org/wiki/MediaWiki_FAQ#How_do_I_completely_lock_my
_dat
abase.3F

Set $mgReadOnlyFile in CommonSettings.php to the name of a file, then
put the reason for the lock inside the file. The contents of the file
will be displayed to anyone trying to edit the wiki.

Note that readonlyfile is not guaranteed to be absolutely safe; if you
need to guarantee that MediaWiki will never write to the data, you need
to do this on the database itself (e.g. revoke UPDATE,INSERT,DELETE from
the wiki user, or put MySQL into read-only mode).

-----Original Message-----
From: mediawiki-l-bounces at Wikimedia.org
[mailto:mediawiki-l-bounces at Wikimedia.org] On Behalf Of Arthur Guy
Sent: Monday, June 27, 2005 11:50 AM
To: 'MediaWiki announcements and site admin list'
Subject: [Mediawiki-l] Locking the Database

How do you lock the database from edits, like the en.wikipedia.org is at
the
moment?

I am sure it's just a setting in the default settings file but I can't
find
it

Is it also possible to lock the database from one of the options in the
special name space or from some ware else in on the website?

 

Thanks

Arthur

 

 <mailto:arthur at astarsolutions.co.uk> arthur at astarsolutions.co.uk

 






'a star solutions' disclaimer
The information transmitted is intended only for the person or entity to
which it is addressed and may contain confidential and/or privileged
material. 
If you are not the intended recipient of this message you are hereby
notified that any use, review, retransmission, dissemination,
distribution, reproduction or any action taken in reliance upon this
message is prohibited.
If you received this in error, please contact the sender and delete the
material from any computer. 
Any views expressed in this message are those of the individual sender
and may not necessarily reflect the views of the company.
We believe that this communication is free from viruses and other
potentially dangerous programmes, but the recipient opens this
communication at their own risk. 
We assume no responsibility for any loss or damage arising from the
receipt or use of this communication

_______________________________________________
MediaWiki-l mailing list
MediaWiki-l at Wikimedia.org
http://mail.wikipedia.org/mailman/listinfo/mediawiki-l
_______________________________________________
MediaWiki-l mailing list
MediaWiki-l at Wikimedia.org
http://mail.wikipedia.org/mailman/listinfo/mediawiki-l




'a star solutions' disclaimer
The information transmitted is intended only for the person or entity to
which it is addressed and may contain confidential and/or privileged
material. 
If you are not the intended recipient of this message you are hereby
notified that any use, review, retransmission, dissemination,
distribution, reproduction or any action taken in reliance upon this
message is prohibited.
If you received this in error, please contact the sender and delete the
material from any computer. 
Any views expressed in this message are those of the individual sender
and may not necessarily reflect the views of the company.
We believe that this communication is free from viruses and other
potentially dangerous programmes, but the recipient opens this
communication at their own risk. 
We assume no responsibility for any loss or damage arising from the
receipt or use of this communication



_______________________________________________
MediaWiki-l mailing list
MediaWiki-l at Wikimedia.org
http://mail.wikipedia.org/mailman/listinfo/mediawiki-l
_______________________________________________
MediaWiki-l mailing list
MediaWiki-l at Wikimedia.org
http://mail.wikipedia.org/mailman/listinfo/mediawiki-l




'a star solutions' disclaimer
The information transmitted is intended only for the person or entity to
which it is addressed and may contain confidential and/or privileged
material. 
If you are not the intended recipient of this message you are hereby
notified that any use, review, retransmission, dissemination,
distribution, reproduction or any action taken in reliance upon this
message is prohibited.
If you received this in error, please contact the sender and delete the
material from any computer. 
Any views expressed in this message are those of the individual sender
and may not necessarily reflect the views of the company.
We believe that this communication is free from viruses and other
potentially dangerous programmes, but the recipient opens this
communication at their own risk. 
We assume no responsibility for any loss or damage arising from the
receipt or use of this communication



_______________________________________________
MediaWiki-l mailing list
MediaWiki-l at Wikimedia.org
http://mail.wikipedia.org/mailman/listinfo/mediawiki-l



More information about the MediaWiki-l mailing list