MediaWiki/archive/mirroring on a laptop
Overview
For reasons which I'll explain later, I wanted to have a copy of one of my wikis on a laptop so I could refer to it in a situation where I might not have Internet access. This meant installing Apache, PHP, and MySQL, and getting them all working together – things which are more commonly handled by the web hosting service – so it may be useful to make notes about what happened.
This page is still in progress, as I haven't got the installation completely working yet.
The Environment
I started with Ubuntu 6.06 running on a Sony Vaio F650 laptop (Intel P3-600, 128 MB).
Things to install (I used Synaptic for these):
- Apache
- MySQL
- php5
- php5-mysql, the MySQL module for PHP 5
Copying the site
Download a copy of your MediaWiki installation (so you are using the same version), and export the database to a .sql file.
Tidying up
When you first try to access a page, it may try to redirect to the wrong base URL; add "?action=purge" to the URL of each page that does this.