Full Installation Instructions: Difference between revisions

From SemanticOrganization
Jump to: navigation, search
No edit summary
Line 23: Line 23:
  git clone https://gerrit.wikimedia.org/r/p/mediawiki/extensions/PageForms.git
  git clone https://gerrit.wikimedia.org/r/p/mediawiki/extensions/PageForms.git
  git clone https://github.com/thaider/SemanticOrganization
  git clone https://github.com/thaider/SemanticOrganization
=== Run Installation Procedure ===
==== With the Installer ====
Open <code>mydomain.tld/w</code> and follow the instructions, chose Tweeki as a standard skin, activate ParserFunctions, Page Forms, and Semantic Organization extensions.


=== Install Semantic MediaWiki and Semantic Result Formats ===
=== Install Semantic MediaWiki and Semantic Result Formats ===
Line 34: Line 28:
[https://getcomposer.org/ Composer] installieren
[https://getcomposer.org/ Composer] installieren


cd ..
  composer require mediawiki/semantic-media-wiki "~2.5" --update-no-dev
  composer require mediawiki/semantic-media-wiki "~2.5" --update-no-dev
  composer require mediawiki/semantic-result-formats "~2.5" --update-no-dev
  composer require mediawiki/semantic-result-formats "~2.5" --update-no-dev
=== Run Installation Procedure ===
==== With the Installer ====
Open <code>mydomain.tld/w</code> and follow the instructions, chose Tweeki as a standard skin, activate ParserFunctions, Page Forms, and Semantic Organization extensions.


==== CLI installation ====
==== CLI installation ====


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"
  php maintenance/update.php --skip-external-dependencies
  php maintenance/update.php --skip-external-dependencies

Revision as of 06:51, 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

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

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

php maintenance/install.php --dbname DBNAME --dbuser DBUSER --dbpass DBPASS --lang en --pass USERPASS "WIKI NAME" "Admin"
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:

# Show Tweeki's advanced features by default
$wgDefaultUserOptions['tweeki-advanced'] = 1;

# Load Parser Functions extension
wfLoadExtension( 'ParserFunctions' );

# Enable Semantic MediaWiki
enableSemantics('YOURDOMAIN.TLD');
$smwgEnabledEditPageHelp = false;
$smwgLinksInValues = true;

# Load Page Forms and Semantic Organization extensions
wfLoadExtension('PageForms');
$wgPageFormsAutocompleteOnAllChars = true;
wfLoadExtension('SemanticOrganization');

# Disable caching
$wgEnableParserCache = false;
$wgCachePages = false;

# Allow display titles for automatically created page names
$wgRestrictDisplayTitle = false;