AmiWiki:Coordination/MediaWiki instructions

From AMI@Work Communities Wiki

Procedure tested with the following version of MediaWiki: http://gmuf.com/mosaic/MediaWiki1.6Nov24.tar.gz

These instructions can be used to install/update MediaWiki 1.6. Please make sure to download the current version of all components, not a copy cached by your browser/proxy. It's probably best to use wget(1) (with no proxy set) to get the files.

Contents

Backup original directory/warn users/lock database

For example, create a lock file (the lock file name is specifield in LocalSettings.php). Put a warning message in the file and leave the wiki locked while installing the new version in a different directory.

Get a new version of MediaWiki

You can get a CVS version by running

cvs -z3 -d:pserver:anonymous@cvs.sourceforge.net:/cvsroot/wikipedia checkout -P phase3

or a stable version from http://www.mediawiki.org.

Install MediaWiki

  • Put MediaWiki in a directory which is accessible as /w via HTTP.
  • Alias /wiki to /path/to/w/index.php in the HTTP server config.

Install AmiPatch

Get AmiPatch.diff and

cd wiki-dir
patch -p1 < /path/to/AmiPatch.diff

Install AmiTheme

Get AmiTheme.tar.gz and extract to wiki-dir/skins.

Install MosaicAuth

Get MosaicAuth.php and put it in wiki-dir/extensions/mosaic.

Install other third party extensions

The following extensions should be installed on the server

If upgrading, just

cp -a old-wiki-dir/extensions/extenstion-dir wiki-dir/extension

for each extension.

Import existing images

You can create a hard-linked copy of the current images directory. (Just delete the original images if everything went fine.)

cd wiki-dir
cp -al old-wiki-dir/images .

Configure

Personal tools
community tools