Difference between revisions of "Full Installation Instructions/de"

From SemanticOrganization
Jump to: navigation, search
(Updating to match new version of source page)
Line 1: Line 1:
 
== Vollständige Installation ==
 
== Vollständige Installation ==
  
 +
<div lang="en" dir="ltr" class="mw-content-ltr">
 
<!--There is also a [https://github.com/soudis/semorg-docker/ Docker Image] available for the full installation.-->
 
<!--There is also a [https://github.com/soudis/semorg-docker/ Docker Image] available for the full installation.-->
 +
</div>
  
 
=== Datenbank erstellen ===
 
=== Datenbank erstellen ===
  
  mysql> create database sandbox;
+
  mysql> create database DBNAME;
  mysql> grant all on sandbox.* to sandbox@localhost identified by '***';
+
mysql> create user DBUSER@localhost identified by 'DBPASS';
 +
  mysql> grant all on DBNAME.* to DBUSER@localhost;
 +
 
 +
<div lang="en" dir="ltr" class="mw-content-ltr">
 +
Replace <code>DBNAME</code> with the name of your database, <code>DBUSER</code> with the name of the database user and <code>DBPASS</code> with the password you've chosen.
 +
</div>
  
 
=== MediaWiki herunterladen ===
 
=== MediaWiki herunterladen ===
  
  wget https://releases.wikimedia.org/mediawiki/1.31/mediawiki-1.31.12.tar.gz
+
  wget https://releases.wikimedia.org/mediawiki/1.35/mediawiki-1.35.6.tar.gz
  tar xvzf mediawiki-1.31.12.tar.gz  
+
  tar xvzf mediawiki-1.35.6.tar.gz  
  mv mediawiki-1.31.12 w
+
  mv mediawiki-1.35.6 w
  rm mediawiki-1.31.12.tar.gz
+
  rm mediawiki-1.35.6.tar.gz
  
  
Line 26: Line 33:
 
  git clone https://gerrit.wikimedia.org/r/mediawiki/extensions/PageForms.git
 
  git clone https://gerrit.wikimedia.org/r/mediawiki/extensions/PageForms.git
 
  cd PageForms
 
  cd PageForms
  git checkout 397dfbb
+
  git checkout 731d226
 
  cd ..
 
  cd ..
 
  git clone https://github.com/thaider/SemanticOrganization
 
  git clone https://github.com/thaider/SemanticOrganization
Line 33: Line 40:
 
=== 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>
 +
 +
<div lang="en" dir="ltr" class="mw-content-ltr">
 +
Create a <code>composer.local.json</code> file and require the extensions:
 +
</div>
  
 
  cd ..
 
  cd ..
  composer require mediawiki/semantic-media-wiki "~2.5" --update-no-dev
+
  cp composer.local.json-sample composer.local.json
composer require mediawiki/semantic-result-formats "~2.5" --update-no-dev
+
COMPOSER=composer.local.json composer require --no-update mediawiki/semantic-media-wiki:~3.2
 
+
COMPOSER=composer.local.json composer require --no-update mediawiki/semantic-result-formats:~3.2
 +
composer update --no-dev
  
 
=== Installationsprozedur laufen lassen ===
 
=== Installationsprozedur laufen lassen ===
Line 48: Line 62:
 
<div class="tab-content">
 
<div class="tab-content">
 
<div id="installer" class="tab-pane fade active show" role="tabpanel" aria-labelledby="installer-label">
 
<div id="installer" class="tab-pane fade active show" role="tabpanel" aria-labelledby="installer-label">
 +
<div class="mw-translate-fuzzy">
 
Öffne <code>mydomain.tld</code> 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).
 
Öffne <code>mydomain.tld</code> 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).
 +
</div>
  
 
füge folgendes in <code>LocalSettings.php</code> hinzu:
 
füge folgendes in <code>LocalSettings.php</code> hinzu:
Line 57: Line 73:
 
  php maintenance/install.php --dbname=DBNAME --dbuser=DBUSER --dbpass=DBPASS --scriptpath=/w --lang=en --pass=USERPASS "WIKINAME" "USERNAME"
 
  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
 
  php maintenance/update.php --skip-external-dependencies
 +
 +
<div lang="en" dir="ltr" class="mw-content-ltr">
 +
Replace <code>DBNAME</code>, <code>DBUSER</code> and <code>DBPASS</code> with the database credentials. <code>WIKINAME</code> is the name you chose for your wiki. <code>USERNAME</code>/<code>USERPASS</code> are for the admin user that will be automatically created so you can log in to the wiki.
 +
</div>
  
 
füge das folgende zu <code>LocalSettings.php</code> hinzu:
 
füge das folgende zu <code>LocalSettings.php</code> hinzu:
Line 63: Line 83:
 
  wfLoadExtension('PageForms');
 
  wfLoadExtension('PageForms');
 
  wfLoadExtension('SemanticOrganization');
 
  wfLoadExtension('SemanticOrganization');
 +
wfLoadExtension( 'SemanticResultFormats' );
 
   
 
   
 
  # Make Wiki private
 
  # Make Wiki private
Line 83: Line 104:
 
  php maintenance/rebuildrecentchanges.php
 
  php maintenance/rebuildrecentchanges.php
 
  php maintenance/runJobs.php
 
  php maintenance/runJobs.php
 +
 +
<div lang="en" dir="ltr" class="mw-content-ltr">
 +
=== Apache Setup ===
 +
</div>
 +
 +
<div lang="en" dir="ltr" class="mw-content-ltr">
 +
In order for Visual Editor to work in forms you might have to add this line to your vhost's definition:
 +
</div>
 +
 +
AllowEncodedSlashes NoDecode

Revision as of 13:12, 24 June 2022

Vollständige Installation

Datenbank erstellen

mysql> create database DBNAME;
mysql> create user DBUSER@localhost identified by 'DBPASS';
mysql> grant all on DBNAME.* to DBUSER@localhost;

Replace DBNAME with the name of your database, DBUSER with the name of the database user and DBPASS with the password you've chosen.

MediaWiki herunterladen

wget https://releases.wikimedia.org/mediawiki/1.35/mediawiki-1.35.6.tar.gz
tar xvzf mediawiki-1.35.6.tar.gz 
mv mediawiki-1.35.6 w
rm mediawiki-1.35.6.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/mediawiki/extensions/PageForms.git
cd PageForms
git checkout 731d226
cd ..
git clone https://github.com/thaider/SemanticOrganization


Semantic MediaWiki und Semantic Result Formats installieren

Composer installieren, falls nicht bereits vorhanden

Create a composer.local.json file and require the extensions:

cd ..
cp composer.local.json-sample composer.local.json
COMPOSER=composer.local.json composer require --no-update mediawiki/semantic-media-wiki:~3.2
COMPOSER=composer.local.json composer require --no-update mediawiki/semantic-result-formats:~3.2
composer 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;

# Encode section IDs with modern html5 style so Scrollspy works with special chars
# becomes obsolete with MW 1.37
$wgFragmentMode = [ 'html5', 'legacy' ];

# 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

Replace DBNAME, DBUSER and DBPASS with the database credentials. WIKINAME is the name you chose for your wiki. USERNAME/USERPASS are for the admin user that will be automatically created so you can log in to the wiki.

füge das folgende zu LocalSettings.php hinzu:

# Loading extensions
wfLoadExtension('ParserFunctions');
wfLoadExtension('PageForms');
wfLoadExtension('SemanticOrganization');
wfLoadExtension( 'SemanticResultFormats' );

# 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;

# Encode section IDs with modern html5 style so Scrollspy works with special chars
# becomes obsolete with MW 1.37
$wgFragmentMode = [ 'html5', 'legacy' ];

# 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

Apache Setup

In order for Visual Editor to work in forms you might have to add this line to your vhost's definition:

AllowEncodedSlashes NoDecode