Help:Installation/Using Composer with MediaWiki 1.19 - 1.21

MediaWiki 1.19.x, 1.20.x and 1.21.x are no longer supported branches. Users are advised to upgrade to a supported branch of MediaWiki.

Install
Use these instructions for a new SMW installation (MediaWiki 1.19.x to 1.21.x, non-native Composer support).


 * 1) Install the "Extension Installer" extension - see installing "Extension Installer" for how to do this.
 * 2) Check your MediaWiki version on special page "Special:Version" to ensure compatibility. See also Update to the appropriate version of MediaWiki.
 * 3) Add the following line to the "require" section of the "composer.json" file in the   directory.
 * 4) Run the installation script from the   directory:
 * 5) Run the setup script from the base directory of your MediaWiki installation:
 * 6) Add a call to   to the end of the "LocalSettings.php" file.   takes in the domain name of the wiki; a wiki located at "example.org", for instance, should have the following call:
 * The calls  must neither be added for Semantic MediaWiki nor for Validator since Composer loads the extensions automatically.
 * 1) Add optional settings apart from one exception to the "LocalSettings.php" file as desired below the   call.
 * 2) In case you want to use additional semantic extensions which are not installed via Composer like e.g. Semantic Drilldown you still have to invoke them by adding the respective line   to you "LocalSettings.php" file below the   call.
 * 3) See the page "Special:Version" on your wiki to verify that the extension is successfully installed.
 * 4) Test your installation as described on the help page about testing SMW.
 * 5) Done!
 * 1) In case you want to use additional semantic extensions which are not installed via Composer like e.g. Semantic Drilldown you still have to invoke them by adding the respective line   to you "LocalSettings.php" file below the   call.
 * 2) See the page "Special:Version" on your wiki to verify that the extension is successfully installed.
 * 3) Test your installation as described on the help page about testing SMW.
 * 4) Done!

Update
Use these instructions to update an existing SMW installation (MediaWiki 1.19.x to 1.21.x, non-native Composer support).


 * 1) Backup your database and installation.
 * 2) Run the update script from the   directory:
 * 3) See the page "Special:Version" on your wiki to verify that the extension was successfully updated.
 * 4) Run the setup script from the base directory of your MediaWiki installation:
 * 5) Run the refresh database script from the base directory :
 * 6) Done!
 * 1) Run the refresh database script from the base directory :
 * 2) Done!
 * 1) Done!