WIKI Migration and Upgrading

From Hawk Wiki
Jump to: navigation, search

Upgrading mediawiki

Following steps in http://www.mediawiki.org/wiki/Manual:Upgrading

1. I created a script for wiki upgrading

migrate.sh

#!/bin/bash
OLD_WIKI_DIR=/var/www/wiki.hawkguide.com
NEW_WIKI_DIR=/var/www/wiki2.hawkguide.com
`cp $OLD_WIKI_DIR/LocalSettings.php $NEW_WIKI_DIR/`
`cp -r $OLD_WIKI_DIR/images $NEW_WIKI_DIR/`
`cp -r $OLD_WIKI_DIR/extensions $NEW_WIKI_DIR/`
`cp $OLD_WIKI_DIR/.htaccess $NEW_WIKI_DIR/`

2. Backup the database and php code
3. Run

php maintenance/update.php