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