Wikibase/Installation

This page provides step-by-step instructions for installing a basic, minimal version of Wikibase. If you're interested in more advanced configurations, please refer to the advanced configuration guide. More detailed documentation bound to each version of the code can be found in the docs folder of the Wikibase source repository: see doc.wikimedia.org.

= Prerequisites =

MediaWiki
Since Wikibase is an extension (actually two extensions) to MediaWiki, you'll first need to set up MediaWiki.

Composer
The easiest way to install all dependencies for Wikibase is to use Composer. Install Composer using these instructions.

= Installation = A basic installation of Wikibase consists of four steps: The following guide will lead you through these steps.
 * 1) Obtain Wikibase
 * 2) Install dependencies
 * 3) Modify LocalSettings.php
 * 4) Run maintenance scripts

Before you begin
Make sure you've set up MediaWiki and installed Composer.

Obtain Wikibase
Determine which version of Mediawiki you have by navigating to ; use the Wikibase release corresponding to your MediaWiki version.

If you have the latest version of Mediawiki, download the latest version of Wikibase (or the version matching your Mediawiki installation) into the  folder of your MediaWiki installation.

Install dependencies
Thanks to the composer-merge-plugin, you can simply rename the  file in the root of your MediaWiki install directory to.

Then, from the root of your MediaWiki installation, run:

Then, assuming composer is available as a binary:

Modify LocalSettings.php
Versions 1.36 and above use extension registration:

Use the snippet below only if using versions below 1.36 :

Run maintenance scripts
Finally, run some maintenance scripts -- among them the database update script and the scripts that populate the sites table and the interwiki table.

Verifying your installation

 * Navigate to the  page in your MediaWiki and create your first Item. Enter a label and optional description and aliases and click Create. You should be redirected to the item page.


 * Verify that an "Add links" link in the languagelinks section appears in the main page sidebar.

= References = The Wikibase README file