MediaWiki-Docker/Extension/CheckUser

Languages:
  • English

This page instructs you to install Extension:CheckUser inside MediaWiki-Docker .

Follow the Quickstart instructions at MediaWiki-Docker page. Once MediaWiki is running and available at http://localhost:8080, then continue with instructions on this page.

All commands should be run in the directory where you installed MediaWiki. All mentioned files are also located there.

Clone the repository and its dependenciesEdit

git clone "https://gerrit.wikimedia.org/r/mediawiki/extensions/CheckUser" extensions/CheckUser
git clone "https://gerrit.wikimedia.org/r/mediawiki/skins/Vector" skins/Vector

Install Composer dependenciesEdit

Add this to composer.local.json:

{
	"extra": {
		"merge-plugin": {
			"include": [
				"extensions/CheckUser/composer.json"
			]
		}
	}
}

Alternatively copy

mv composer.local.json-sample composer.local.json

As this will include all extensions' composer.json files by default.

Run:

docker compose exec mediawiki composer update

Modify LocalSettings.phpEdit

If not already there, add this to the end of LocalSettings.php.

wfLoadExtension( 'CheckUser' );
wfLoadSkin( 'Vector' );

Run maintenance scriptsEdit

docker compose exec mediawiki php maintenance/update.php

Giving an account the rights to use the CheckUser extension (optional)Edit

To be able to access the data provided by the CheckUser extension, you will need an account with the checkuser group. This can be done using the script where <username> is replaced with the username of an existing account you want to give the checkuser rights.

docker compose exec mediawiki php maintenance/createAndPromote.php <username> --custom-groups checkuser

Alternatively standard installations should allow granting the checkuser rights by any bureaucrat.