- PHP 7.0 or later
- MediaWiki 1.31 or later
- Composer
Further required software packages will be installed automatically. It is not necessary to install any dependencies. Composer will take care of that.
If unsure try the detailed installation instructions for Windows or Linux.
Here is the short version:
-
On a command line go to your MediaWiki installation directory
-
Open the
composer.local.json
file in an editor and add the Chameleon skin to therequire
section:"require": { "mediawiki/chameleon-skin": "~2.0" }
Remark: If you do not have a
composer.local.json
file, but acomposer.local.json-sample
, rename the-sample
file and add the"require"
section. -
With Composer installed, run
composer update "mediawiki/chameleon-skin"
-
Open
LocalSettings.php
in an editor, and add the following line:wfLoadSkin( 'chameleon' );
To set Chameleon as the default skin, find
$wgDefaultSkin
and amend it:$wgDefaultSkin='chameleon';
-
Done: Navigate to Special:Version on your wiki to verify that the skin is successfully installed.
Remark: It is NOT necessary to install or load any extensions this skin depends on.
If you run into problems, try the troubleshooting.
From your MediaWiki installation directory run composer update "mediawiki/chameleon-skin"
Before de-installation make sure you secure (move, backup) any custom files you might want to retain.
Remove the Chameleon skin from the composer.local.json
file. Then run
composer update "mediawiki/chameleon-skin"
from the MediaWiki installation
directory.