MediaWiki/Upgrade/REL1 25 to REL1 26: Difference between revisions
No edit summary |
upgraded to HEAD |
||
| Line 1: | Line 1: | ||
=== Overview === | === Overview === | ||
I just upgraded my wiki site, and thought I would write down the steps for further reference. Even though the | I just upgraded my wiki site, and thought I would write down the steps for further reference. Even though the README, UPGRADE and online help are very detailed, I find it helpful to note my personal preferences, observations, and clarifications where I might not understand the instructions. | ||
The process obviously started with downloading the source from the web. I | The process obviously started with downloading the source from the web. However, since the wikipedia project uses the continuous integration method of development (meaning they always run their own latest code), I decided to join that practice and run off SVN trunk. So, I simply did a <code>svn checkout http://svn.wikimedia.org/svnroot/mediawiki/trunk/phase3</code> to get the code. | ||
I performed a diff of the entire tree v. my installed copy using the venerable KDiff3 to get an idea of the magnitude of the code changes; to learn by reading some code changes and get a feel for the 'current best practices'. It also helped me to see what old stuff was deprecated, or that I had lying around as cruft on my filesystem. | I performed a diff of the entire tree v. my installed copy using the venerable KDiff3 to get an idea of the magnitude of the code changes; to learn by reading some code changes and get a feel for the 'current best practices'. It also helped me to see what old stuff was deprecated, or that I had lying around as cruft on my filesystem. Since it had been a long time since my last upgrade, there was a large delta. I didn't want to or have time to look at all the code improvements so I moved on to the next step. | ||
=== Consult the release notes === | === Consult the release notes === | ||
| Line 12: | Line 12: | ||
version of the software. This detail bug fixes, new features and functionality, | version of the software. This detail bug fixes, new features and functionality, | ||
and any particular points that may need to be noted during the upgrade | and any particular points that may need to be noted during the upgrade | ||
procedure. | procedure. There was a lot here, although nothing that impacted the function of my installation. | ||
=== Backup first === | === Backup first === | ||
I copied my filesystem as a backup | I copied my filesystem as a backup. | ||
I copied my database as a backup. I noticed that phpMyAdmin failed silently to create a backup because it exhausted the PHP memory limit. When I say 'failed silently' I mean that it saved the export as a compressed file on my system without complaining, but the contents of that file were the plain-text error message from PHP. I could have increased the script memory limit, but instead I found that an uncompressed version of the export would work. I also could have used mysqldump or the Mysql Administrator client. | |||
=== Perform the file upgrade === | === Perform the file upgrade === | ||
| Line 55: | Line 54: | ||
cd wiki/maintenance/ | cd wiki/maintenance/ | ||
ls | ls | ||
php ./update.php | php -q ./update.php | ||
</pre> | </pre> | ||
| Line 65: | Line 64: | ||
notes to check for configuration changes which would alter the expected | notes to check for configuration changes which would alter the expected | ||
behaviour of MediaWiki. | behaviour of MediaWiki. | ||
=== Change the wiki pointer === | |||
In order to quickly upgrade, revert or take the site offline, I simply use a symbolic link and point that to the folder that I want. In order to complete the upgrade, all that was left was to change the target of my wiki symbolic link from phase3_1_7_1 to phase3_1_11 | |||
=== Test === | === Test === | ||