Difference between revisions of "MediaWiki"

From Dietrich Blog (Strato)
Jump to: navigation, search
(Installation auf Server Westhost)
Line 2: Line 2:
  
 
== Funktionen ==
 
== Funktionen ==
Ein besonders schönes WikiWikiWeb. Siehe WikiWikiWebAuswahlverfahren
+
Ein besonders schönes [[WikiWikiWeb]]. Siehe [[WikiWikiWebAuswahlverfahren]]
  
 
== Installation MediaWiki 1.5 auf ComputerBraunbaer ==
 
== Installation MediaWiki 1.5 auf ComputerBraunbaer ==

Revision as of 11:39, 10 June 2007

MediaWiki

Funktionen

Ein besonders schönes WikiWikiWeb. Siehe WikiWikiWebAuswahlverfahren

Installation MediaWiki 1.5 auf ComputerBraunbaer

Installiert auf ComputerBraunbaer am 22.7.2005, um es mit WebsiteMonikaFaulkner einmal auszuprobieren.

Installation MediaWiki 1.5 auf Server Westhost

  • Installations-Ordner: /var/www/html/faulkner
  • Datenbank anlegen: create database .....
  • Modifizieren LocalSettings.php
    • $IP = "/var/www/html/faulkner"
    • $wgSitename = "Eisbaer";
    • $wgScriptPath = "/faulkner";
    • DBPasswd ....

Konfiguration auf Server Westhost

  • Sitename: Eisbaer (2=Lexikon)
  • Language: de - Deutsch UTF-8 (Unicode)
  • Copyright Metadata: No
  • Sysop: WikiSysop / lotusnots
  • E-Mail (general): disabled
  • Database:
    • Server: localhost
    • Datenbank: wikidb15 (2=lexikon)
    • User: ...
    • Passwort: ....
    • Root-Password: leerlassen (weil SHA1 hash von PHP 4 nicht unterstützt wird)
  • Move /config/LocalSettings.php into parent directory
  • User einrichten: dkracht
  • Image Upload: Manuell erlauben durch Einstellung in LocalSettings.php
  • Image Resize (Thumbnail) erfordert PHP.INI extension php_gd2.dll
    • PHP Konfigurationsdatei: D:\php\php.ini
    • PHP Extensions DLLs kopieren von D:\php\extensions nach D:\Programme\Apache
    • Use ImageMagick = false
  • Turck MMCache not

Navigation (WebsiteMonikaFaulkner)

In MediaWiki version 1.5beta1, and presumably later versions, you can change this by editing the document MediaWiki:Sidebar. (This is erroneously, I think, described as "navbar" in the release notes.)

Looking at it will make the format clear. The keywords are article names in the MediaWiki: namespace.

So, to add "contact-url||contact" to create a contact information page, you would create
  • MediaWiki:Contact-url with the text "Contact" (if the Contact page is to be in the main namespace) and
  • MediaWiki:Contact with text "Contact us" or whatever you want to appear in the navigation sidebar.

Finally, edit the Contact page to contain the text you want readers to see. It will now be in the navigation sidebar, so you can just click it to create and edit the page. To make a link to an external URL, put the URL text only, no wiki markup, in the -url page.

Source: http://meta.wikimedia.org/wiki/Navigation

Der Sidebar wurde wie folgt eingerichtet:

Alle Artikel exportieren als XML (Bilder fehlen dann aber...)

PHP-Script dumpBackup.php im Ordner maintenance.

This script dumps the wiki page database into an XML interchange wrapper
format for export or backup.

XML output is sent to stdout; progress reports are sent to stderr.

Usage: php dumpBackup.php <action> [<options>]
Actions:
  --full		Dump complete history of every page.
  --current	Includes only the latest revision of each page.
Options:
  --quiet	  Don't dump status reports to stderr.
  --report=n  Report position and speed after every n pages processed.
				  (Default: 100)

Beispiel ComputerBraunbaer Faulkner:

  1. e:
  2. cd \var\www\www.kr8.de\htdocs\faulkner-1.5\maintenance
  3. d:\php\php dumpBackup.php --current >ppp.xml
  4. xml header direktive korrigieren...
  5. xml syntax überbrüfen..


Beispiel ComputerBraunbaer Lexikon:

  1. e:
  2. cd \var\www\www.kr8.de\htdocs\lexikon\maintenance
  3. d:\php\php dumpBackup.php --current >ppp.xml
  4. xml header direktive korrigieren...
  5. xml syntax überbrüfen..

Daten exportieren und importieren als MySQL-Dump

mysqldump -uroot -phugo wikidb15 > daten.sql
mysql -uroot -phugo wikidb15 < daten.sql

Hier auf ComputerBraunbaer ist MySQL Version 4.0.16nt installiert, das sollte UTF-8 können (UTF8_General_ci...)

Beispiel Export auf ComputerBraunbaer mit MySQL 4.1:

  1. d:
  2. cd \programme\mysql\bin
  3. mysqldump -uroot -phugo wikidb15 > wikiallutl8.sql (evtl. --compatibility=mysql323 --default-character-set=latin1 ...)

Beispiel Import auf WebsiteWesthost mit MySQL 4.1.9

  1. Tabelle objectcache aus Exportdatei entfernen
  2. SSH-Verbindung zu Westhost herstellen
  3. Upload der Exportdatei d:\programme\mysql\bin\wikiallutf8.sql in den Ordner /home/lonzo
  4. Import: mysql -uroot wikidb <wikiallutf8.sql

Ggf. SQL-Tables kopieren:

insert into wikidb.cur
 select from wikidb_v1.cur
		  where cur_id>935

Installation Mediawiki 1.9.3 auf Westhost

  • Vorhandenes MySQL 4.1.9 wird mitverwendet
  • Datenbank User: root, wikiuser
  • Neue Datenbank 'wikidb als Ziel für das migrierte TWiki


-- Main.DietrichKracht - 23 Jul 2005