Manual:Ръководство за инсталиране

This page is a translated version of the page Manual:Installation guide and the translation is 26% complete.

Това ръководство осигурява инструкции как ръчно да се инсталира и конфигурира MediaWiki, както ръчно, така и чрез по-лесни алтернативи. Installing more than one wiki and installing existing wikis are also covered. Приложения предоставят връзки към по-подробни бележки за инсталиране за конкретни системни конфигурации и други по-рядко използвани приложения на софтуера.

Ръководство за обновления

Ако вече работите с MediaWiki, вижте Ръководството за обновления.

Manual installation


MediaWiki is not compatible with PHP 7.3.0 - 7.3.18 и 7.4.0 - 7.4.2 due to an upstream bug. Use PHP 7.3.19+ or 7.4.3+ instead. See task T246594 for more information.

За опитни потребители ето бързата версия на инструкциите за инсталиране. Повечето потребители (като например, ако не знаете как да инсталирате или проверите за необходимия софтуер на вашия компютър) ще искат следвайте основното ръководство за инсталиране.

  1. Уверете се, че системата ви отговаря на минималните изисквания, показани отстрани (See Installation requirements for more details. Make sure to also check the RELEASE NOTES shipped with MediaWiki for requirements.) You'll need:
    • Изтеглете MediaWiki (текущата стабилна версия е 1.38.1)
    • Уебсървъркато например Apache или IIS
      • За работа със скриптовете за поддръжка е необходим локален достъп или достъп до интерфейс с команден ред (CLI)
    • PHP 7.3.19/7.4.3+
    • A database server, that is, one of the following:

    Image thumbnailing requires additional programs. Parsoid (required by VisualEditor) and other services have their own requirements.

  2. # Изтегляне на MediaWiki (директен линк за изтегляне на стабилната версия) и извличане на архива към папка на вашия сървър, която има уеб-достъп.
  3. Point your browser to the directory where MediaWiki was extracted and follow the link to the setup screen. Трябва да е във формат http://domain/directory/mw-config/index.php Заменете directory с пътя до вашата изтеглена папка с МедияУики. Ако инсталирате на локална машина, заменете domain с localhost. If you install locally and later want to access your wiki from domain, then you will need to change LocalSettings.php from localhost to domain. If installed on a remote server, replace domain with your server's domain name (e.g.
  4. Follow the on-screen instructions to complete the process.

These instructions are deliberately brief. There is a lot that could go wrong, so if in doubt, you are advised to read the full instructions!

Основно ръководство за инсталиране

  • Configuring MediaWiki

Алтернативи на ръчното инсталиране

If your head is swimming from reading the above — or you feel frustrated, stuck, or lost — this section is for you...

You can avoid manual installation by using a pre-integrated MediaWiki software appliance, hosting services with 1-click installation, or wiki farms.

If you are installing for development or testing, consider using MediaWiki-Vagrant, a set of configuration scripts for Vagrant that automate the creation and update of a virtual machine that runs MediaWiki and your choice of extensions and services.

Official docker images are released on Docker Hub.

You can also use community resources based on platforms such as Docker. This is managed by Jenkins and should be kept up-to-date for some time.

These are community based resources and should always be treated with some measure of caution. Use at your own risk.

  Внимание: Programs provided by webhosts to automatically install applications such as MediaWiki can, and frequently do, mishandle the process, resulting in errors and a failure to install MediaWiki. If you encounter this problem, it does not mean that you cannot install MediaWiki; all it means is that you should install manually following these steps. There are benefits to doing this, including more control over where on the server and file path you want to install it, the ability to use a shared database, or the ability to control more features of the wiki during the installation.

Wiki families (multiple wikis)

Main page: Manual:Wiki family

A wiki family is more than one wiki installed on the same computer.

Installing MediaWiki more than once

One approach is to install multiple instances of MediaWiki (such as with a software bundle like the Bitnami MediaWiki Stack) in different directories – one for each wiki. For example, you want an enterprise wiki and a personal wiki, and you want to keep them totally separate.

Multiple wikis with one MediaWiki

You could use a single installation of MediaWiki for multiple wikis, by either:

  1. Using a different database for each wiki.

See $wgDBname .

  1. Using a different database prefix for each wiki.

See $wgDBprefix .

Installing an existing wiki

Some users wish to install MediaWiki with Wikipedia, Wiktionary, or some other wiki loaded. This is useful for reading offline, for conducting experiments, and for mirroring/forking.

The main (but not necessarily the easiest) method for doing this is to install MediaWiki and then import.

See Manual:FAQ#Wiki importing.

(Non-MediaWiki solutions, such as Xowa and Kiwix, can be found at Database download, and are probably the best options).

Start small. It is advisable to try installing a small wiki first, such as the Simple English Wikipedia, as a test run, before loading a big one like the English Wikipedia.


Advanced uses

The following pages give instructions about how to install/configure MediaWiki for other, less common purposes.

Advanced configuration

The following pages cover some of the more advanced configuration options:

Съдействие при инсталиране

  • mediawiki-l is the high-traffic mailing list to ask for support.

System-specific instructions

The following pages give more detailed installation instructions aimed at specific systems. However, by and large Manual:Installing MediaWiki is more up to date, and better written than the per system docs, and as such it is recommended you first consult Manual:Installing MediaWiki before looking at a per system installation documents.


Вижте също