Convert a dokuwiki to mediawiki

From Linuxintro
Revision as of 09:21, 4 February 2012 by imported>ThorstenStaerk

To convert a dokuwiki installation to a mediawiki installation:

Mediawiki

  • install mediawiki
  • create a page hello with the sole content hello world.
  • export the hello page
  • save the export file to export1 and export2
  • edit export1, delete all content starting from hello world including
  • edit export2, delete all content till hello world including
  • for every dokuwiki page in data/pages, do a
cat export1 page export2 > import.xml
  • cd to the maintenance folder of your mediawiki, e.g.
cd /srv/www/htdocs/maintenance
php importTextFile.php import.txt

See also