Wikibase/Installation

Installation using Composer
The easiest way to install Wikibase is to use Composer to install all the dependencies.

First [//getcomposer.org/download get composer] by following [//getcomposer.org/doc/00-intro.md it's installation guide]: Next clone the Wikibase Repository in the extensions folder of your MediaWiki installation:

Then run composer inside the folder of your Wikibase installation to get all dependencies:

If you plan to contribute to Wikibase and its components run the following command instead to also get the sources of the components:

After that adjust your LocalSettings.php to enable Wikibase. In order to enable a Wikibase Repository, insert the following:

To enable a Wikibase Client, insert the following instead: Please note that it is currently not possible to enable Repository and Client on the same MediaWiki instance simultaneously.

You then need to run the database update script:

And finally populate the sites table:

Note: If you're installing a client you'll need to populate the interwiki table too:

And make sure your wiki id is in the sites table, or simply changing it to one of the entries that is there by default:

That's it! Wikibase should now be installed in your MediaWiki.

Installation without composer
If you cannot install Wikibase using composer for any reason, there are nightly builds on labs: bene/wikibase. Download the build in one of the available formats and unpack it into the  folder. However, using composer is encouraged because it simplifies updating a lot.