Wiki Konfiguration

Aus JBusters Development Wiki
Wechseln zu: Navigation, Suche



I didn't use the auto installer. Instead I used the current mediawiki version (1.18.0) from

General Configuration

  • Download mediawiki from
  • Unpack locally and upload using FTP
  • Create MYSQL database
    • database and user: lewold_mediawiki
    • server:
  • Invoke to start the installation. Used defaults beside:
    • admin user: admin / pwd
    • extensions: vector, wikieditor, renameuser
  • added various stylesheets using the Special page MediaWiki:Common.css.
  • configured various templates. You find them on the Special Pages searching for all pages type template.

Memory Problem

It wasn't possible to display various special pages because of the default servage memory limit.
Increase the php memory limit. usually you would edit php.ini, owever we cant access this file. The solution is to edit .htaccess.
Create .htaccess in /mediawiki with below contents.

php_value memory_limit 64M

Short URLs

In order to configure user friendly URLs refer to:

  • $wgArticlePath im LocalSettings.php anpassen
  • .htaccess file im webroot anlegen:
RewriteEngine On
RewriteBase /
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^mediawiki/(.*)$ ./mediawiki/index.php?title=$1 [PT,L,QSA]


This is the current version of LocalSettings.php.

$wgSitename = "JBusters Development";
$wgLanguageCode = "de";
# Prevent new user registrations except by sysops
$wgGroupPermissions['*']['createaccount'] = false;
# Restrict anonymous editing
$wgGroupPermissions['*']['edit'] = false;
# extensions
# allow upload svgs - see
$wgFileExtensions[] = 'svg';
$wgAllowTitlesInSVG = true;
# allow HTML (e.g. to define own forms)
$wgRawHtml = true;
# used to determine popularity, and show page counters
$wgDisableCounters = false;
# virtual path which has to be different to scriptPath, which actually points to mediawiki (being a symlink)
# does not work - likely have to adopt .htaccess 
$wgArticlePath = '/mediawiki/$1';
$wgUsePathInfo = true;
# disable caching as some dynamic pages have problems with
$wgEnableParserCache = false;
$wgCachePages = false;


You install extensions by loading them down locally and upload them into the extensions subdirectory (per FTP).
Then you have to add it to LocalSettings.php

Dynamic Pagelist

Used to provide dynamic contents. (newest article, articles for categories, etc.)

Syntax Highlight

In oder to properly display borders you have to apply this patch. Change

$css[] = ".source-$lang {line-height: normal;}";


$css[] = ".source-$lang {padding: 1em; border: 1px dashed #2f6fab; color: black; background-color: #f9f9f9; line-height: 1.1em;}";


Meine Werkzeuge