Here is a step by step procedure for Linux, that should work for other unixy operating systems as well:
-
Open a command line window (e.g. using Konsole or XTerm).
-
If necessary install Composer:
curl -sS https://getcomposer.org/installer | php sudo mv composer.phar /usr/local/bin/composer -
Navigate to the root folder of your MediaWiki installation. That's the one with the
LocalSettings.phpfile in it. -
Open the
composer.local.jsonfile in an editor and add the Chameleon skin to therequiresection:requiresection:"require": { "mediawiki/chameleon-skin": "~1.0" },
- Remark 1: If you do not have a
composer.local.jsonfile, but acomposer.local.json-sample, rename the-samplefile and add the"require"section. It should then look like this:
{ "require": { "mediawiki/chameleon-skin": "~1.0" }, "extra": { "merge-plugin": { "include": [ "extensions/example/composer.json" ] } } }-
Remark 2: If you do have neither
composer.local.jsonnorcomposer.local.jsonfile (MediaWiki <1.25), usecomposer.jsoninstead. -
Remark 3: If you do not have a
composer.jsonfile (MediaWiki <1.23.5), copycomposer.json.exampletocomposer.jsonfirst.
- Remark 1: If you do not have a
-
To actually install Chameleon run the command
composer update "mediawiki/chameleon-skin" -
If there were no errors, close the command line window.
-
Open
LocalSettings.phpin an editor (e.g. Kate). Include$wgDefaultSkin='chameleon';as the last line. Save the file and close the editor. -
Open your wiki in a browser. Chameleon should be installed.
-
If not, force reload the page to refresh your browser cache. (On Firefox or Chrome press Ctrl+F5)