Jump to content

MediaWiki-Docker/Extension/GlobalPreferences

From mediawiki.org

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

This is a very minimal installation and may not reflect how GlobalPreferences is installed on production. It might also not work if your MediaWiki install is part of a farm.

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 dependencies

[edit]
git clone "https://gerrit.wikimedia.org/r/mediawiki/extensions/GlobalPreferences" extensions/GlobalPreferences

Modify LocalSettings.php

[edit]

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

$wgSharedDB = 'globalpreferences';
$wgSharedTables = [];
wfLoadExtension( 'GlobalPreferences' );

Create globalpreferences database

[edit]
sqlite3 cache/sqlite/globalpreferences.sqlite < extensions/GlobalPreferences/sql/sqlite/tables-generated.sql

Run maintenance scripts

[edit]
docker compose exec mediawiki composer update
docker compose exec mediawiki php maintenance/run.php update.php