Help:Upgrade/Upgrade from SMW 1.9 to SMW 2.1

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 commandCiteRef::install:composerCiteRef::install:composer:base from the base directory of your wikiCiteRef::install:base:dir in your server's shell to upgrade the source code of Semantic MediaWiki and dependencies:

Step 3 - Update database
Run from the base directory of your wikiCiteRef::install:base:dir in your server's shell to apply the schema changes to your wiki's database: Or alternatively use :

Step 4 - Rebuild data
Run from the base directory of your wikiCiteRef::install:base:dir in your server's shell to rebuild the semantic data in wiki's database:

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