MediaWiki-Docker/Extension/Examples

This page instructs you to install Extension:Examples 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.

Clone the repository and its dependencies

edit

Run the following command in the directory where you installed MediaWiki:

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

Install Composer dependencies

edit

There are no Composer dependencies.

Modify LocalSettings.php

edit

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

wfLoadExtension( 'examples' );

Run maintenance scripts

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