Convert content in a MediaWiki installation to DokuWiki

0.3.6 2013-09-12 03:13 UTC


Build Status

Import MediaWiki into DokuWiki. Will also translate from MediaWiki syntax to DokuWiki as best as it can (not all modifiers from MediaWiki are available in DokuWiki). It processes pages and images/files.

Tested against:

  • MediaWiki 1.17.1 and DokuWiki 2012-01-25 "Angua".
  • MediaWiki 1.16.1 and DokuWiki 2011-05-25a "Rincewind"


  • Physical access to the MediaWiki and DokuWiki installation on server.
  • Read access to MediaWiki's LocalSettings.php script.
  • PHP 5.1.0 or greater.
  • PDO extension with MySQL/PostgreSQL binding -- whatever DB type MediaWiki is using.


Can be run either through a web server or from the command line, if you have SSH access to the server. For large MediaWiki installations the command line is preferred as the web server may terminate the process due to maximum execution time limits, if safe mode is enabled and cannot be disabled.

Copy the src directory either in a temporary location if you will be using the command line or in a web accessible location otherwise.

Copy settings.php.dist to settings.php and edit the contents to provide the path to the source MediaWiki and target DokuWiki installations. Even if running from a web server, the paths cannot be URLs.

Whether you will be using the command line or a web server, the target file to be called is the same. If using the command line:

$ php index.php

If using a web server: