A collection of resources that help to install MediaWiki as a knowledge management system (KMS).
I created the MediaWiki KMS project to help install Parsoid when it ran under NodeJS. At that time, the installation instructions felt incomplete and the dependencies felt difficult to reason about. Now that Parsoid (the PHP version) ships with MediaWiki, the remainder of my scripts are a rehash of the official Ubuntu, MediaWiki, MediaWiki extensions, and Webmin documentation. Therefore, I deprecated this project in favor of the official documentation for each respective project.
- Ubuntu Server 20.04 LTS
- MediaWiki 1.35 LTS
-
- Check the Install OpenSSH server option, if desired
- Leave all Featured Server Snaps unchecked (recommended)
-
Install updates and patches
sudo su apt-get update && apt-get dist-upgrade -y reboot now
-
Install the LAMP stack and required software
cd /tmp sudo su wget https://github.com/rDuckDev/MediaWiki-KMS/raw/master/install-host.sh bash install-host.sh
- Install MediaWiki on Ubuntu:
wget https://github.com/rDuckDev/MediaWiki-KMS/raw/master/install.sh
sudo bash install.sh
- Configure MediaWiki using your browser
- Download LocalSettings.php and add (or update) the following lines:
## Database settings $wgDBuser = "wiki"; $wgDBpassword = "<output from README>"; $wgDBadminuser = "wiki-sysop"; $wgDBadminpassword = "<output from README>"; # Configure MultimediaViewer $wgDefaultUserOptions['multimediaviewer-enable'] = 1; # Configure WikiEditor and CodeEditor $wgDefaultUserOptions['usebetatoolbar'] = 1; # Configure VisualEditor $wgVisualEditorEnableDiffPage = true; $wgVisualEditorEnableWikitext = true; $wgDefaultUserOptions['visualeditor-enable'] = 1; $wgHiddenPrefs[] = 'visualeditor-enable'; $wgVisualEditorAvailableNamespaces = [ "User" => true, "Help" => true ];
- Upload LocalSettings.php to /var/www/html/WikiName
- Download LocalSettings.php and add (or update) the following lines:
- Update MediaWiki-KMS:
wget https://github.com/rDuckDev/MediaWiki-KMS/raw/master/update.sh
sudo bash update.sh
- Update LocalSettings.php
- Parsoid (PHP version) is included MediaWiki 1.35+.
- When using Webmin, set MySQL configuration file to
/etc/mysql/mariadb.cnf
in the MySQL Database Server module.
- Apache
- MariaDB
- PHP
- Ghostscript
- ImageMagick
- Poppler
- Admin (one)