Full Installation Instructions

From SemanticOrganization
Jump to: navigation, search

<translate>

Full Installation

Create database

</translate>

mysql> create database sandbox;
mysql> grant all on sandbox.* to sandbox@localhost identified by '***';

<translate>

Download MediaWiki

</translate>

wget https://releases.wikimedia.org/mediawiki/1.31/mediawiki-1.31.12.tar.gz
tar xvzf mediawiki-1.31.12.tar.gz 
mv mediawiki-1.31.12 w
rm mediawiki-1.31.12.tar.gz

<translate>

Download Tweeki Skin

</translate>

cd w/skins/
git clone https://github.com/thaider/Tweeki

<translate>

Download extensions

</translate>

cd ../extensions/
git clone https://gerrit.wikimedia.org/r/mediawiki/extensions/PageForms.git
cd PageForms
git checkout 397dfbb
cd ..
git clone https://github.com/thaider/SemanticOrganization

<translate>

Install Semantic MediaWiki and Semantic Result Formats

If you don't already have it, install Composer first </translate>

cd ..
composer require mediawiki/semantic-media-wiki "~2.5" --update-no-dev
composer require mediawiki/semantic-result-formats "~2.5" --update-no-dev

<translate>

Run Installation Procedure

</translate>

<translate> 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: </translate>

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

<translate> add the following to LocalSettings.php: </translate>

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

<translate>

Import Semorg Pages

Import the default templates, forms and categories: </translate>

php maintenance/importDump.php < extensions/SemanticOrganization/import/semorg_pages.xml

<translate> Cleanup after import: </translate>

php maintenance/rebuildrecentchanges.php
php maintenance/runJobs.php