Mirro the Wikipedia at your local
sudo apt-get update sudo apt-get install apache2 php5 libapache2-mod-php5 mysql-server mysql-client php5-mysql phpmyadmin mkdir ~/wiki/ cd ~/wiki/ wget http://download.wikimedia.org/mediawiki/1.10/mediawiki-1.10.0.tar.gz sudo mkdir /var/www/w/ sudo tar xzf mediawiki-1.10.0.tar.gz -C /var/www/ cd /var/www/mediawiki-1.10.0/ sudo chmod a+x config
$ mysql mysql> USE mysql; mysql> UPDATE user SET Password=PASSWORD('new-password') WHERE user='root'; mysql> FLUSH PRIVILEGES; add user 'wikiuser' and database 'wikidb' and set privileges
wget http://download.wikimedia.org/enwiki/20070402/enwiki-20070402-pages-articles.xml.bz2 bunzip2 -k enwiki-20070402-pages-articles.xml.bz2 wget http://modzer0.cs.uaf.edu/~dev2c/mwimport.sh (OR http://freizl.googlepages.com/mwimport.sh) chmod +x mwimport.sh
increase DefaultAllowedPacket for MySQL in MySQL config file
cat enwiki-20070402-pages-articles.xml | ./mwimport.sh | mysql -f -uwikiuser -ppassword wikidb
refreshLinks:
php mediawiki/maintenance/refresheLinks.php
Not sure if it is necessary.