This is an old revision of the document!
Table of Contents
Wikibase
Wikibase is a data repository for Mediawiki.
There are two main methods of installation
- As a Mediawiki extension
- As a Wikibase docker deployment
Mediawiki extension
Visit the download page and fetch the correct version.
This guide details the steps required to install the extension which is also outlined below (Mediawiki 1.43).
Composer
Enter the mediawiki install dir and run composer. Composer ought to have been installed earlier.
rm composer.lock composer install --no-dev
Settings
Update the LocalSettings.php file to enable the extension.
wfLoadExtension( 'WikibaseRepository', "$IP/extensions/Wikibase/extension-repo.json" ); require_once "$IP/extensions/Wikibase/repo/ExampleSettings.php";
Maintenance
Run the initial maintenance scripts to build the database tables to prepare the site.
php maintenance/run.php update php maintenance/run.php ./extensions/Wikibase/lib/maintenance/populateSitesTable.php php maintenance/run.php ./extensions/Wikibase/repo/maintenance/rebuildItemsPerSite.php php maintenance/run.php populateInterwiki
Wikibase deployment
This setup requires a modern version of docker to be installed and was tested on Debian bookworm on a dual core VM with 12GB of RAM.
Fetch
git clone https://github.com/wmde/wikibase-release-pipeline
Copy config
cd wikibase-release-pipeline/deploy cp template.env .env
Edit config
vi .env
# Public hostname configuration. WIKIBASE_PUBLIC_HOST=wikibase.kewl.org WDQS_FRONTEND_PUBLIC_HOST=wdqs-frontend.kewl.org QUICKSTATEMENTS_PUBLIC_HOST=quickstatements.kewl.org # MediaWiki / Wikibase user configuration. MW_ADMIN_NAME=darron MW_ADMIN_EMAIL=darron@kewl.org MW_ADMIN_PASS=changemetoatleast10chars # MediaWiki / Wikibase database configuration. DB_NAME=kewl DB_USER=sqluser DB_PASS=changemetoatleast10chars
Run
Foreground
docker compose up
Background
docker compose up --detach