Installation Eines Wikis Auf Einem PC Am Beispiel XAMPP Und Mediawiki
Total Page:16
File Type:pdf, Size:1020Kb
Installation eines Wikis auf einem PC am Beispiel XAMPP und Mediawiki Dr. Claus Brell, Stand: 23.10.2009 XAMPP Server herunterladen und installieren Anmerkung: Wenn Sie nicht das integrierte XAMPP-Paket nutzen wollen, sondern lieber Apache, PHP und MySQL „von Hand“ einrichten wollen, sie Ihnen die Lektüre der Selbstlernunterlage http://claus- brell.de/materialien/Brell_Seminarunterlage_Intranet_Internet_Design_Technik_2009.pdf empfohlen. Hier erfahren Sie auch Grundlegendes zur Gestaltung von Webseiten und steigen etwas tiefer in die Apache Konfiguration, PHP und MySQL ein. Für den Betrieb eines Webservers auf dem eigenen Rechner ist die Installation des XAMPP- Paketes der einfacherer Weg… herunterladen: http://www.apachefriends.org/de/xampp-windows.html Auf Viren scannen! Exe starten und „C:\“ oder „E:\“ einstellen: Mediawiki installieren, Dr. Claus Brell 1 (5) Änderungen an den Konfigurationsdateien: Übersicht 1. Verzeichnisse und virtuelle Hosts einrichten (in htppd.conf, htppd-vhosts.conf) 2. MySQL (my.ini) kontrollieren, ggf ändern 3. Verzeichnis für Wiki vorbereiten 4. Anbindung PHP an MySQL mit PHPMyAdmin testen Apache Webserver In C:\xampp\apache\conf\extra\httpd-vhosts.conf : # Claus Brell 10.08.2009 # Einstellung VHost für Verzeichnis "www" listen 81 <VirtualHost *:81> ##ServerAdmin [email protected] DocumentRoot "/www" ##ServerName original.localhost ##ServerAlias www.dummy-host.localhost ErrorLog "logs/www.localhost-error.log" ##CustomLog "logs/dummy-host.localhost-access.log" combined </VirtualHost> # Claus Brell 10.08.2009 # Einstellung anderes Dokumentenverzeichnis <Directory "/www"> # # Possible values for the Options directive are "None", "All", # or any combination of: # Indexes Includes FollowSymLinks SymLinksifOwnerMatch ExecCGI MultiViews # # Note that "MultiViews" must be named *explicitly* --- "Options All" # doesn't give it to you. # # The Options directive is both complicated and important. Please see # http://httpd.apache.org/docs/2.2/mod/core.html#options # for more information. # Options Indexes FollowSymLinks Includes ExecCGI # # AllowOverride controls what directives may be placed in .htaccess files. # It can be "All", "None", or any combination of the keywords: Mediawiki installieren, Dr. Claus Brell 2 (5) # Options FileInfo AuthConfig Limit # AllowOverride All # # Controls who can get stuff from this server. # Order allow,deny Allow from all # Claus Brell # Anzeige des Verzeichnisses Options +Indexes </Directory> MySQL In C:\xampp\mysql\bin\my.ini : [mysqld] basedir = "/xampp/mysql/" datadir = "/xampp/mysql/data/" port = 3306 socket = "MySQL" skip-locking key_buffer = 16M # Claus Brell 10.08.2009 # Erhöung auf 16M # max_allowed_packet = 1M max_allowed_packet = 16M Wikimedia-Software herunterladen und einspielen 1. Dateien herunterladen: http://www.mediawiki.org/wiki/MediaWiki/de 2. Dateien entpacken in C:\www oder F:\www 3. Neues Verzeichnis mediawiki-<Version> umbenennen in wiki 4. Mit PHPMyAdmin Datenbank „wiki“ und Datenbanknutzer mit allen Rechten auf „wiki“ anlegen 5. Wiki aufrufen mit http://localhost/wiki => es erscheint die Konfigurationsseite Übersicht über die Mediawiki-Konfiguration Mediawiki installieren, Dr. Claus Brell 3 (5) 1. Kluger Wiki-Name 2. Für Testsystem: einfache user / password (admin/admin123) 3. E-Mail… alles ausschalten 4. Database: Name, User „wiki Password „wiki123“ 5. Alles andere default lassen, Install MediaWiki 6. Anweisung befolgen: config/LocalSettings.php kopieren 7. Ggf. Logo austauschen, andere Oberfläche….. # Einfügen, wenn Eintrag nicht vorhanden # Claus Brell 11.08.2009 # FOM-Logo statt Mediawiki-Blume $wgLogo = "/wiki/FH-SWF-LOGO.jpg"; Wiki nutzen und erste Inhalte einstellen Textformatierungen Klickmöglichkeiten im Editor: • Zwischenüberschrift: Text markieren und auf das große A klicken • Zeilenumbruch: im Editor zweimal Return drücken • Link auf bestehende Seite: Text markieren und unterstrichenes Ab klicken. Überschriften allgemein: == Überschrift Ebene 2 == === Überschrift Ebene 3 === Aufzählungen: * eins * zwei ** zwei-eins ** zwei-zwei * drei Nummerierungen: # eins # zwei ## zwei-eins ## zwei-zwei # drei Mediawiki installieren, Dr. Claus Brell 4 (5) http://de.wikipedia.org/wiki/Hilfe:Textgestaltung Neue Seite anlegen: 1. Im Suchfeld gewünschten Seitennamen eingeben und danach suchen 2. Auf den roten Seitennamen (in der Fehlanzeigemeldung) klicken 3. Seite bearbeiten und speichern http://de.wikipedia.org/wiki/Hilfe:Neue_Seite_anlegen Mediawiki installieren, Dr. Claus Brell 5 (5) .