Merge "INSTALL/RELEASE-NOTES-1.34: Add required PHP extensions"
[lhc/web/wiklou.git] / INSTALL
1 ---
2 Installing MediaWiki
3 ---
4
5 Starting with MediaWiki 1.2.0, it's possible to install and configure the wiki
6 "in-place", as long as you have the necessary prerequisites available.
7
8 Required software as of MediaWiki 1.34.0:
9
10 * Web server with PHP 7.0.13 or higher, plus the following extesnsions:
11 ** ctype
12 ** fileinfo
13 ** iconv
14 ** json
15 ** mbstring
16 ** xml
17 * A SQL server, the following types are supported
18 ** MySQL 5.5.8 or higher
19 ** PostgreSQL 9.2 or higher
20 ** SQLite 3.8.0 or higher
21
22 MediaWiki is developed and tested mainly on Unix/Linux platforms, but should
23 work on Windows as well.
24
25 Support for specialised content requires installing the relevant extension. For
26 formulæ, see https://www.mediawiki.org/wiki/Special:MyLanguage/Extension:Math
27
28 Don't forget to check the RELEASE-NOTES file...
29
30
31 Additional documentation is available online, which may include more detailed
32 notes on particular operating systems and workarounds for difficult hosting
33 environments:
34
35 https://www.mediawiki.org/wiki/Special:MyLanguage/Manual:Installation_guide
36
37
38 ******************* WARNING *******************
39
40 REMEMBER: ALWAYS BACK UP YOUR DATABASE BEFORE
41 ATTEMPTING TO INSTALL OR UPGRADE!!!
42
43 ******************* WARNING *******************
44
45 ----
46 In-place web install
47 ----
48
49 Decompress the MediaWiki installation archive either on your server, or on your
50 local machine and upload the directory tree. Rename it from "mediawiki-1.x.x" to
51 something nice, like "wiki", since it will be appearing in your URL,
52 ie. /wiki/index.php/Article.
53
54 +--------------------------------------------------------------------------+
55 | Note: If you plan to use a fancy URL-rewriting scheme to prettify your |
56 | URLs, such as http://www.example.com/wiki/Article, you should put the |
57 | files in a *different* directory from the virtual path where page names |
58 | will appear. It is common in this case to use w as the folder name and |
59 | /wiki/ as the virtual article path where your articles pretend to be. |
60 | |
61 | See: https://www.mediawiki.org/wiki/Special:MyLanguage/Manual:Short_URL |
62 +--------------------------------------------------------------------------+
63
64 Hop into your browser and surf into the wiki directory. It'll direct you into
65 the config script. Fill out the form... remember you're probably not on an
66 encrypted connection.
67 Gaaah! :)
68
69 If all goes well, you should soon be told that it's set up your wiki database
70 and generated a configuration file. There is now a copy of "LocalSettings.php"
71 available to download from the installer. Download this now, there is not a
72 way (yet) to get it after you exit the installer. Place it in the main wiki
73 directory, and the wiki should now be working.
74
75 Once the wiki is set up, you should remove the mw-config directory (though it
76 will refuse to config again if the wiki is set up).
77
78 ----
79
80 Don't forget that this is free software under development! Chances are good
81 there's a crucial step that hasn't made it into the documentation. You should
82 probably sign up for the MediaWiki developers' mailing list; you can ask for
83 help (please provide enough information to work with, and preferably be aware of
84 what you're doing!) and keep track of major changes to the software, including
85 performance improvements and security patches.
86
87 https://lists.wikimedia.org/mailman/listinfo/mediawiki-announce (low traffic)
88
89 https://lists.wikimedia.org/mailman/listinfo/mediawiki-l (site admin support)
90
91 https://lists.wikimedia.org/mailman/listinfo/wikitech-l (development)