WIKI Migration and Upgrading

From Hawk Wiki
Revision as of 00:10, 19 March 2015 by Hall (Talk | contribs) (Created page with "==Upgrading mediawiki== Following steps in http://www.mediawiki.org/wiki/Manual:Upgrading 1. I created a script for wiki upgrading migrate.sh <pre> #!/bin/bash OLD_WIKI_DIR=...")

(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
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