Upgrading MediaWiki 1.8.4 to 1.9
I've just upgrade my MediaWiki from 1.8.4 to 1.9.3. Here is step-by-step instruction how I upgrade the Wiki.
- Make a full backup of the database.
From shell,
If you don't have insufficient privilege to MySQL database, you might get following errors:mysqldump -u wikidbuser -p --opt
--databases wikdb > wikidb-backup.sql
You may have to use MySQL root account to backup or withoutmysqldump: Got error: 1044: Access denied for
user 'wikidbuser'@'localhost' to database 'wikidb'
when using LOCK TABLES--opt
option. Since the MediaWiki installation, I've actually used MySQL so I've done full backup.
Of course, you can also use phpMyAdmin to all the work.mysqldump -u root -p --add-drop-table
--all-databases > backup.sql - Make a backup the MediaWiki directory.
Make sure at least you backupAdminSettings.php
file,LocalSettings.php
file,images
folder, andextensions
directory. I've just done full backup.cp -a /var/www/mediawiki
~/Backup/mediawiki.backup - Upgrading WikiMedia
Getting the newest WikiMedia source
Updating fileswget http://mirror/mediawiki-1.9.3.tar.gz
tar xvfz mediawiki-1.9.3.tar.gz/bin/cp -R mediawiki-1.9.3.tar.gz /var/www/mediawiki
- Run maintenance script.
I've just renamedcd /var/www/mediawiki/maintenance
php update.phpLocalSettings.php
and re-run the web installation. And move backLocalSettings.php
file. Check Special:Version for MediaWiki version. - Copy back extensions and images folder if necessary.
I've had problem with file permission on MediaWiki files which were own by apache:apache
and I was installing from user account. If you have root
account, it shouldn't be a problem.
No comments:
Post a Comment