MediaWiki-Docker/Extension/AbuseFilter
This page instructs you to install Extension:AbuseFilter 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 dependencies
editgit clone "https://gerrit.wikimedia.org/r/mediawiki/extensions/AbuseFilter" extensions/AbuseFilter
git clone "https://gerrit.wikimedia.org/r/mediawiki/extensions/AntiSpoof" extensions/AntiSpoof
git clone "https://gerrit.wikimedia.org/r/mediawiki/extensions/CodeEditor" extensions/CodeEditor
git clone "https://gerrit.wikimedia.org/r/mediawiki/extensions/CheckUser" extensions/CheckUser
git clone "https://gerrit.wikimedia.org/r/mediawiki/extensions/WikiEditor" extensions/WikiEditor
git clone "https://gerrit.wikimedia.org/r/mediawiki/skins/Vector" skins/Vector
Install Composer dependencies
edit
Add this to composer.local.json
:
{
"extra": {
"merge-plugin": {
"include": [
"extensions/AbuseFilter/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.php
editIf not already there, add this to the end of LocalSettings.php
.
wfLoadExtension( 'AbuseFilter' );
wfLoadExtension( 'AntiSpoof' );
wfLoadExtension( 'CodeEditor' );
wfLoadExtension( 'CheckUser' );
wfLoadExtension( 'WikiEditor' );
wfLoadSkin( 'Vector' );
Run maintenance scripts
editdocker compose exec mediawiki php maintenance/run.php update