Upgrade from SMW 1.9.x or later to SMW 2.1.x (MW 1.22.0 to MW 1.24.x)

From Linux Web Expert
Installation
This page describes the upgrade procedure from SMW 1.9.x or later to SMW 2.1.x (native Composer support).
Image / Video collection
{{#widget:Vimeo|id=127356533|width=220|height=220 }}
Further Information
Installation type: upgrade
Installation method: Composer
MediaWiki version: 1.22.0 to 1.24.x
Table of Contents

This help page describes the upgrade procedure from Semantic MediaWiki 1.9.x to Semantic MediaWiki 2.1.x with native Composer support.

Step 1 - Backup database and wiki

Backup your wiki database and wiki installation.

Step 2 - Update software

Run the composer command12 from the base directory of your wiki3 in your server's shell to upgrade the source code of Semantic MediaWiki and dependencies:

php composer.phar require mediawiki/semantic-media-wiki:~2.1.0 --update-with-dependencies

Step 3 - Update database

Run maintenance script "update.php" (MediaWiki.org) from the base directory of your wiki3 in your server's shell to apply the schema changes to your wiki's database:

php maintenance/update.php

Or alternatively use maintenance script "setupStore.php"No description was provided.:

php extensions/SemanticMediaWiki/maintenance/setupStore.php -v

Step 4 - Rebuild data

Run maintenance script "rebuildData.php"No description was provided. from the base directory of your wiki3 in your server's shell to rebuild the semantic data in wiki's database:

php extensions/SemanticMediaWiki/maintenance/SMW_refreshData.php -v

Done!

Semantic MediaWiki and the database use should now be upgraded properly. The wiki may now be used again.

See also


References

  1. ^  |  In case you installed Composer "globally" on your server, you will have to drop the php and .phar particles from the command.
  2. ^  |  This help page assumes that the "composer.phar" file is located in the base directory of your wiki. If not the path to the "composer.phar" file needs to be adapted to the server's situation.
  3. a b c  This is the directory which contains the "LocalSettings.php" file.