Difference between revisions of "MediaWiki/archive/mirroring on a laptop"

from HTYP, the free directory anyone can edit if they can prove to me that they're not a spambot
Jump to navigation Jump to search
 
m (→‎The Environment: better link for vaio)
Line 4: Line 4:
 
This page is still in progress, as I haven't got the installation completely working yet.
 
This page is still in progress, as I haven't got the installation completely working yet.
 
==The Environment==
 
==The Environment==
I started with [[Ubuntu]] 6.06 running on a [[Sony Vaio]] F650 laptop (Intel P3-600, 128 MB).
+
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):
 
Things to install (I used Synaptic for these):
Line 11: Line 11:
 
* php5
 
* php5
 
** '''php5-mysql''', the MySQL module for PHP 5
 
** '''php5-mysql''', the MySQL module for PHP 5
 +
 
==Copying the site==
 
==Copying the site==
 
Download a copy of your MediaWiki installation (so you are using the same version), and [[backing up MySQL data|export the database]] to a .sql file.
 
Download a copy of your MediaWiki installation (so you are using the same version), and [[backing up MySQL data|export the database]] to a .sql file.
 
==Tidying up==
 
==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.
 
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.

Revision as of 17:25, 23 October 2006

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.