Jump to content

Close a wiki

From Wikitech
This page may be outdated or contain incorrect details. Please update it if you can.

In order to lock a wiki, do the following.

Wikimedia configuration

  • Read How to do a configuration change
  • Run composer manage-dblist close <dbname>
  • Remove the wiki from groupOverrides and groupOverrides2 in wmf-config/core-Permissions.php
  • Search wmf-config/InitialiseSettings.php for the language code and the wiki db name, and consider removing it.
  • Remove the wiki from the wikimedia/portal repository.

Parsoid

Parsoid has its own copy of SiteMatrix, which needs updating using tools/fetch-sitematrix.js in mediawiki/services/parsoid.git.

Then, once merged, it must be deployed; if not, switch to visual editor will trigger Failed to load resource: the server responded with a status of 404 () errors.

Cxserver

  • Remove wiki from cxserver/config/languages.yaml

CentralAuth

AbuseFilter

  • Check whether the abuse_filter_log table has any entries:
    • If it does, then list the wiki explicitly in wmgUseAbuseFilter in InitialiseSettings.php as enabled, so these entries can be viewed post wiki closure
    • If it does not, then consider uninstalling AbuseFilter from the wiki and dropping all the database tables to save space on the closed wikis

CheckUser

  • Check whether the cu_log table has any entries:
    • If it does not, then consider uninstalling the extension and dropping the database tables for the extension. You may want to wait for a few weeks for this in case there is a need to run a check on edits made before the closure

SecurePoll

Check whether Special:SecurePoll has any local elections defined. If so, then update wmgUseSecurePoll to ensure that SecurePoll remains enabled. If not, then consider dropping the SecurePoll tables to save space

See also