[Mediawiki-l] Any ideas why $wgReadOnly doesn't work ?
btraynor at gmail.com
Mon Apr 4 12:52:18 UTC 2011
On Mon, Apr 4, 2011 at 05:23, Jon Bartlett <Jon.G.Bartlett at gsk.com> wrote:
> I want to move my wiki to another server (and upgrade at the same time from 1.14 to 1.16.2).
> I simply need to make the old wiki readonly, while I move, upgrade and change the redirect URL - so I placed
> $wgReadOnly = 'Upgrading to MediaWiki 1.16.2';
> In the localsettings.php file.
> However, it doesn't stop me editing pages (I was hoping it would make the entire wiki read only !)
> Any ideas why ?
Probably because you have sufficient privileges to still write to the
database, which is still writable. To set a MySQL database to
SET GLOBAL read_only = ON;
Don't forget to do SET GLOBAL read_only = OFF; to make it writable again.
> This e-mail was sent by GlaxoSmithKline Services Unlimited
> (registered in England and Wales No. 1047315), which is a
> member of the GlaxoSmithKline group of companies. The
> registered address of GlaxoSmithKline Services Unlimited
> is 980 Great West Road, Brentford, Middlesex TW8 9GS.
> MediaWiki-l mailing list
> MediaWiki-l at lists.wikimedia.org
More information about the MediaWiki-l