at the risk of stating the obvious, did you read the bottom of this page: http://www.mediawiki.org/wiki/Manual:$wgReadOnly
Some caches that use the database may still be written to during read only mode. This can be avoided by disabling cache, albeit at the cost of making your wiki slow. This can be accomplished with the following settings in LocalSettings.php:
$wgMessageCacheType = $wgMainCacheType = $wgParserCacheType = CACHE_NONE; $wgLocalisationCacheConf['storeClass'] = 'LCStoreNull';
On Sun, Jan 11, 2015 at 12:40 PM, John Horne john.horne@plymouth.ac.uk wrote:
Hello,
I have been testing the $wgReadOnly and $wgReadOnlyFile options. My understanding is that these will prevent mediawiki from writing to the database and hence not allow pages to be updated. I have tried both options on servers running mediawiki 1.19.2 and 1.24.0 - neither option on either server seems to work. In all cases I am still able to modify wiki pages.
For the $wgReadOnlyFile option I created the file with some plain text in it, and change the ownership to that of the web server (apache).
Does anyone have any idea what I might be doing wrong here? I intend to use the file option for wiki backups, but obviously don't want people updating things while the backup is occurring.
John.
--
John Horne Tel: +44 (0)1752 587287 Plymouth University, UK
MediaWiki-l mailing list To unsubscribe, go to: https://lists.wikimedia.org/mailman/listinfo/mediawiki-l