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

set date and time on Debian / Ubuntu

install

aptitude install ntpdate

update

ntpdate ptbtime1.ptb.de

Server:
http://www.ptb.de/cms/fachabteilungen/abtq/fb-q4/ag-q42/zeitsynchronisation-von-rechnern-mit-hilfe-des-network-time-protocol-ntp.html
ptbtime1.ptb.de
ptbtime2.ptb.de
ptbtime3.ptb.de
http://www.pool.ntp.org/zone/de
0.de.pool.ntp.org
1.de.pool.ntp.org
2.de.pool.ntp.org
3.de.pool.ntp.org

update hardware clock

hwclock --systohc