From wiki.eser.org
[edit] how to archive a mediawiki wiki to an xml text file
- note: this works if and only if you are using the MediaWiki wiki software -- this will not work with any other wiki software package
[edit] create the AdminSettings.php file
- if it does not already exist, create AdminSettings.php under the webserver directory in which your mediawiki wiki lives:
- for example, if your wiki is hosted under /usr/local/apache/htdocs/wiki, populate the file /usr/local/apache/htdocs/wiki/AdminSettings.php as follows:
<?php
$wgDBadminuser = 'root';
$wgDBadminpassword = '';
$wgEnableProfileInfo = false;
?>
- set the appropriate permissions on this file:
chmod 700 /usr/local/apache/htdocs/wiki/AdminSettings.php
[edit] install the php command line interface
apt-get -y install php5-cli
[edit] output an archive of all of your wiki pages to an xml text file
php /usr/local/apache/htdocs/wiki/maintenance/dumpBackup.php --current --report=5 > /tmp/my_wiki_archive.xml
[edit] all done!
- the complete text of your wiki is now archived in xml-format in the file /tmp/my_wiki_archive.xml
[edit] how to use ESER to text-mine your wiki
- follow these steps to use ESER to mine the xml text archive of your wiki that you created above
- note: this works if and only if you are using the MediaWiki wiki software -- this will not work with any other wiki software package
- TODO
- TODO
- TODO