Manual:Installation guide/zh-tw

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的基本步驟。後面的章節將包含更多安裝細節及說明列表,其中包括了具體的系統建置方式及延伸用途。
Contents
升級指南[edit | edit source]
如果你安裝了 MediaWiki,請看升級指南。
![]() |
(*) – MariaDB,是採用 GPL 授權發行的 MySQL 分支,由 MySQL 創始人 Monty Widenius 發起,同樣適用於 MediaWiki。Debian/Ubuntu 儲存庫。 |
快速安裝指南[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. |
對於有經驗的用戶而言,這只是快速安裝說明。大多數用户仍然需要閱讀下小節的詳細說明。
- Check that your system meets the minimum requirements
- Download MediaWiki (direct link to latest version) and extract the archive to a web-accessible folder on your server.
- 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).
- Follow the on-screen instructions to complete the process.
上述安裝提示是特意簡化的版本,可能與實際狀況略有誤差,若有不確定的地方,建議你閱讀下方的完整安裝說明。
詳細安裝教學[edit | edit source]
- 安裝前
- 了解Mediawiki是甚麼
- 查看MediaWiki功能清單
- 系統需求 - 在向繼續進行前務必查看!
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]
這些頁面將講述更進階的配置選項:
Installation assistance[edit | edit source]
- FAQ: FAQ#Installation and configuration
- IRC (#mediawiki)
- mediawiki-l (Mailing List) is the high-traffic mailing list to ask for support.
- MediaWiki Users (Forum) is a user-to-user MediaWiki support forum (offline)
在各種作業系統中安裝MediaWiki[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]
- MediaWiki ships with an installation script which allows web-based configuration
- MediaWiki can share the database of another web-based application, e.g. phpBB etc.
- Knowledge of PHP is required in order to customize the software
- PHP 5 support has been required since MediaWiki 1.7 – if you are using an older version of PHP and cannot upgrade then you should use MediaWiki 1.6.12 (download). Note that this version is no longer supported.
- MySQL 4 support has been required since MediaWiki 1.6 – if you are using an older version of MySQL and cannot upgrade then you should use MediaWiki 1.5.8 (download). Note that this version is no longer supported.
- MySQL 5 support is required since MediaWiki 1.19 – if you are using an older version of MySQL and cannot upgrade, you should use MediaWiki 1.18.5 (download). Note that this version is no longer supported.
- Some users find it helpful to install an additional software package such as phpMyAdmin (MySQL) or phpPgAdmin (Postgres) to help administer the database server.