Difference between revisions of "MediaWiki Upgrade January 2014"
(→Testing) |
(→Testing) |
||
Line 80: | Line 80: | ||
fix.. had to change owner of images directory to web daemon. | fix.. had to change owner of images directory to web daemon. | ||
+ | |||
+ | Special:Version ... ok |
Revision as of 22:41, 28 January 2014
Contents
MediaWiki Successfully Updated
update completed: 10:02 PM Tuesday, January 28, 2014
Prior to updating the mediawiki, a few things need to be determined.
First, read MediaWiki Upgrade April 2011 for notes on the last mediawiki upgrade.
Refer to Manual:Upgrading
Determine the current version of MediaWiki. You can find the MediaWiki version on your server in the file includes/DefaultSettings.php. It should be a variable assigned somewhere in the first 50 lines or so. (see Upgrade - need to find version)
Determine the MySQL version. Since the last upgrade the MySQL server was independently updated, as was PHP, Apache, and the OS (kernel_
HowTo Backup and Upgrade XXXXXXXXXXXX in MediaWiki
The unedited version of this guide is called versions.txt and stored on roachnet secure.
steps
1. check requirements, all LAMP versions
2. lock mediawiki from writes
vi /xxxxx/LocalSettings.php
add the line: $wgReadOnly = 'Dumping Database, Access will be restored shortly'; (the funny thing is that this line did nothing on version 1.16.4)
3. backup wiki files and database
mysqldump --opt xxxxx --lock-tables -p | gzip > xxxxx2014012801.sql.gz php ./dumpBackup.php --full | gzip > /mediawiki-xxxxx-xmldump.xml.gz tar -sp -zcvf /xxxxx/mysql2014012801.tgz /xxxxx/mysql tar -sp -zcvf /mediawiki2014012801.tgz /xxxxx/mediawiki
4. download latest mediawiki version
wget http://download.wikimedia.org/mediawiki/xxx/mediawiki-xxxxx.tar.gz
5. extract to correct path
tar xzvf mediawiki-xxxxx.gz -C /xxxxx/
6. copy/overwrite some config files
ln -s mediawiki-xxxxx mediawiki cp mediawiki-xxxxx/LocalSettings.php ./mediawiki cp -r /xxxxx/mediawiki-xxxxx/images /xxxxx/mediawiki xxxxx cp -r /xxxxx/mediawiki-xxxxx/extensions /xxxxx/mediawiki (answer "no" to overwrite individual files) (the update.php script wouldn't work without copying these extensions first)
7. Run the update script
php /xxxxx/mediawiki/maintenance/update.php (this will take awhile)
8. Unlock the wiki
vi /xxxxx/mediawiki/LocalSettings.php
remove the line: $wgReadOnly = 'Dumping Database, Access will be restored shortly';
9. Once the upgrade has been completed, browse to the wiki and check that the following operations work as expected:
Viewing pages Editing pages Uploading a file Visit Special:Version and check that the version shown is correct and that the extensions are present.
Testing
Editing text... successful
uploading files... error
fix.. had to change owner of images directory to web daemon.
Special:Version ... ok