Wikibase/Installation/ru

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.

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.

Установка
Базовая установка Wikibase состоит из четырех этапов:
 * 1) Получение Wikibase
 * 2) Установка зависимостей
 * 3) Изменение LocalSettings.php
 * 4) Запуск скриптов обслуживания

Следующее руководство поможет вам выполнить эти шаги.



Прежде чем начать
Make sure you've set up MediaWiki and installed Composer.



Получение 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.



Установка зависимостей
Thanks to the composer-merge-plugin, you can simply rename the  file in the root of your MediaWiki install directory to.

Затем, из корня вашей установки MediaWiki, запустите:

Затем, предполагая, что composer доступен как двоичный файл:



For repositories whose version numbers are 1.36+
If you intend to run a wiki where Wikibase entries are edited, then you want a Wikibase repository and should include the following in your 'LocalSettings.php'.

For clients whose version numbers are 1.36+
If you intend to run a wiki which takes data from a different wiki instance where the entries are created, then you want a Wikibase client and should include the following in your 'LocalSettings.php'.

For repositories whose version numbers are 1.36 or lower
If you intend to run a wiki where Wikibase entries are edited, then you want a Wikibase repository and should include the following in your 'LocalSettings.php'.

For clients whose version numbers are 1.36 or lower
If you intend to run a wiki which takes data from a different wiki instance where the entries are created, then you want a Wikibase client and should include the following in your 'LocalSettings.php'.



Запуск скриптов обслуживания
Наконец, запустите несколько сценариев обслуживания - среди них сценарий обновления базы данных и сценарии, которые заполняют таблицу сайтов и таблицу interwiki.



Проверка установки

 * Navigate to the  page in your MediaWiki and create your first Item. Введите метку, необязательное описание и псевдонимы и нажмите кнопку Создать. You should be redirected to the item page.


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