Help:Upgrade/Upgrade from SMW 1.9 or later and MW 1.19.0 to 1.21.x

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

Step 2 - Install the utility extension
Install the utility extension called "Extension Installer" as described on it's homepage.

Step 3 - Update setup file
Change to the extension's directory at  in your server's shell and modify the "require" section of the "composer.json" file to look like thisCiteRef::install:software:

Step 4 - 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 5 - 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 6 - 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.