Linux.Wiki: Unterschied zwischen den Versionen
Keine Bearbeitungszusammenfassung |
Keine Bearbeitungszusammenfassung |
||
Zeile 45: | Zeile 45: | ||
1) 4 Dateien aus der MediaWiki SVN | 1) 4 Dateien aus der MediaWiki SVN | ||
2) Das RELEASE!!! Zip der GeSHi Homepage | 2) Das RELEASE!!! Zip der GeSHi Homepage | ||
== MySQL - Migration == | |||
<code> | |||
"SET NAMES utf8" -> "SET NAMES utf8" | |||
"CHARSET=utf8" -> "CHARSET=utf8" | |||
"character set utf8 collate utf8_general_ci" -> "character set utf8 collate utf8_general_ci" | |||
Tabellen Keys kürzen: | |||
DROP TABLE IF EXISTS `categorylinks`; | |||
CREATE TABLE `categorylinks` ( | |||
`cl_from` int(8) unsigned NOT NULL default '0', | |||
`cl_to` varchar(127) character set utf8 collate utf8_general_ci NOT NULL default '', | |||
`cl_sortkey` varchar(127) character set utf8 collate utf8_general_ci NOT NULL default '', | |||
`cl_timestamp` timestamp NOT NULL default CURRENT_TIMESTAMP on update CURRENT_TIMESTAMP, | |||
UNIQUE KEY `cl_from` (`cl_from`,`cl_to`), | |||
KEY `cl_timestamp` (`cl_to`,`cl_timestamp`), | |||
KEY `cl_sortkey` (`cl_to`,`cl_sortkey`,`cl_from`) | |||
) ENGINE=MyISAM DEFAULT CHARSET=utf8; | |||
utf8_general_ci | |||
DROP TABLE IF EXISTS `categorylinks`; | |||
CREATE TABLE `categorylinks` ( | |||
`cl_from` int(8) unsigned NOT NULL default '0', | |||
`cl_to` varchar(127) character set utf8 collate utf8_general_ci NOT NULL default '', | |||
`cl_sortkey` varchar(127) character set utf8 collate utf8_general_ci NOT NULL default '', | |||
`cl_timestamp` timestamp NOT NULL default CURRENT_TIMESTAMP on update CURRENT_TIMESTAMP, | |||
UNIQUE KEY `cl_from` (`cl_from`,`cl_to`), | |||
KEY `cl_timestamp` (`cl_to`,`cl_timestamp`), | |||
KEY `cl_sortkey` (`cl_to`,`cl_sortkey`,`cl_from`) | |||
) ENGINE=MyISAM DEFAULT CHARSET=utf8; | |||
DROP TABLE IF EXISTS `categorylinks`; | |||
CREATE TABLE `categorylinks` ( | |||
`cl_from` int(8) unsigned NOT NULL default '0', | |||
`cl_to` varchar(127) character set utf8 collate utf8_general_ci NOT NULL default '', | |||
`cl_sortkey` varchar(127) character set utf8 collate utf8_general_ci NOT NULL default '', | |||
`cl_timestamp` timestamp NOT NULL default CURRENT_TIMESTAMP on update CURRENT_TIMESTAMP, | |||
UNIQUE KEY `cl_from` (`cl_from`,`cl_to`), | |||
KEY `cl_timestamp` (`cl_to`,`cl_timestamp`), | |||
KEY `cl_sortkey` (`cl_to`,`cl_sortkey`,`cl_from`) | |||
) ENGINE=MyISAM DEFAULT CHARSET=utf8; | |||
Folgende zeile auskommentieren: | |||
INSERT INTO `image` VALUES ('Beleg.PNG',37264,'',1,'Root','20080516080458',937,691,8,'','BITMAP','image','png','6a3tgc1cymxe6y33gprh5i7iqt5ejqj'); | |||
Tabellen keys kürzen: | |||
CREATE TABLE `imagelinks_old` ( | |||
`il_from` varchar(127) character set utf8 collate utf8_general_ci NOT NULL default '', | |||
`il_to` varchar(127) character set utf8 collate utf8_general_ci NOT NULL default '', | |||
KEY `il_from` (`il_from`(10)), | |||
KEY `il_to` (`il_to`,`il_from`) | |||
) ENGINE=MyISAM DEFAULT CHARSET=utf8; | |||
löschen der zeile | |||
INSERT INTO `page` VALUES (2254,0,'AusgabeArt','',581,0,0,0.514803822297,'20070925132006',18953,23); | |||
löschen der Zeile | |||
INSERT INTO `page` VALUES (2426,6,'Beleg.PNG','',22,0,1,0.173215221939,'20080516080552',20362,0); | |||
ü -> ü | |||
ä -> ä | |||
Ãœ -> Ü | |||
Ä -> Ä | |||
ö -> ö | |||
ß -> ß | |||
Ö -> Ö | |||
</code> |
Version vom 26. Oktober 2011, 10:14 Uhr
Dieser Artikel enthält Infos, um dieses Wiki neu aufzusetzen (Nach Crash oder Umzug auf einen anderen Server). Systemanforderungen eines Wikis sind:
- Apache2
- PHP5
Die Installations-Schritte sind:
- Die neueste Distribution des Media-Wiki-Zips nach /srv/www/htdocs/mediawiki auspacken. (Der Grund ist: (noch Unbestätigt für 2008): Wenn man ein Wiki von einem Server umzieht ist dummerweise der Pfad in die Datenbank eingetragen (ein schlimmer Design-Fehler) also wieder GENAU den Pfad zur Verfügng stellen wie es war!)
- Die Datenbanksicherung einspielen
- MySQL muss laufen
- Ein root user muss existieren
- create database wiki;
- charset latin1;
- Rückspielen des Dumps
- ./mediawiki/config ausführen
mv LocalSettings.php ..
- Anpassungen der LocalSettings machen
- Bilder zurückspielen
- das ./images Verzeichnis sollte noch beschreibbar gemacht werden
- Kompletter alter Inhalt überschreibt dabei das fast leere ./images einer frisch entpackten Version
LocalSettings.php
$wgEnableUploads = true; $wgUseImageMagick = true; $wgEnotifUserTalk = false; # UPO $wgEnotifWatchlist = false; # UPO $wgEmailAuthentication = false; $wgGroupPermissions['*']['edit'] = false; $wgGroupPermissions['*']['createaccount'] = false; $wgLogo = "/mediawiki/images/OrgaMon.png";
Syntax Highliter Extension
http://www.mediawiki.org/wiki/Extension:SyntaxHighlight_GeSHi
Installation
1) 4 Dateien aus der MediaWiki SVN 2) Das RELEASE!!! Zip der GeSHi Homepage
MySQL - Migration
"SET NAMES utf8" -> "SET NAMES utf8"
"CHARSET=utf8" -> "CHARSET=utf8"
"character set utf8 collate utf8_general_ci" -> "character set utf8 collate utf8_general_ci"
Tabellen Keys kürzen:
DROP TABLE IF EXISTS `categorylinks`;
CREATE TABLE `categorylinks` (
`cl_from` int(8) unsigned NOT NULL default '0',
`cl_to` varchar(127) character set utf8 collate utf8_general_ci NOT NULL default ,
`cl_sortkey` varchar(127) character set utf8 collate utf8_general_ci NOT NULL default ,
`cl_timestamp` timestamp NOT NULL default CURRENT_TIMESTAMP on update CURRENT_TIMESTAMP,
UNIQUE KEY `cl_from` (`cl_from`,`cl_to`),
KEY `cl_timestamp` (`cl_to`,`cl_timestamp`),
KEY `cl_sortkey` (`cl_to`,`cl_sortkey`,`cl_from`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8;
utf8_general_ci
DROP TABLE IF EXISTS `categorylinks`;
CREATE TABLE `categorylinks` (
`cl_from` int(8) unsigned NOT NULL default '0',
`cl_to` varchar(127) character set utf8 collate utf8_general_ci NOT NULL default ,
`cl_sortkey` varchar(127) character set utf8 collate utf8_general_ci NOT NULL default ,
`cl_timestamp` timestamp NOT NULL default CURRENT_TIMESTAMP on update CURRENT_TIMESTAMP,
UNIQUE KEY `cl_from` (`cl_from`,`cl_to`),
KEY `cl_timestamp` (`cl_to`,`cl_timestamp`),
KEY `cl_sortkey` (`cl_to`,`cl_sortkey`,`cl_from`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8;
DROP TABLE IF EXISTS `categorylinks`;
CREATE TABLE `categorylinks` (
`cl_from` int(8) unsigned NOT NULL default '0',
`cl_to` varchar(127) character set utf8 collate utf8_general_ci NOT NULL default ,
`cl_sortkey` varchar(127) character set utf8 collate utf8_general_ci NOT NULL default ,
`cl_timestamp` timestamp NOT NULL default CURRENT_TIMESTAMP on update CURRENT_TIMESTAMP,
UNIQUE KEY `cl_from` (`cl_from`,`cl_to`),
KEY `cl_timestamp` (`cl_to`,`cl_timestamp`),
KEY `cl_sortkey` (`cl_to`,`cl_sortkey`,`cl_from`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8;
Folgende zeile auskommentieren:
INSERT INTO `image` VALUES ('Beleg.PNG',37264,,1,'Root','20080516080458',937,691,8,,'BITMAP','image','png','6a3tgc1cymxe6y33gprh5i7iqt5ejqj');
Tabellen keys kürzen:
CREATE TABLE `imagelinks_old` (
`il_from` varchar(127) character set utf8 collate utf8_general_ci NOT NULL default ,
`il_to` varchar(127) character set utf8 collate utf8_general_ci NOT NULL default ,
KEY `il_from` (`il_from`(10)),
KEY `il_to` (`il_to`,`il_from`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8;
löschen der zeile
INSERT INTO `page` VALUES (2254,0,'AusgabeArt',,581,0,0,0.514803822297,'20070925132006',18953,23);
löschen der Zeile
INSERT INTO `page` VALUES (2426,6,'Beleg.PNG',,22,0,1,0.173215221939,'20080516080552',20362,0);
ü -> ü
ä -> ä
Ãœ -> Ü
Ä -> Ä
ö -> ö
ß -> ß
Ö -> Ö