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:
wget -cO - https://getcomposer.org/composer-1.phar > composer.phar 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:"require": { "mediawiki/chameleon-skin": "~5.0" },
Remark: 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": "~5.0" }, "extra": { "merge-plugin": { "include": [ "extensions/example/composer.json" ] } } } -
To actually install Chameleon run the command
COMPOSER=composer.local.json composer require --no-update mediawiki/chameleon-skin:~3.0 composer update mediawiki/chameleon-skin --no-dev -o```
-
If there were no errors, close the command line window.
-
Open
LocalSettings.phpin an editor (e.g. Kate). IncludewfLoadSkin( 'chameleon' );
as the last line.
To set Chameleon as the default skin, find
$wgDefaultSkinand amend it:$wgDefaultSkin='chameleon';
Save the file and close the editor.
-
Done: Open your wiki in a browser and navigate to the Special:Version page to verify that the skin is successfully installed. (If you have set Chameleon as default skin it should also be obvious that the skin has changed.)
-
If not, force reload the page to refresh your browser cache. (On Firefox or Chrome press Ctrl+F5)