Difference between revisions of "MediaWiki"

From Linuxintro
imported>ThorstenStaerk
imported>ThorstenStaerk
Line 1: Line 1:
 
Mediawiki is a wiki software used by wikipedia and this wiki.
 
Mediawiki is a wiki software used by wikipedia and this wiki.
 +
 +
= Setup =
 +
* [[Set up mediawiki with SUSE]]
  
 
= Configuration =
 
= Configuration =
Line 34: Line 37:
 
* on ''mars'', delete LocalSettings.php
 
* on ''mars'', delete LocalSettings.php
 
* call your wiki on mars. You get the opportunity to set up your wiki.
 
* call your wiki on mars. You get the opportunity to set up your wiki.
 
= Setup =
 
* [[Set up mediawiki with SUSE]]
 

Revision as of 06:59, 18 October 2008

Mediawiki is a wiki software used by wikipedia and this wiki.

Setup

Configuration

Allowing pictures

If you are the only editor of a wiki (otherwise security flaws!) and want to allow pictures from all over the web, add the following line to the LocalSettings.php

$wgAllowExternalImages = true;

below the line

require_once( "includes/DefaultSettings.php" );

Allow all html tags

If you are the only editor of a wiki (otherwise security flaws!) and want to allow any html code in your wiki, read and follow http://www.mediawiki.org/wiki/Manual:%24wgRawHtml

Changing the sidebar

This is done on the application level; just edit Mediawiki:Sidebar.

beautify URL

By default, mediawiki's main page is in http://whatever/index.php/Main_Page. To get rid of "index.php", read and follow http://www.mediawiki.org/wiki/Manual:Short_URL

Backup

On the application layer:

php maintenance/dumpBackup.php --full >backup.xml

On the database layer:

mysqldump wikidb >wikidbdump.sql

Migrate

This describes how to migrate a wiki from one computer to another. It copies the mediawiki software and the content. Let's assume your mediawiki is running on computer earth and you want to have it running on mars.

  • copy your mediawiki software
  • on mars, delete LocalSettings.php
  • call your wiki on mars. You get the opportunity to set up your wiki.