Difference between revisions of "Convert a dokuwiki to mediawiki"
From Linuxintro
imported>ThorstenStaerk (comments disabled) |
imported>ThorstenStaerk |
||
Line 3: | Line 3: | ||
* install mediawiki. In this example we assume you install to /srv/www/htdocs. | * install mediawiki. In this example we assume you install to /srv/www/htdocs. | ||
* convert the syntax of every dokuwiki page to Mediawiki's syntax. [http://www.staerk.de/thorsten/mediasyntax MediaSyntax] has a converter for this. Also, this howto has been tested with version 1.16. | * convert the syntax of every dokuwiki page to Mediawiki's syntax. [http://www.staerk.de/thorsten/mediasyntax MediaSyntax] has a converter for this. Also, this howto has been tested with version 1.16. | ||
− | |||
* 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: | + | * import all text files from dokuwiki, e.g.: |
− | for i in * | + | for i in /srv/www/htdocs/dokuwiki/data/pages/*; do php importTextFile.php $i; done |
= See also = | = See also = |
Revision as of 14:18, 16 September 2012
This describes how to convert a dokuwiki installation to a mediawiki installation. All history, users and access control lists will not be taken over:
- install mediawiki. In this example we assume you install to /srv/www/htdocs.
- convert the syntax of every dokuwiki page to Mediawiki's syntax. MediaSyntax has a converter for this. Also, this howto has been tested with version 1.16.
- cd to the maintenance folder of your mediawiki, e.g.
cd /srv/www/htdocs/maintenance
- import all text files from dokuwiki, e.g.:
for i in /srv/www/htdocs/dokuwiki/data/pages/*; do php importTextFile.php $i; done