MediaWiki

From MINE Wiki
Jump to: navigation, search

Installation of your own MediaWiki

What do i need for that?

  • An account at bplaced.net (free webhoster with mysql/php support)
  • Some files that you can download for free, as MediaWiki is an open source software
  • If you follow this step by step instruction, it will take you 10-15min to have your own MediaWiki up and running

Why i should run my own MediaWiki

  • You are independent
  • You can add plugins and extensions that you need and want
  • You decide where the data is stored
  • You can adapt it to your needs

Used tools

  • Webbrowser
  • FTP-Client
  • Texteditor

Downloads

  • Mediawiki
  • replacement of the TempFSFile.php when you use bplaced.net TempFSFile.php

HowTo

  1. Create a free account at bplaced.net (choose a short username, otherwise you might have some troubles later with the database)
  2. Create a mysql database for the mediawiki in the bplaced webinterface. - remember about the database name and the username
  3. Create a ftp account at the bplaced webinterface
  4. Download the latest stable MediaWiki from here: Mediawiki
  5. Unpack the files you just downloaded
  6. Start the FTP client, set it up with your bplaced.net credentials and connect your FTP client with the bplaced.net server
  7. Create a directory wiki (or something similar) for the wiki
  8. Enter the new created directory
  9. Create in the wiki directory the directory called: temp
  10. Upload the unpacked MediaWiki files in the directory
  11. Navigate to "includes/libs/filebackend/fsfile/" and replace the TempFSFile.php with this file: TempFSFile.php You have to do that BEFORE you start the Setup at the server!!!!!
  12. Open in your webbrowser YOUR bplaced.net address, followed by /wiki (or whatever you have choosen before)
  13. Follow the setup navigation
  14. Download the LocalSettings.php file and open it with a text editor
  15. Add this at the end of the LocalSettings.php file: $wgTmpDirectory = "tmp";
  16. Upload the LocalSettings.php file with your FTP Client to the root directory of the Wiki
  17. Check your installation, if all is working as expected


Make it shiny and nice

Change the default editor

  1. By default, the mediawiki comes with a very puristic editor. To enable the little more modern one, add this to your LocalSettings.php:
wfLoadExtension( 'WikiEditor' );

$wgDefaultUserOptions['usebetatoolbar'] = 1;

Mobile Frontend

Mediawiki has a great frontend for mobile devices, which is NOT in the default setup. To make a better mobile frontend working, follow this steps:

  1. Download (unpack) and place the file(s) in a directory called MinervaNeue in your skins/ folder.
  2. Download (unpack) the Mobile Extention files and upload them to the folder MobileFrontend in your folder extensions/
  3. Add this to your LocalSettings.php:
wfLoadExtension( 'MobileFrontend' );

$wgMFAutodetectMobileView = true;
wfLoadSkin( 'MinervaNeue' );
$wgMFDefaultSkinClass = 'SkinMinerva'; // use Minerva skin