Difference between revisions of "Convert a dokuwiki to mediawiki"

From Linuxintro
imported>ThorstenStaerk
imported>ThorstenStaerk
Line 10: Line 10:
 
* for every dokuwiki page in data/pages, do a  
 
* for every dokuwiki page in data/pages, do a  
 
  cat export1 ''page'' export2 > import.xml
 
  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 =
 
= See also =
 
* [[How to make dokuwiki a good mediawiki]]
 
* [[How to make dokuwiki a good mediawiki]]

Revision as of 09:21, 4 February 2012

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