Prerequisites

  • create a new DB and DB user in mysql

  • give the user full rights on his db

Installation

  • Download the latest mediawiki release, unzip it and move it to webserver root
wget  https://releases.wikimedia.org/mediawiki/1.XX/mediawiki-1.XX.X.tar.gz
tar xvzf mediawiki-1.XX.X.tar.gz
sudo mkdir /var/www/html/yourmedia
sudo mv mediawiki-1.29.1/* /var/www/html/yourmedia
  • navigate to the path in the webbrowser and follow the installation steps

  • download the generated LocalSettings.php

  • Edit the file on your remote session

sudo nano /var/www/html/yourmedia/LocalSettings.php
  • Copy the code from your local pc to LocalSettings.php

Useful Extensions

MobileFrontend

tar -xzf MobileFrontend-REL1_29-4f7aee1.tar.gz -C /var/www/mediawiki/extensions
  • Add this to LocalSettings.php
 wfLoadExtension( 'MobileFrontend' );
 $wgMFAutodetectMobileView = true;