Install the Semantic Bundle extension

Semantic Bundle (abbreviated as SB) is a pre-packaged bundle of extensions for use with wikis that are based around the Semantic MediaWiki extension. It is a suitable alternative if you cannot run Composer to install or upgrade SMW (1.9+) and a number of other extensions that require Composer, such as Maps (3.0+). Do not run Composer if you want to install Semantic Bundle.

Follow these steps:

  • Download the ZIP or TGZ archive and unzip it to /opt/bitnami/apps/mediawiki/htdocs/extensions/. For example, assuming you downloaded the archive in /tmp:

    $ cd /opt/bitnami/apps/mediawiki/htdocs/extensions/
    $ unzip /tmp/
  • Change to the extension directory and create the configuration file:

    $ cd /opt/bitnami/apps/mediawiki/htdocs/extensions/SemanticBundle
    $ cp SemanticBundleSettings.sample.php SemanticBundleSettings.php
  • Include the SemanticBundleSettings.php and SemanticBundle.php files in the /opt/bitnami/apps/mediawiki/htdocs/LocalSettings.php file:

    require_once( "$IP/extensions/SemanticBundle/SemanticBundleSettings.php" );
    require_once( "$IP/extensions/SemanticBundle/SemanticBundle.php" );
  • Log in to MediaWiki as an administrator.

  • Navigate to the page at http://DOMAIN/mediawiki/Special:SMWAdmin and click the “Initialize or upgrade tables” button.

  • After successful initialization, edit the /opt/bitnami/apps/mediawiki/htdocs/extensions/SemanticBundle/SemanticBundleSettings.php file and uncomment the extensions you would like to use.

NOTE: It’s strongly recommended to initialize Semantic MediaWiki before you include (uncomment) any of the other SemanticBundle extensions, to avoid potential errors from extensions that require Semantic MediaWiki .

Install the Semantic MediaWiki extension with Composer

You can install Semantic MediaWiki using Composer. To do so, please run the following commands:

$ cd  /opt/bitnami/apps/mediawiki/htdocs
$ php /opt/bitnami/php/bin/composer.phar update
$ php /opt/bitnami/php/bin/composer.phar require mediawiki/semantic-media-wiki "~2.0"
$ php maintenance/update.php

If the last command (update.php) wasn’t successful, please try updating from the browser following these steps.

Finally, enable semantics for your domain, adding this line at the end of your /opt/bitnami/apps/mediawiki/htdocs/LocalSettings.php. You need to use your own MediaWiki domain instead of

enableSemantics( '' );

If you get a warning like this:

Warning: This development build of composer is over 30 days old. It is recommended to update it by running "/opt/bitnami/php/bin/composer.phar self-update" to get the latest version.

Execute the suggested command and try the steps again. Refer to this page for more information.

Last modification April 8, 2020