Manual:Installation guide/zh-cn

From MediaWiki.org
Jump to: navigation, search
This page is a translated version of the page Manual:Installation guide and the translation is 26% complete.

Other languages:
català • ‎čeština • ‎dansk • ‎Deutsch • ‎Zazaki • ‎Ελληνικά • ‎English • ‎British English • ‎español • ‎فارسی • ‎français • ‎עברית • ‎magyar • ‎Bahasa Indonesia • ‎italiano • ‎日本語 • ‎한국어 • ‎lietuvių • ‎occitan • ‎polski • ‎português • ‎português do Brasil • ‎română • ‎русский • ‎Türkçe • ‎українська • ‎粵語 • ‎中文 • ‎中文(中国大陆)‎ • ‎中文(简体)‎ • ‎中文(繁體)‎ • ‎中文(台灣)‎
MediaWiki Flower
Fundamental Introduction to MediaWiki

Contents


All other topics

  • See navigation on the left
Mediawiki-logo.png Installation Guide | About MediaWiki
Help-browser.svg Features | Installation requirements
Preferences-system.svg Downloading | Installing | Configuring


Welcome to the MediaWiki installation guide which provides instructions on how to manually install and configure MediaWiki on a web server. Note that some users may find MediaWiki software bundles and hosting services with 1-click installation and wiki farms a convenient alternative to manual installation.

此文章的第一部分给出了关于如何在伺服器上安裝MediaWiki的广泛的一般指示。后面的章节包括一个给出了更多安装细节说明的附录的列表,其中包括了具体的系统设置和其它这个软件的不太常用的用途。

Upgrade guide[edit | edit source]

If you are already running MediaWiki, see the Upgrade guide.

Requirements Requirements in short
  • Download MediaWiki (current stable version is 1.23.6)
  • Web server such as Apache or IIS
    • Local or command line access is needed for running maintenance scripts
  • Database Server
    • MySQL 5.0.2 or later (*)
    • or PostgreSQL 8.1 or later
      • Requires PL/pgSQL (contained in contribs)
      • Full-Text searching (Native in >=8.3, requires tsearch2 extension <=8.2)
    • or SQLite

For image thumbnailing and TeX-support, additional programs are required.

(*) – MariaDB, a GPL fork of the MySQL code by Monty Widenius, the founder of MySQL, is an alternative and can also be used by MediaWiki. Debian/Ubuntu repos.

快速安裝指南[edit | edit source]

Warning about webhost auto-installers
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 (or another application for that matter). If you encounter this problem, it does not mean that you cannot install MediaWiki; all it means is that you should do it manually. This is very easy and 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.

只是对于有经验的用户来说,这里是安装说明的快速版。但是大多数用户让然需要阅读详细版本的安装说明 below.

  1. Check that your system meets the minimum requirements
  2. Download MediaWiki (direct link to latest version) and extract the archive to a web-accessible folder on your server.
  3. Point your browser to the directory where MediaWiki was extracted and follow the link to the setup screen. It should be in the form http://[domain]/[directory]/mw-config/index.php. Replace [directory] with the path to your extracted MediaWiki folder. If installing on a local machine, replace [domain] with [localhost]. A locally installed wiki will need the LocalSettings.php modified from [localhost] to [domain] if you will ever be accessing the wiki from that domain. If installed on a remote server, replace [domain] with your server's domain name (eg: www.myserver.com).
  4. Follow the on-screen instructions to complete the process.

上述安装提示是故意写得如此简短的,也许会有错误发生,所以,如果有任何不确定的地方,建议你还是阅读下面的完整安装说明。

详细安裝教學[edit | edit source]

Alternative to manual installation[edit | edit source]

Some users may prefer to skip manual installation by using a pre-integrated MediaWiki software appliance or hosting services with 1-click installation and wiki farms.

If you are installing only for development or testing, consider using mediawiki-vagrant. You must have (and enable) hardware virtualization. Many modern computers have this, and you can check in your BIOS.

附录[edit | edit source]

高级的用途[edit | edit source]

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

高级配置[edit | edit source]

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

Installation assistance[edit | edit source]

System-specific instructions[edit | edit source]

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 the main install instructions before looking at a per system installation documents.

Notes[edit | edit source]

參見[edit | edit source]