Full Installation Instructions: Difference between revisions
From SemanticOrganization
No edit summary |
(Marked this version for translation) |
||
Line 1: | Line 1: | ||
<translate> | <translate> | ||
== Full Installation == | == Full Installation == <!--T:1--> | ||
<!--T:2--> | |||
<!--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.--> | ||
=== Create database === | === Create database === <!--T:3--> | ||
</translate> | </translate> | ||
Line 11: | Line 12: | ||
<translate> | <translate> | ||
=== Download MediaWiki === | === Download MediaWiki === <!--T:4--> | ||
</translate> | </translate> | ||
Line 20: | Line 21: | ||
<translate> | <translate> | ||
=== Download Tweeki Skin === | === Download Tweeki Skin === <!--T:5--> | ||
</translate> | </translate> | ||
Line 27: | Line 28: | ||
<translate> | <translate> | ||
=== Download extensions === | === Download extensions === <!--T:6--> | ||
</translate> | </translate> | ||
Line 35: | Line 36: | ||
<translate> | <translate> | ||
=== Install Semantic MediaWiki and Semantic Result Formats === | === Install Semantic MediaWiki and Semantic Result Formats === <!--T:7--> | ||
<!--T:8--> | |||
[https://getcomposer.org/ Composer] installieren | [https://getcomposer.org/ Composer] installieren | ||
</translate> | </translate> | ||
Line 45: | Line 47: | ||
<translate> | <translate> | ||
=== Run Installation Procedure === | === Run Installation Procedure === <!--T:9--> | ||
==== - Using the Installer ==== | ==== - Using the Installer ==== <!--T:10--> | ||
<!--T:11--> | |||
Open <code>mydomain.tld/w</code> and follow the instructions, chose Tweeki as a standard skin, activate ParserFunctions, Page Forms, and Semantic Organization extensions. It is recommended to use semorg only with private wikis (only registered users are allowed to read and edit the wiki). | Open <code>mydomain.tld/w</code> and follow the instructions, chose Tweeki as a standard skin, activate ParserFunctions, Page Forms, and Semantic Organization extensions. It is recommended to use semorg only with private wikis (only registered users are allowed to read and edit the wiki). | ||
<!--T:12--> | |||
add the following to <code>LocalSettings.php</code>: | add the following to <code>LocalSettings.php</code>: | ||
</translate> | </translate> | ||
Line 56: | Line 60: | ||
<translate> | <translate> | ||
==== - CLI installation ==== | ==== - CLI installation ==== <!--T:13--> | ||
</translate> | </translate> | ||
Line 63: | Line 67: | ||
<translate> | <translate> | ||
<!--T:14--> | |||
change the following in <code>LocalSettings.php</code>: | change the following in <code>LocalSettings.php</code>: | ||
* <code>$wgLanguageCode</code> to your language | * <code>$wgLanguageCode</code> to your language | ||
* <code>$wgDefaultSkin</code> to 'tweeki' | * <code>$wgDefaultSkin</code> to 'tweeki' | ||
<!--T:15--> | |||
add the following to <code>LocalSettings.php</code>: | add the following to <code>LocalSettings.php</code>: | ||
</translate> | </translate> | ||
Line 81: | Line 87: | ||
{{LocalSettings.php-Tweaks}} | {{LocalSettings.php-Tweaks}} | ||
<translate> | <translate> | ||
=== Import Semorg Pages === | === Import Semorg Pages === <!--T:16--> | ||
<!--T:17--> | |||
Import the default templates, forms and categories: | Import the default templates, forms and categories: | ||
</translate> | </translate> | ||
Line 89: | Line 96: | ||
<translate> | <translate> | ||
<!--T:18--> | |||
Cleanup after import: | Cleanup after import: | ||
</translate> | </translate> |
Revision as of 13:10, 1 July 2019
Full Installation
Create database
mysql> create database sandbox; mysql> grant all on sandbox.* to sandbox@localhost identified by '***';
Download MediaWiki
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
Download Tweeki Skin
cd w/skins/ git clone https://github.com/thaider/Tweeki
Download extensions
cd ../extensions/ git clone https://gerrit.wikimedia.org/r/p/mediawiki/extensions/PageForms.git git clone https://github.com/oteloegen/SemanticOrganization
Install Semantic MediaWiki and Semantic Result Formats
Composer installieren
cd .. composer require mediawiki/semantic-media-wiki "~2.5" --update-no-dev composer require mediawiki/semantic-result-formats "~2.5" --update-no-dev
Run Installation Procedure
- Using the Installer
Open mydomain.tld/w
and follow the instructions, chose Tweeki as a standard skin, activate ParserFunctions, Page Forms, and Semantic Organization extensions. It is recommended to use semorg only with private wikis (only registered users are allowed to read and edit the wiki).
add the following to LocalSettings.php
:
# 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 ];
- CLI installation
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
change the following in LocalSettings.php
:
$wgLanguageCode
to your language$wgDefaultSkin
to 'tweeki'
add the following to LocalSettings.php
:
# 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 ];
Import Semorg Pages
Import the default templates, forms and categories:
php maintenance/importDump.php < extensions/SemanticOrganization/import/semorg_pages.xml
Cleanup after import:
php maintenance/rebuildrecentchanges.php php maintenance/runJobs.php