Name | Last modified | Size | Description | |
---|---|---|---|---|
Parent Directory | - | |||
mm2mw.pl | 2010-03-17 16:18 | 61K | ||
README.html | 2008-09-23 18:01 | 4.7K | ||
README.cvs | 2008-03-26 22:41 | 638 | ||
This guide is a collection of notes taken during the migration of some W3C wikis from the moinmoin to mediawiki engine when consolidating our wiki services under a single platform. Moinmoin and mediawiki are both excellent wiki platforms: use the one that works for you, and if you wish to migrate from the former to the latter, feel free to use or hack on our migration script, but at your own risks. This guide, just like the software, are provided as is and without warranty.
We will take as example the migration of a moinmoin wiki codenamed "foo" e.g for foo located at http://www.w3.org/2008/foo/wiki/. The following instructions are rather specific to the W3C setup but may be fairly easily adapted to any case.
… e.g /2008/foo/wiki2/. This is necessary because the migration script talks to mediawiki via HTTP. Therefore, the mediawiki engine needs to be online and at its final URI before the migration can be made.
(the following is w3c-wiki-specific, since our moinmoin system uses a farm of wikis)
We have W3C-specific instructions, but others can find a vanilla guide over at mediawiki.org
Make sure that php on the server is given enough memory, and, if you are going to migrate moinmoin attachments/uploads, make sure to enable it in php, and to increase the upload size limit: this will save you trouble later.
max_execution_time = 60 ; Maximum execution time of each script, in seconds max_input_time = 100 ; Maximum amount of time each script may spend parsing request data memory_limit = 32M ; Maximum amount of memory a script may consume (16MB) ;… ; Temporary directory for HTTP uploaded files (will use system default if not ; specified). upload_tmp_dir = /tmp/http ;… ; Maximum allowed size for uploaded files. upload_max_filesize = 6M
For W3C wikis, any access-control in moinmoin needs to be mirrored in the mediawiki config.
Now, create a user on the mediawiki. Use Special:Userrights to make sure that this user has high credentials (or use the Sysop user). Check whether attachments are enabled via the LocalConfig.php
It will be assumed that you have downloaded the script into ~/moinmoin2mediawiki/bin and that the moinmoin data for the wiki is in /u/wiki/foo/data/ Now go to ~/moinmoin2mediawiki, and run:
perl ./bin/mm2mw.pl #type the following # make sure to use the wiki's actual URI for "url" # and use the temporary location of the moinmoin wiki src /u/wiki/foo/data/ dst ./data-out/foo url http://localhost/2008/foo/wiki/index.php mmurl http://localhost/2008/foo/wiki2/ analyse login #(here you'll be prompted for login info for the sysop user) convert upload
... The new mediawiki should be all set. You can now go back and reset the apache2 config appropriately... remove the temporary stuff for the moinmoin instance... and communicate with the users about their "new" wiki