Help:Upgrade/Upgrade from SMW 1.9 and later to SMW 2.5

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

Step 1 - Backup database and wiki
Backup your wiki database and wiki installation.

Step 2 - Create or update setup file
Change to the base directory of your wikiCiteRef::install:base:dir in your server's shell and create or modify the "composer.local.json" file to look like thisCiteRef::install:software:

Step 3 - 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 4 - 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 5 - 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:

Step 6 - Update configuration
Go to the "Deprecation notices" tab on and update your wiki's "LocalSettings.php" file according to the information provided on that page.

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