MediaWiki-Docker/Extension/PageTriage

This page instructs you to install Extension:PageTriage inside MediaWiki-Docker. All commands should be run in the directory where you installed MediaWiki. All mentioned files are also located there.

Install MediaWiki-Docker edit

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.

Configure MariaDB edit

The extension can have unexpected behavior with the default sqlite database, so MariaDB is recommended. See: https://www.mediawiki.org/wiki/MediaWiki-Docker/Configuration_recipes/Alternative_databases#MySQL_(single_database_server)

Clone the repository and its dependencies edit

git clone "https://gerrit.wikimedia.org/r/mediawiki/extensions/PageTriage" extensions/PageTriage

Install Composer dependencies edit

There are no non-dev Composer or npm dependencies. If you are interested in running unit tests, code linting, and other dev tasks, you may want to navigate to the extensions/PageTriage directory, then run composer update and npm ci.

Modify LocalSettings.php edit

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

wfLoadExtension( 'PageTriage' );

For more information, see: https://www.mediawiki.org/wiki/Extension:PageTriage#Advanced_configuration

Run maintenance scripts edit

docker compose exec mediawiki php maintenance/run.php update.php