Changes
Jump to navigation
Jump to search
Test Web Server Documentation (view source)
Revision as of 14:27, 25 March 2016
, 14:27, 25 March 2016→Installing Semantic Mediawiki (3/23/2016)
== Installing Semantic Mediawiki (3/2325/2016) ==
The [https://www.semantic-mediawiki.org/wiki/Help:Installation/Using_Composer_with_MediaWiki_1.25%2B installation process] looks complicated, but let's be careful. First up, we're going to [https://getcomposer.org/doc/00-intro.md#globally install Composer globally].
$ cd ~/Downloads
and then follow the download instructions [https://getcomposer.org/download/ here] to install Composer to the ~/Downloads directory. Then move the composer.phar executable to a directory in our path:
$ sudo mv ~/Downloads/composer.phar /usr/local/bin/composer
$ composer --version
$ composer --list
Now you can just call "composer" instead of doing "php /path/to/composer/composer.phar"
Proceeding with the install for SMW...
$ cd /var/lib/mediawiki
$ sudo composer require mediawiki/semantic-media-wiki "~2.3" --update-no-dev
Make sure to replace "~2.3" with the appropriate latest release version (ignoring the third number, e.g. if the latest release is 2.3.1, then use "~2.3").
$ php maintenance/update.php
$ sudo vi LocalSettings.php
And add this line to the bottom of LocalSettings.php:
enableSemantics('domain_name.com');
Check to see if the mediawiki site recognizes that the extension has been installed by visiting the Special:Version page.
You can test that the SMW annotations are working by following the instructions on this page: https://www.semantic-mediawiki.org/wiki/Help:Testing
== To-do list ==