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,mysqldump -u wikidbuser -p --opt 
 --databases wikdb > wikidb-backup.sqlmysqldump: Got error: 1044: Access denied for 
 user 'wikidbuser'@'localhost' to database 'wikidb'
 when using LOCK TABLES--optoption. Since the MediaWiki installation, I've actually used MySQL so I've done full backup.mysqldump -u root -p --add-drop-table 
 --all-databases > backup.sql
- Make a backup the MediaWiki directory.
 Make sure at least you backupAdminSettings.phpfile,LocalSettings.phpfile,imagesfolder, andextensionsdirectory. I've just done full backup.cp -a /var/www/mediawiki 
 ~/Backup/mediawiki.backup
- Upgrading WikiMedia
 Getting the newest WikiMedia sourcewget 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.cd /var/www/mediawiki/maintenance 
 php update.phpLocalSettings.phpand re-run the web installation. And move backLocalSettings.phpfile. 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