Full Installation Instructions/de: Difference between revisions
From SemanticOrganization
No edit summary |
(Updating to match new version of source page) |
||
Line 32: | Line 32: | ||
=== Semantic MediaWiki und Semantic Result Formats installieren === | === Semantic MediaWiki und Semantic Result Formats installieren === | ||
<div class="mw-translate-fuzzy"> | |||
[https://getcomposer.org/ Composer] installieren, falls nicht bereits vorhanden | [https://getcomposer.org/ Composer] installieren, falls nicht bereits vorhanden | ||
</div> | |||
cd .. | cd .. |
Revision as of 04:13, 12 December 2020
Vollständige Installation
Datenbank erstellen
mysql> create database sandbox; mysql> grant all on sandbox.* to sandbox@localhost identified by '***';
MediaWiki herunterladen
wget https://releases.wikimedia.org/mediawiki/1.31/mediawiki-1.31.0.tar.gz tar xvzf mediawiki-1.31.0.tar.gz mv mediawiki-1.31.0 w rm mediawiki-1.31.0.tar.gz
Tweeki-Skin herunterladen
cd w/skins/ git clone https://github.com/thaider/Tweeki
Extensions herunterladen
cd ../extensions/ git clone https://gerrit.wikimedia.org/r/p/mediawiki/extensions/PageForms.git cd PageForms git checkout 397dfbb cd .. git clone https://github.com/thaider/SemanticOrganization
Semantic MediaWiki und Semantic Result Formats installieren
Composer installieren, falls nicht bereits vorhanden
cd .. composer require mediawiki/semantic-media-wiki "~2.5" --update-no-dev composer require mediawiki/semantic-result-formats "~2.5" --update-no-dev
Installationsprozedur laufen lassen
Öffne mydomain.tld
und folge der Anleitung. Wähle Tweeki als Standard-Skin, aktiviere die ParserFunctions-, Page Forms- und Semantic Organization-Extensions. Es wird empfohlen, semorg nur in privaten Wikis einzusetzen (nur registrierte Benutzer*innen können das Wiki lesen und bearbeiten).
füge folgendes in LocalSettings.php
hinzu:
# Use Tweeki as default skin $wgDefaultSkin = 'tweeki'; # Show Tweeki's advanced features by default $wgDefaultUserOptions['tweeki-advanced'] = 1; # Use Bootstrap Tooltips $wgTweekiSkinUseTooltips = true; # Enable String Functions $wgPFEnableStringFunctions = true; # Enable Semantic MediaWiki enableSemantics('YOURDOMAIN.TLD'); $smwgEnabledEditPageHelp = false; $smwgLinksInValues = true; $smwgPageSpecialProperties[] = '_CDAT'; # Settings for Page Forms $wgPageFormsAutocompleteOnAllChars = true; # Allow display titles for automatically created page names $wgRestrictDisplayTitle = false; # Use full screen width when no sidebar is shown $wgTweekiSkinGridNone = [ "mainoffset" => 0, "mainwidth" => 12 ];
php maintenance/install.php --dbname=DBNAME --dbuser=DBUSER --dbpass=DBPASS --scriptpath=/w --lang=en --pass=USERPASS "WIKINAME" "USERNAME" php maintenance/update.php --skip-external-dependencies
ändere die folgenden Zeilen in LocalSettings.php
:
$wgLanguageCode
zu deiner Sprache$wgDefaultSkin
zu 'tweeki'
füge das folgende zu LocalSettings.php
hinzu:
# Loading extensions wfLoadExtension('ParserFunctions'); wfLoadExtension('PageForms'); wfLoadExtension('SemanticOrganization'); # Make Wiki private $wgGroupPermissions['*']['createaccount'] = false; $wgGroupPermissions['*']['read'] = false; $wgGroupPermissions['*']['edit'] = false; # Use Tweeki as default skin $wgDefaultSkin = 'tweeki'; # Show Tweeki's advanced features by default $wgDefaultUserOptions['tweeki-advanced'] = 1; # Use Bootstrap Tooltips $wgTweekiSkinUseTooltips = true; # Enable String Functions $wgPFEnableStringFunctions = true; # Enable Semantic MediaWiki enableSemantics('YOURDOMAIN.TLD'); $smwgEnabledEditPageHelp = false; $smwgLinksInValues = true; $smwgPageSpecialProperties[] = '_CDAT'; # Settings for Page Forms $wgPageFormsAutocompleteOnAllChars = true; # Allow display titles for automatically created page names $wgRestrictDisplayTitle = false; # Use full screen width when no sidebar is shown $wgTweekiSkinGridNone = [ "mainoffset" => 0, "mainwidth" => 12 ];
Importiere die Semorg-Vorlagen
Importiere die Standard-Vorlagen, -Formulare und -Kategorien:
php maintenance/importDump.php < extensions/SemanticOrganization/import/semorg_pages.xml
Aufräumen nach dem Import:
php maintenance/rebuildrecentchanges.php php maintenance/runJobs.php