Это старая версия документа.
Содержание
MediaWiki
MediaWiki - это Wiki программа на базе web, написанная на языке PHP. Она может использовать в качестве СУБД как MySQL так и PostgreSQL.
Установка
Перед установкой MediaWiki вам потребуется также установить Apache2, PHP5 и СУБД. Как правило в качестве СУБД используют MySQL или PostgreSQL, вы можете выбрать любую в зависимости от ваших потребностей. При установке указанных программ обратитесь, пожалуйста, к соответствующим разделам данного руководства.
Для установки MediaWiki запустите следующую команду в командной строке:
sudo apt-get install mediawiki php5-gd
Для дополнительного функционала смотрите пакет mediawiki-extensions.
Настройка
The Apache configuration file mediawiki.conf for MediaWiki is installed in /etc/apache2/conf.d/ directory. You should uncomment the following line in this file to access MediaWiki application.
# Alias /mediawiki /var/lib/mediawiki
After you uncomment the above line, restart Apache server and access MediaWiki using the following url:
http://localhost/mediawiki/config/index.php
Please read the “Checking environment…” section in this page. You should be able to fix many issues by carefully reading this section.
Once the configuration is complete, you should copy the LocalSettings.php file to /etc/mediawiki directory:
sudo mv /var/lib/mediawiki/config/LocalSettings.php /etc/mediawiki/
You may also want to edit /etc/mediawiki/LocalSettings.php in order to set the memory limit (disabled by default):
ini_set( 'memory_limit', '64M' );
Расширения
The extensions add new features and enhancements for the MediaWiki application. The extensions give wiki administrators and end users the ability to customize MediaWiki to their requirements.
You can download MediaWiki extensions as an archive file or checkout from the Subversion repository. You should copy it to /var/lib/mediawiki/extensions directory. You should also add the following line at the end of file: /etc/mediawiki/LocalSettings.php.
require_once «$IP/extensions/ExtentionName/ExtentionName.php»;