Full Installation Instructions: Difference between revisions
From SemanticOrganization
Line 34: | Line 34: | ||
cd .. | cd .. | ||
php maintenance/install.php --dbname DBNAME --dbuser DBUSER --dbpass DBPASS --lang en --pass USERPASS "WIKI NAME" "Admin" | php maintenance/install.php --dbname DBNAME --dbuser DBUSER --dbpass DBPASS --lang en --pass USERPASS "WIKI NAME" "Admin" | ||
change the following in <code>LocalSettings.php</code>: | |||
* <code>$wgLanguageCode</code> to your language | |||
* <code>$wgDefaultSkin</code> to 'tweeki' | |||
add the following to <code>LocalSettings.php</code>: | |||
$wgDefaultUserOptions['tweeki-advanced'] = 1; | |||
wfLoadExtension( 'ParserFunctions' ); | |||
enableSemantics('YOURDOMAIN.TLD'); | |||
$smwgEnabledEditPageHelp = false; | |||
$smwgLinksInValues = true; | |||
wfLoadExtension('SemanticOrganization'); | |||
wfLoadExtension('PageForms'); | |||
$wgPageFormsAutocompleteOnAllChars = true; | |||
=== Install Semantic MediaWiki and Semantic Result Formats === | === Install Semantic MediaWiki and Semantic Result Formats === |
Revision as of 06:46, 10 August 2018
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/thaider/SemanticOrganization
Run Installation Procedure
With the Installer
Open mydomain.tld/w
and follow the instructions, chose Tweeki as a standard skin, activate ParserFunctions, Page Forms, and Semantic Organization extensions.
CLI installation
cd .. php maintenance/install.php --dbname DBNAME --dbuser DBUSER --dbpass DBPASS --lang en --pass USERPASS "WIKI NAME" "Admin"
change the following in LocalSettings.php
:
$wgLanguageCode
to your language$wgDefaultSkin
to 'tweeki'
add the following to LocalSettings.php
:
$wgDefaultUserOptions['tweeki-advanced'] = 1; wfLoadExtension( 'ParserFunctions' ); enableSemantics('YOURDOMAIN.TLD'); $smwgEnabledEditPageHelp = false; $smwgLinksInValues = true; wfLoadExtension('SemanticOrganization'); wfLoadExtension('PageForms'); $wgPageFormsAutocompleteOnAllChars = true;
Install Semantic MediaWiki and Semantic Result Formats
Composer installieren
composer require mediawiki/semantic-media-wiki "~2.5" --update-no-dev composer require mediawiki/semantic-result-formats "~2.5" --update-no-dev php maintenance/update.php --skip-external-dependencies
Enable SMW by adding this line to LocalSettings.php
enableSemantics( 'yourdomain.tld' );