Script to install multiple mediawiki instances
March 13th, 2008
Once the number of installations becomes greater than one, I have to face two problems:
- repeat the installation process
- keep each installation up-to-date
As an adminstrator I try to avoid this situation whereever possible. Recently my degree of suffering under mediawiki installations was too high and I wrote a little script, which helps me a bit. For one it creates a new installation with sym-linking to the root installation. The root installation is managed by a package management system and thus is kept up-to-date. Second of all, the installation is partly automized, so no more need for manual linking, changing ownership and moving of files.
Sponsored Links
If you are interested, more details are given by the script itself:
-
Usage: create-mediawiki-copy.sh OPTIONS [TARGET-DIRECTORY]
-
-
Hi! I will create a new, sym-linked wiki instance, linked to the
-
root installation. Thus only the root installation must be updated.
-
-
The entire setup procedure is done in 3 steps, whereas each step can
-
be done individually.
-
1. create local copy in [TARGET-DIRECTORY]
-
2. configure Wiki and database through the browser (not done by this script!)
-
3. cleanup installation (i.e. copy config to correct location)
-
Step 1 and 3 are performed by default.
-
-
Options
-
-i install new wiki
-
-c cleanup installation after configuration
-
-b do both, install and cleanup; wait in between for user input
-
-u [USER] user new installation belongs to
-
-g [GROUP] group new installation belongs to
-
-
During this process I need to change the ownership of some files, so you
-
will need to call me with root permission (or have the required right youself).
-
-
The location of the root installation and directories which should be copied
-
and not linked, are configured in this very script. You will have to edit it
-
to change these values.
If you are interested, you can download the script here:
create-mediawiki-copy.sh.tar.gz
My work was inspired mainly by these two pages







Leave a Reply