Download the latest version:
# cd /tmp
# wget http://download.wikimedia.org/mediawiki/1.13/mediawiki-1.13.2.tar.gz
Stop Apache:
# /etc/init.d/apache2 stop
Backup the database:
# mysqldump --all-databases --xml -p > db-backup.xml
Enter password:
root@web-server:~# ls -l db-backup.xml
-rw-r--r-- 1 root root 6008760 2008-10-03 06:34 db-backup.xml
Backup my current wiki directory:
# cd /var/www
# tar cvfz wiki-backup.tar.gz wiki/
Installed the new software:
# tar xvfz /tmp/mediawiki-1.13.2.tar.gz -C wiki/ --strip-components=1
I didn't have AdminSettings.php, so I created that, setting values for wgDBadminuser and wgDBadminpassword:
# cd wiki
# cp AdminSettings.sample AdminSettings.php
# vi AdminSettings.php
Ran update.php:
# cd maintenance/
# php update.php
MediaWiki 1.13.2 Updater
Going to run database updates for wikidb-mw_
Depending on the size of your database this may take a while!
Abort with control-c in the next five seconds...0
...have ipb_id field in ipblocks table.
...snip...
Deleting old default messages (this may take a long time!)...Done
Checking site_stats row...ok.
Purging caches...done.
Done.
Restart Apache:
# /etc/init.d/apache2 start
* Starting web server apache2
...done.
And fired up a web browser and tested. Everything looked good.
No comments:
Post a Comment