Offline Wikipedia on Debian 7 Wheezy

install

aptitude install apache2 phpmyadmin mysql-server
cd /var/www/
wget -c http://releases.wikimedia.org/mediawiki/1.22/mediawiki-1.22.6.tar.gz

download wikipedia dump

wget -c http://dumps.wikimedia.org/dewiki/20140511/dewiki-20140511-pages-articles.xml.bz2

unpack to /var/www/
tar xvf mediawiki-1.20.6.tar.gz
bzip2 -kd dewiki-20130422-pages-articles.xml.bz2

browse to the local mediawiki and configure it

import Data

cd /var/www/mediawiki-1.20.6/maintenance/
php importDump.php < ../../dewiki-20060803-pages-articles.xml

else

php importDump.php --conf ../LocalSettings.php /path_to/dumpfile.xml.gz wikidb

MediaWiki-Installation

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.