Ohje:Asennusohje
Tämä opas kertoo miten MediaWiki asennetaan ja konfiguroidaan manuaalisesti tai helpommilla vaihtoehtoisilla tavoilla. Ohjeessa käsitellään myös useamman kuin yhden wikin asentaminen ja olemassa olevan wikin asentaminen. The appendices provide links to more detailed installation notes for specific system configurations and other less common uses of the software.
Päivitysohje
Jos ajat jo MediaWikiä, katso päivitysohjetta.
Käsiasennus
Tiivistelmä
For experienced users, here is the quick version of the installation instructions. Most users (like if you don't know how to install or check for the prerequisite software on your computer) will want to follow the main installation guide.
- Tarkista että järjestelmäsi täyttää seuraavat vähimmäisvaatimukset. (Katso lisätietoja Asennusvaatimuksista. Tarkista vaatimukset myös MediaWikin mukana tulevasta RELEASE NOTES -tiedostosta.) Tarvitset:
- MediaWikin (nykyinen vakaa versio on 1.38.2)
- Verkkopalvelimen kuten Apache tai IIS
- Paikallinen- tai komentorivihteys tarvitaan ajamaan ylläpitoon vaadittavia scriptejä.
- PHP 7.3.19/7.4.3+
- with Standard PHP Library
- Tietokantapalvelin, jokin seuraavista
- MySQL 5.5.8+
- MariaDB
- PostgreSQL 9.2+
- SQLite 3.8+
Image thumbnailing requires additional programs. Parsoid (required by VisualEditor) and other services have their own requirements.
- Lataa MediaWiki (Template:MV stable release link) ja pura arkisto koneellesi hakemistoon, joka näkyy verkkoon.
- Osoita selaimesi hakemistoon, johon MediaWiki purettiin ja seuraa linkkiä asennusnäyttöön. Sen tulisi olla muotoa
http://domain/directory/mw-config/index.php
. Vaihda directoryn tilalle polku purettuun MediaWiki-kansioon. Jos asennat paikalliselle koneelle, vaihda domainin tilallelocalhost
. If you install locally and later want to access your wiki from domain, then you will need to change LocalSettings.php fromlocalhost
to domain. If installed on a remote server, replace domain with your server's domain name (e.g. www.myserver.com). - 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!
Pääasennusohje
- Ennen asennusta lue nämä:
- Opas:Mikä on MediaWiki?
- Manual:MediaWiki feature list
- Manual:Installation requirements - Tarkista nämä, ennen kuin jatkat pidemmälle!
- Ohje:MediaWikin asentaminen
- MediaWikin konfiguroiminen
- Manual:Config script - Initial configuration using the configuration script
- Manual:System administration - Further configuration
- Ohje:Laajennukset - Laajennuksien asentaminen
Alternatives to manual installation
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.
Wiki families (multiple wikis)
- Etusivu 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:
- Using a different database for each wiki.
Katso sivu $wgDBname .
- Using a different database prefix for each wiki.
Katso sivu $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).
Liitteet
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:
Installation assistance
- #mediawiki connect channel on IRC
- mediawiki-l is the high-traffic mailing list to ask for support.
Järjestelmäkohtaiset ohjeet
The following pages give more detailed installation instructions aimed at specific systems. However, by and large Ohje:MediaWikin asentaminen is more up to date, and better written than the per system docs, and as such it is recommended you first consult Ohje:MediaWikin asentaminen before looking at a per system installation documents.
Huomautuksia
- MediaWiki voidaan asentaa samaan tietokantaan toisen verkkopohjaisen sovelluksen, esim. phpBB, tms. kanssa.
- Some users find it helpful to install an additional software package such as phpMyAdmin (MySQL) or phpPgAdmin (Postgres) to help administer the database server.