Offline Wikipedia on Debian 7 Wheezy


aptitude install apache2 phpmyadmin mysql-server
cd /var/www/
wget -c

download wikipedia dump

wget -c

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


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


Leave a Reply

Your email address will not be published.

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