Close a wiki

From Wikitech
(Difference between revisions)
Jump to: navigation, search
(update)
(quicker way to close a wiki, no need to run sync-common-all)
Line 1: Line 1:
 
In order to lock a wiki, do the following:
 
In order to lock a wiki, do the following:
 
* Add the wiki to <tt>/home/wikipedia/common/closed.dblist</tt>
 
* Add the wiki to <tt>/home/wikipedia/common/closed.dblist</tt>
* <s>Remove it from <tt>/home/wikipedia/common/all.dblist</tt></s>
 
 
* Remove the wiki from groupOverrides and groupOverrides2 in InitialiseSettings.php
 
* Remove the wiki from groupOverrides and groupOverrides2 in InitialiseSettings.php
* If you didn't modify InitialiseSettings.php in the previous step, run <tt>touch /home/wikipedia/common/wmf-deployment/wmf-config/InitialiseSettings.php</tt> to trigger the update of the config cache
+
* If you didn't modify InitialiseSettings.php in the previous step, run <tt>touch /home/wikipedia/common/php/wmf-config/InitialiseSettings.php</tt> to trigger the update of the config cache
* Run <tt>sync-common-all</tt> (needed to refresh the [[dblist]] files and the interwiki cache, scap is not enough!)
+
* <tt>sync-common-file closed.dblist</tt>
 
+
* <tt>sync-file wmf-config/InitialiseSettings.php</tt>
  
 
[[Category:How-To]]
 
[[Category:How-To]]

Revision as of 23:49, 18 April 2011

In order to lock a wiki, do the following:

  • Add the wiki to /home/wikipedia/common/closed.dblist
  • Remove the wiki from groupOverrides and groupOverrides2 in InitialiseSettings.php
  • If you didn't modify InitialiseSettings.php in the previous step, run touch /home/wikipedia/common/php/wmf-config/InitialiseSettings.php to trigger the update of the config cache
  • sync-common-file closed.dblist
  • sync-file wmf-config/InitialiseSettings.php
Personal tools
Namespaces

Variants
Actions
Navigation
Ops documentation
Wiki
Toolbox