Difference between revisions of "Convert a dokuwiki to mediawiki"

From Linuxintro
imported>ThorstenStaerk
imported>ThorstenStaerk
Line 7: Line 7:
 
  cd ''/srv/www/htdocs/maintenance''
 
  cd ''/srv/www/htdocs/maintenance''
 
* import all text files:
 
* import all text files:
  php importTextFile.php import.txt
+
  for i in *.imp; do php importTextFile.php $i; done
  
 
= See also =
 
= See also =
 
* [[How to make dokuwiki a good mediawiki]]
 
* [[How to make dokuwiki a good mediawiki]]

Revision as of 09:34, 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:
for i in *.imp; do php importTextFile.php $i; done

See also