Установка mediawiki на windows

Languages:

  • Deutsch
  • English
  • Minangkabau
  • dansk
  • español
  • français
  • italiano
  • magyar
  • polski
  • português do Brasil
  • русский
  • українська
  • 中文
  • 日本語
  • 한국어

Содержимое этой страницы в основном заменено на Руководство:Установка MediaWiki на подсистеме Windows для Linux.

На этой странице рассказывается об установке MediaWiki на Microsoft Windows стандартными методами.
Для хостинговых сред только для Windows, комплект WIMP (с использованием IIS) был рекомендован вместо Apache (комплект WAMP) с версии 1.18 для ручной установки.

Nginx — альтернатива Apache и IIS — может быть полезна, если вы поддерживаете MediaWiki в других операционных системах хоста и/или уже используете Nginx для внутреннего хостинга.

Необходимое программное обеспечение

Смотрите Руководство:Требования для установки.

Загрузка необходимого ПО

Хотя эти продукты не так уж и сложно настроить под Windows, может быть крайне сложно установить (по сложности, это занимает 30 минут для WIMP) и настроить Apache+MySQL+PHP по одному продукту за раз, если он совершенно новый для apache/mysql/php.
В таких условиях настоятельно рекомендуется искать готовую комбинацию LAMP или WAMP, которую можно просто установить и использовать.
Это избавит вас от необходимости настраивать каждый пакет вручную на 99%. Недостатком является то, что некоторые из них обрезаются или модифицируются, что затрудняет обновление отдельных компонентов, а другие серьезно устарели.

XAMPP

Наиболее популярным из которых является XAMPP:

  • XAMPP

WebPI

Программа установки Microsoft Web Platform Installer может установить для вас необходимые предварительные условия.
См. блог.

Bitnami

  • Bitnami это бесплатный и удобный установщик для open source программ. Он поддерживает стек Nginx [1], Microsoft WAMP [2]), общий LAMP стек [3] и XAMPP (который он не будет устанавливать сам и на котором работают только XAMPP-специфичные инсталляторы bitnami [4]). Bitnami устанавливает MediaWiki на любой из них, и они работают вместе с WordPress или другим программным обеспечением, поддерживающим битнами. См. сам Bitnami для получения инструкций [5] и обновленных данных поддержки. Это может быть хорошим вариантом, если вы намерены использовать только стабильные релизы MediaWiki, поддерживаемые в течение длительного времени. Поддержка более старых версий не гарантируется.

WAMP

См.: http://www.wampserver.com/ru/

WIMP

See https://learn.microsoft.com/en-us/iis/application-frameworks/install-and-configure-php-applications-on-iis/mediawiki-on-iis

Необязательное ПО

Diffutils

Diffutils (который содержит diff3) можно загрузить здесь, а File (средство проверки типа файла) здесь.

Чтобы активировать использование diffutils внутри MediaWiki, вы должны проигнорировать тот факт, что они не будут найдены во время установки (они могут быть найдены, если вы установите diff в ваш путь) и открыть LocalSettings.php для внесения следующих изменений:

- $wgDiff3 = "/usr/bin/diff3";
+ $wgDiff3 = "C:/Program Files/GnuWin32/bin/diff3.exe";
- $wgMimeDetectorCommand = "file.exe -bi"; #use external mime detector (linux)
+ $wgMimeDetectorCommand = "C:/Program Files/GnuWin32/bin/file.exe -bi"; # использовать внешний детектор mime

Заметьте, что вам нужно заменить «C:/Progra…» на тот путь, куда вы установили инструменты.

ImageMagick

Теперь PHP поставляется с включенным по умолчанию GD, который будет работать для эскизов. GD не требует никаких настроек или модификаций для использования. Поэтому настоятельно рекомендуется не устанавливать ImageMagick, так как известно, что он нестабилен. В MediaWiki отключите ImageMagick в LocalSettings.php, установив для $wgUseImageMagick значение false.

Скачать ImageMagick для Windows.
Чтобы миниатюры изображений работали, вам нужно будет открыть includes/Image.php, найти строку, начинающуюся с $cmd = $wgImageMagickConvertCommand ., и удалить функцию escapeshellarg(), а затем сделать то же самое со следующей строкой, чтобы командная переменная строилась следующим образом:

 $cmd  =  $wgImageMagickConvertCommand .
       " -quality 85 -background white -geometry {$width} ".
       ($this->imagePath) . " " .
       ($thumbPath);

Кроме того, проверьте, что $wgImageMagickConvertCommand в localalsettings.php указывает на это:

(путь к папке ImageMagic)/convert.exe
  • используйте расширение файла .exe! Без него работать не будет!
  • используйте путь без пробелов или короткий путь для установки ImafeMagic.

Другой способ заставить это работать — добавить путь ImageMagick к вашей переменной Windows PATH и просто установить $wgImageMagickConvertCommand в LocalSettings.php следующим образом (обратите внимание, что вы все равно должны изменить Image.php, как показано выше):

$wgImageMagickConvertCommand = "convert.exe";

Убедитесь, что гостевая учетная запись Интернета (обычно IUSR_MACHINENAME) имеет права на чтение и выполнение в каталоге bin ImageMagick.
Без этого вы можете увидеть ошибку выполнения оболочки PHP, аналогичную тому, что происходит, когда не удается найти файл convert.exe.

Inkscape

Inkscape может использоваться как альтернативный инструмент для создания эскизов SVG. Скачать Inkscape для Windows.
Вот несколько примеров настроек, позволяющих включить Inkscape в качестве миниатюры SVG в файле LocalSettings.php:

# Image Converter
$wgSVGConverter = 'Inkscape';

$wgSVGConverters = array(
	'Inkscape' => '"/Program Files/Inkscape/inkscape.exe" --export-filename $output -w $width $input',
);

# Image converter path
$wgSVGConverterPath = '/Program Files/Inkscape';

Поддержка математики

Смотрите Texvc#Windows.

Languages:

  • Deutsch
  • English
  • Minangkabau
  • dansk
  • español
  • français
  • italiano
  • magyar
  • polski
  • português do Brasil
  • русский
  • українська
  • 中文
  • 日本語
  • 한국어

This page’s contents mainly superseded by Manual:Running MediaWiki on Windows Subsystem for Linux.

This page will give you information about installing MediaWiki on a Microsoft Windows system using standard installation methods.
For Windows-only hosting environments, the WIMP stack (using IIS) was recommended over Apache, (WAMP stack) as of 1.18, for manual installs.

Nginx — an alternative to apache and IIS — may be useful if you support MediaWiki across other host operating systems and/or are already using Nginx for internal hosting.

Required software

See Manual:Installation requirements.

Getting required software

Although these products are not that difficult to configure under Windows, it can be extremely difficult to install (by difficult, it takes 30 minutes for WIMP) and configure Apache+MySQL+PHP one product at a time if completely new to apache/mysql/php.
Under such circumstances it is highly recommended to look for a LAMP or WAMP pre-made combination which can just be installed and used.
These will save you 99% of the trouble of configuring each package manually. The down-side is that some of these are trimmed down or modified versions which makes it hard to upgrade individual components, and other ones are seriously out of date.

XAMPP

The most popular of which is XAMPP:

  • XAMPP

WebPI

Microsoft Web Platform Installer can install required pre-requisites for you.
See blog.

Bitnami

  • Bitnami is a free suite of compatible installers for open source software. It supports an Nginx stack [1], Microsoft WAMP [2]), a generic LAMP stack [3] and XAMPP (which it will not install itself and on which only XAMPP-specific bitnami installers work [4]). Bitnami installs MediaWiki on any of those, and they work alongside WordPress or other software bitnami supports. See Bitnami itself for instructions [5] and updated support data. This can be a good option if you intend to use only the long term stable supported MediaWiki releases. Support for older versions is not guaranteed.

WAMP

See https://www.wampserver.com/en/

WIMP

See https://learn.microsoft.com/en-us/iis/application-frameworks/install-and-configure-php-applications-on-iis/mediawiki-on-iis

Optional Software

Diffutils

Diffutils (which contains diff3) can be downloaded from here, and File (file type checker) from here.

To activate the use of diffutils within MediaWiki, you have to ignore the fact that they won’t be found during installation (they may actually be found if you install diff into your path) and open up LocalSettings.php to make the following changes:

- $wgDiff3 = "/usr/bin/diff3";
+ $wgDiff3 = "C:/Program Files/GnuWin32/bin/diff3.exe";
- $wgMimeDetectorCommand = "file.exe -bi"; #use external mime detector (linux)
+ $wgMimeDetectorCommand = "C:/Program Files/GnuWin32/bin/file.exe -bi"; # use external mime detector

Please note that you have to replace «C:/Progra…» with the actual location where you installed the tools to.

ImageMagick

PHP now comes with GD enabled by default which will work for thumbnailing. GD will not require any configuration or modification to be used. Therefore it’s highly recommended to not install ImageMagick, since it is known to be unstable. In MediaWiki, disable ImageMagick in LocalSettings.php by setting $wgUseImageMagick to false.

Download ImageMagick on Windows.
To make image thumbnailing work, you will need to open includes/Image.php, locate the line that starts with $cmd = $wgImageMagickConvertCommand ., and remove the escapeshellarg() function, then do the same to the next line, so that the command variable builds like this:

 $cmd  =  $wgImageMagickConvertCommand .
       " -quality 85 -background white -geometry {$width} ".
       ($this->imagePath) . " " .
       ($thumbPath);

In addition, check to be sure that the $wgImageMagickConvertCommand in localsettings.php points to:

(your imagemagick folder path)/convert.exe
  • use the .exe extension! It won’t work, if omitted.
  • use a path without spaces as install path for ImageMagick or use the short name of the path.

Another way to make this work is to add the ImageMagick path to your Windows PATH variable, and simply setting the $wgImageMagickConvertCommand in LocalSettings.php as follows (note that you must still modify Image.php as shown above):

$wgImageMagickConvertCommand = "convert.exe";

Make sure that the Internet Guest Account (Usually IUSR_MACHINENAME) has Read & Execute rights to the ImageMagick bin directory.
Without this you might see an PHP shell execution error similar to what happens when it can’t find the convert.exe file.

Inkscape

Inkscape can be used as an alternative SVG thumbnailing tool. Download Inkscape on Windows.
Here are some example settings to enable Inkscape as the SVG thumnailer in the LocalSettings.php file:

# Image Converter
$wgSVGConverter = 'Inkscape';

$wgSVGConverters = array(
	'Inkscape' => '"/Program Files/Inkscape/inkscape.exe" --export-filename $output -w $width $input',
);

# Image converter path
$wgSVGConverterPath = '/Program Files/Inkscape';

Mathematics Support

See Texvc#Windows.

MediaWiki
Тип Wiki
Разработчик Wikimedia Foundation Inc.
ОС Кроссплатформенное ПО
Версия 1.15.0 — 10 июня 2009
Лицензия GPL
Сайт www.mediawiki.org

Здесь описывается 3 шага по установке MediaWiki версии 1.15.0 на компьютер с операционной системой Windows. При написании инструкции все шаги были проверены на машине с двумя четырехядерными процессорами Intel Xeon E5310 и установленной системой Vista (32bit). Использовался сервер приложений STPServer 1.1 (17 Jun 2008) и MediaWiki 1.15.0.

Описанные шаги создают только основу для функционирования вики-движка. В других разделах описанно как добавить поддержку математических формул, установку необходимых расширений, загрузку данных из других вики-сайтов, а также представленна информация о вики-хостинге.

Замечание: После установки сервера приложений на компьютер, подключённый к общедоступной сети, любой человек может получить административный доступ к базе данных через phpmyadmin! Чтобы этого избежать, установите firewall (брандмауэр) и закройте от внешнего доступа порты 80, 443 и 3306 перед началом установки. При использовании Windows XP SP2 можно просто включить встроенный брандмауэр — по умолчанию он запрещает любые соединения на любые порты.

Шаг 1. Установка сервера приложений[]

Перед непосредственной установкой MediaWiki вам необходимо установить на компьютер такие приложения как Apache, PHP и MySQL. Начинающие пользователи могут это сделать с помощью установки сервера этих приложений. В качестве сервера приложений можно выбрать STPServer 1.01 или XAMPP. Так как STPServer 1.01 обладает в отличии от XAMPP предпочтительнее установить его.

Скачайте сервер приложений STPServer 1.01. Установите его на ваш компьютер. На вашем компьютере появится дополнительный виртуальный диск. Как правило, это диск T:

Запустите ваш браузер и в строке адреса введите: http://localhost/ . Если вы увидели стартовую страницу, то это значит, что установка сервера приложений прошла нормально.

Так же проверьте доступность страницы администрирования: http://admin . Если зайти не удалось (страница недоступна), то подредактируйте файл C:\WINDOWS\system32\drivers\etc\hosts таким образом, чтобы он содержал следующую строку

127.0.0.1 localhost admin second prime test

Шаг 2. Создание базы данных и пользователя[]

Перейдите на страницу администрирования: http://admin . Если потребуется в меню авторизации введите имя и пароль (по умолчанию, оба — admin). В меню выберите MySQL. В правом окне выберите приложение phpmyadmin.

Запустите http://localhost/phpmyadmin/ — это утилита администрирования MySQL.

В поле справа Язык — Language выберите язык Russian.

В поле Новая база данных впишите имя базы данных (wikidb).

В поле Сравнение выберите utf8_unicode_ci (как вариант utf8_general_ci).

Нажмите кнопку Создать.

Вы должны получить сообщение:

База данных wikidb была создана.

Нажмите в браузере кнопку «Назад» и выберите пункт Привилегии.

Нажмите на Добавить нового пользователя.

  • В поле Имя пользователя укажите — wikiuser
  • Для поля Хост из выпадающего списка выберите Локальный или localhost
  • В полях Пароль и Подтверждение укажите пароль пользователя (например 123456)
  • Назначьте глобальные привилегии с помощью ссылки Отметить все

Нажмите кнопку Пошёл.

Вы должны получить сообщение:

Был добавлен новый пользователь.

Шаг 3. Установка программного обеспечения MediaWiki[]

Скачайте программное обеспечение MediaWiki. Последнюю версию можно найти на http://mediawiki.org. Распакуйте архив, например в папку C:\TEMP или в любую другую папку. Будет создана папка с инсталляционными файлами MediaWiki, например папка mediawiki-1.15.0

Всё содержимое этой папки (все файлы и вложенные папки) скопируйте в папку T:\home\virtual\prime\. Перейдите в эту папку и удалите из неё файлы index.html и index.htm. Эти файлы были скопированы сервером приложений, но они нам уже не нужны.

В строке браузера наберите адрес http://prime.

Вы должны увидеть сообщение:

You’ll have to set the wiki up first! 

Перейдите по ссылке set the wiki up.

В разделе Site config заполните поля:

  • Site name — Википедия
  • Language — выберите Русский
  • Sysop account name — укажите любое имя (это будет пользователь с правами администратора Википедии)
  • Sysop account password — укажите пароль, в поле again его нужно повторить

В разделе Database config заполните поля:

  • Database name — имя базы данных. Можно оставить значение по умолчанию wikidb
  • DB username — имя пользователя для подключения к базе. Можно оставить значение по умолчанию wikiuser. Он понадобиться только в процессе настройки.
  • DB password — пароль пользователя. Например 123456, в поле again его нужно повторить
  • Super user — введите то же что и в DB username
  • Password — введите то же что и в DB password

Нажмите Install!.

Должно появиться сообщение:

Success! Move the config/LocalSettings.php file into the parent directory, then follow this link to your wiki.

Перенесите (именно перенесите, а не скопируйте!) файл T:\home\virtual\prime\config\LocalSettings.php в папку T:\home\virtual\prime\.

Удалите папку T:\home\virtual\prime\config\.

Вернитесь в браузер и перейдите по адресу http://prime.

Вы увидите пустую Википедию. Поздравляем вас с удачной установкой MediaWiki!

Конфигурация настроек[]

Настройки PHP[]

Имеет смысл изменить файл конфигурации PHP. Находится в T:\usr\local\Apache\bin\php.ini

;;;;;;;;;;;;;;;;;;;;;;;;;;
;; Ограничения ресурсов ;;
;;;;;;;;;;;;;;;;;;;;;;;;;;

; Максимальное возможное время выполнения сценария в секундах. Если
; сценарий будет выполняться дольше, PHP принудительно завершит его.

max_execution_time = 120

; Максимальное время, которое каждый сценарий может тратить на 
; синтаксический разбор данных запроса:

max_input_time = 120

; Максимальный объем памяти, выделяемый сценарию (по умолчанию = 8MB):

memory_limit = 32M

Подержка математических функций (Формулы LaTeX)[]

Основная статья: Подержка математических функций в MediaWiki

Одно из первого, что вам понадобится после установки вики-движка это подержка математических функций. Процесс установки и настройки достаточно сложный — детально следуйте инструкции — и все получится. Для этого потребуется ряд внешних инструментов и их привязка к MediaWiki.

  • см. статью на англ.
  • Render.ml

Добавления необходимых расширений[]

Для использования ряда шаблонов и возможностей необходимы определенные расширения, которые устанавливаются дополнительно. Наиболее часто употребимые:

  • ParserFunctions — синтаксический анализатор с логическими функциями
  • CreateBox — формы для создания страниц
  • Cite — Добавляет теги <ref[ name=id]> и для сносок

Загрузка статей из других Вики-сайтов[]

После установки MediaWiki вы можете скачать дамп Русской Википедии и получить работающую копию Википедии на своём компьютере. Аналогично можно загрузить статьи из других Вики-сайтов.

Вики-хостинг[]

Возможно, что по каким-то причинам вам не удалось установить на свой компьютер MediaWiki. В этом случае вы можете создать свой вики-проект, воспользовавшись существующим Вики-хостингом. Самый известный вики-хостинг — это Викия. Список других хостингов приведен здесь.

См. также[]

  • MediaWiki:Common.css

How to Install Mediawiki on Windows 10

Mediawiki is a popular open-source software that powers many wiki websites, including Wikipedia. Installing Mediawiki on your Windows 10 computer can be a bit intimidating, but this tutorial will walk you through each step to ensure a successful installation.

Prerequisites

Before we start the installation process, you will need the following:

  • A web server such as Apache or IIS installed on your computer.
  • PHP version 5.5.9 or later installed on your computer.
  • MySQL or MariaDB installed on your computer.

Note: This tutorial assumes you are using Apache as your web server and MySQL as your database. If you are using a different web server or database, adjust the steps appropriately.

Step 1: Download Mediawiki

First, you need to download the latest version of Mediawiki from their website https://www.mediawiki.org/wiki/MediaWiki.

Step 2: Extract the Files

Once the download is complete, extract the files to the web server directory. If you are using Apache, the default directory is C:\xampp\htdocs\.

Step 3: Create a Database

Open your web browser and navigate to http://localhost/phpmyadmin. Create a new database for your Mediawiki installation.

Step 4: Configure the Database Connection

In the extracted files, locate the LocalSettings.php file and open it in a text editor. Locate the following lines:

$wgDBtype = 'mysql';
$wgDBserver = 'localhost';
$wgDBname = 'database_name';
$wgDBuser = 'username';
$wgDBpassword = 'password';

Replace database_name, username, and password with the name of the database you created in Step 3 and the login credentials you will use to access it. Save the changes and close the file.

Step 5: Configure the Web Server

Open the httpd.conf file in the Apache/conf directory and add the following lines to the end of the file:

Alias /mediawiki/ "C:/xampp/htdocs/mediawiki/"
<Directory "C:/xampp/htdocs/mediawiki/">
    Options Indexes FollowSymLinks MultiViews
    AllowOverride All
    Order deny,allow
    Allow from all
</Directory>

This sets up an alias for your Mediawiki installation.

Step 6: Install Mediawiki

Open your web browser and navigate to http://localhost/mediawiki/. You will see the Mediawiki installation screen. Follow the on-screen instructions to complete the installation.

Conclusion

Congratulations! You have successfully installed Mediawiki on your Windows 10 computer. You can now create and manage your own wiki website.

If you want to self-host in an easy, hands free way, need an external IP address, or simply want your data in your own hands, give IPv6.rs a try!

Alternatively, for the best virtual desktop, try Shells!

Hi! Today we will see how to easily install a wiki on Windows 10. A wiki is a website that allows users to add, modify, or delete its content directly from the browser. Consequently, it allows the creation of the website by its own users. Furthermore, it is generally focused on knowledge management, as well as communities and intranet. Also, to develop this purpose, we will use MediaWiki. This is a free project, written in PHP, well known to be used by Wikipedia. Well, I invite you to see how to install a wiki on your website.

Prerequisites

As mentioned, this software is programmed in the PHP language. In addition, a web server is required. For the purposes of this tutorial, we will use the Apache server. Moreover, a very simple way to configure everything related to a web server is using Xamp. Additionally, you need PHP from 7.2.9 and also MySQL from 5.5.8. Don’t worry, this is all included with the installation of Xampp.

How to download MediaWiki.

The first thing you have to do is go to the download section of the MediaWiki project page. Once there, please download the latest stable version. At the time of publication of this post, it is version 1.34.2. Please note that this is a compressed file in .tar.gz format. Therefore, you can use a software like 7z or WinRar to decompress it.

After the download is completed, two steps are necessary. First, unzip the file and place it at the root of the website. That is, in the httdocs directory of the Xamp installation. Then assign the directory the name you want to appear on the website. For example, if you want the name wiki to be displayed, then rename the folder that way. Check out the screenshot below.

Please unzip the file at the root of the website. Also, name the wiki.

Please unzip the file at the root of the website. Also, name the wiki.

Now, with the web server running please open this address in your web browser: http://localhost/wiki. An image like the one shown below will be immediately displayed. Please click on set up wiki first.

Please start configuring the MediaWiki installation

Please start configuring the MediaWiki installation

Configuring MediaWiki

In the first place you set the language of the user and the wiki. Please press Continue

Please set the language of the user and the wiki

Please set the language of the user and the wiki

The wizard will then validate the prerequisites for the installation. Once the environment parameters have been checked, it is time to start the installation by clicking on Continue

Then it’s time to set up the database aspects. That is, the name, user and password. If this does not exist, then select the superuser account. Please leave the password field blank.

Please use the superuser account to manage the database,

Please use the superuser account to manage the database,

Then confirm the parameters to use the same account for the installation.

Now it’s time to name the wiki. In addition, you must configure the namespace of the project. Finally, set the wiki administrator credentials.With these settings, you are ready to start the MediaWiki installation. With this intention, select the option to start the installation

Please set the name of the wiki and the project. Also, assign the administrator credentials.

Please set the name of the wiki and the project. Also, assign the administrator credentials.

Finally, confirm the options to start the installation process.

After a few moments, the installation will be completed. Please click on Continue.

After the installation is completed, the wizard will generate the file LocalSettings.php. Also, the download will start automatically. If not, a link is provided to force the download.

Please download the file LocalSettings.php

Please download the file LocalSettings.php

After downloading the file, it is time to place it in the root of the installation. That is to say, in the directory where the file index.php

Please move the file to the root directory of the wiki.

Please move the file to the root directory of the wiki.

Finally, we are ready to enter the wiki of our website.

MediaWiki successfully installed

MediaWiki successfully installed

Conclusion

Ultimately we have seen how to install a wiki in Windows 10. As you can see, it is a simple process to carry out. Which will also allow you to add this functionality to your website. I hope you enjoyed this post. Bye!

— Advertisement —

Everything Linux, A.I, IT News, DataOps, Open Source and more delivered right to you.

Subscribe

«The best Linux newsletter on the web»

Понравилась статья? Поделить с друзьями:
0 0 голоса
Рейтинг статьи
Подписаться
Уведомить о
guest

0 комментариев
Старые
Новые Популярные
Межтекстовые Отзывы
Посмотреть все комментарии
  • Windows has encountered a problem communicating with a device connected to your computer что это
  • Как максимально почистить диск с от мусора windows 10
  • Как импортировать файл в реестр windows
  • Сравнение версий windows server 2016
  • Qttabbar windows 10 темная тема