Jump to content

MediaWiki - Installation

From jeankn.app WIKI
Revision as of 19:48, 19 October 2025 by Jeanknapp (talk | contribs) (Jeanknapp moved page MediaWiki Installation to MediaWiki - Installation without leaving a redirect)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

Download Instructions

Update your server

Run the following command in Terminal:

sudo apt update && sudo apt upgrade -y

Verify PHP modules

Run the following command in Terminal:

sudo apt install php-intl php-xml php-mbstring php-json php-curl php-gd php-apcu -y

Download and unpack MediaWiki

Run the following command in Terminal:

cd /tmp
wget https://releases.wikimedia.org/mediawiki/1.44/mediawiki-1.44.2.tar.gz
tar -xvzf mediawiki-1.44.2.tar.gz
sudo mv mediawiki-1.44.2 /var/www/html/mediawiki

Set permissions

Run the following command in Terminal:

sudo chown -R www-data:www-data /var/www/html/mediawiki
sudo chmod -R 755 /var/www/html/mediawiki

Then run the following commands, replacing the variable with the user you log into the FTP Client:

sudo chown -R [FTP_USER]:www-data /var/www/html/mediawiki

Database Setup

  1. Open phpMyAdmin and navigate to User accounts and click Add user account.
  2. Setup an User name and a Password, and select Host name to Local. Write down the password you set.
  3. Under Database for user account, check Create database with same name and grant all privileges, and click Go.
  4. Open the created Database, navigate to Operations > Collation and switch it to mb4_unicode_ci.

Wiki Setup

Open your browser and go to:

https://your-domain.com/mediawiki

Language

Select english for both options and click continue.

Click continue.

Connect to database

Insert the following data:

  • Database name
  • Database username
  • Database password

Click continue.

Database settings

Click continue.

Name

  1. Set the Name of wiki
  2. In Project namespace, select Other and specify a namespace.
  3. Setup an Administrator account, and uncheck Share data about this installation with MediaWiki developers.
  4. Click Continue.

Options

  1. Select the following options: Authorized editors only and Creative Commons Attribution-ShareAlike
  2. Uncheck Enable outbound email
  3. Uncheck skins MinervaNeue, MonoBook, Timeless, and select Use this skin as default under Vector.
  4. Check all Special pages, Editors, Parser hooks and Media handlers
  5. Under Other, check MultimediaViewer.
  6. Clear Logo and Sidebar logo.
  7. Click Continue.

Install

Click Continue.

Click Continue again.

Upload LocalSettings.php

A file named LocalSettings.php will be downloaded. Upload that file to /var/www/html/mediawiki/.