Wiki Konfiguration

Aus JBusters Development Wiki
Wechseln zu: Navigation, Suche

Inhaltsverzeichnis

Installation

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

General Configuration

  • Download mediawiki from http://mediawiki.org.
  • Unpack locally and upload using FTP
  • Create MYSQL database
    • database and user: lewold_mediawiki
    • server: mysql1094.servage.net
  • Invoke http://www.jbusters.com/mediawiki/index.php 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: http://www.mediawiki.org/wiki/Manual:Short_URL

  • $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]

LocalSettings.php

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
require_once("extensions/SyntaxHighlight_GeSHi/SyntaxHighlight_GeSHi.php");
require_once("$IP/extensions/intersection/DynamicPageList.php");
# allow upload svgs - see http://www.mediawiki.org/wiki/Manual:Image_Administration#SVG
$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;

Extensions

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

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

Syntax Highlight

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

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

to

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


Links

Meine Werkzeuge
Namensräume
Varianten
Aktionen
Navigation
Werkzeuge