Difference between revisions of "Convert a dokuwiki to mediawiki"

From Linuxintro
imported>ThorstenStaerk
imported>ThorstenStaerk
Line 2: Line 2:
  
 
= Mediawiki =
 
= Mediawiki =
* install mediawiki
+
* install mediawiki. In this example we assume you install to /srv/www/htdocs.
* create a page hello with the sole content ''hello world''.
+
* copy every file in dokuwiki's data/pages folder to mediawiki's maintenance folder
* 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 to the maintenance folder of your mediawiki, e.g.  
 
  cd ''/srv/www/htdocs/maintenance''
 
  cd ''/srv/www/htdocs/maintenance''
 +
* import all text files:
 
  php importTextFile.php import.txt
 
  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:26, 4 February 2012

To convert a dokuwiki installation to a mediawiki installation:

Mediawiki

  • install mediawiki. In this example we assume you install to /srv/www/htdocs.
  • copy every file in dokuwiki's data/pages folder to mediawiki's maintenance folder
  • cd to the maintenance folder of your mediawiki, e.g.
cd /srv/www/htdocs/maintenance
  • import all text files:
php importTextFile.php import.txt

See also