Jump to content


From mediawiki.org

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


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


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


There are no Composer dependencies.

Modify LocalSettings.php


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

wfLoadExtension( 'examples' );

Run maintenance scripts

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