To setup your own instance of our mediawiki:
- clone this repo
git clone https://github.com/dtekcth/mediawiki-instance.git
- Initialize submodules by running
git submodule update --init --recursiveThis should give you something like
Submodule 'extensions/UserMerge' (https://github.com/wikimedia/mediawiki-extensions-UserMerge.git) registered for path 'extensions/UserMerge'
Submodule 'extensions/VisualEditor' (https://github.com/wikimedia/mediawiki-extensions-VisualEditor.git) registered for path 'extensions/VisualEditor'
Cloning into '/[folder]/mediawiki-instance/extensions/UserMerge'...
Cloning into '/[folder]/mediawiki-instance/extensions/VisualEditor'...
Submodule path 'extensions/UserMerge': checked out 'f6b8e05583e2c7a07f918381f9772b456259b625'
Submodule path 'extensions/VisualEditor': checked out '6854ea0e7a0a8248c2c27498c9fd0cab5462c9c4'
Submodule 'lib/ve' (https://gerrit.wikimedia.org/r/p/VisualEditor/VisualEditor.git) registered for path 'extensions/VisualEditor/lib/ve'
Cloning into '/[folder]/mediawiki-instance/extensions/VisualEditor/lib/ve'...
Submodule path 'extensions/VisualEditor/lib/ve': checked out 'a64ba1cc623865eaaeafad0c74926eab59b79ac5'-
The
sensitiveSettings.php.templateneeds to be moved tosensitiveSettings.phpand the variables configured properly.- The
$wgSMTPis optional and is needed if the wiki should be able to send email. Useful for verifying emailaddress. - The database settings need to be configured according to the settings you
enter during the web-configuration phase later on
Note: if these settings are changed from the default in the template you also need to change them
in
docker-compose.yml - The
$wgSecretKeyneeds to be a 64 characters long random string. Mediawiki uses this for cryptography so make sure this isn't leaked - The
$wgUpgradeKeyis used during the web-configuration phase later on
- The
-
Start the containers with
docker-compose up -d -
time for web-configuration, go to
localhost:8081/mw-configto configure the wiki and follow the instructions -
This is as far as this guide will take you. Becuase of how the LocalSettings are configured you need to change the domain from
wiki.dtek.sein order to make it work on another domain. At the moment it redirects you to the actually instance setup there. If you need to have more information about this contact @hallavad