|
|
Mahara Wiki > System Administrator's Guide > Upgrading Mahara
Upgrading MaharaFrom $1Table of contentsThe following document describes how you upgrade a Mahara installation. This process is largely the same regardless of whether you are doing a major version upgrade, for example from 1.1 to 1.2, or a minor version upgrade (e.g. 1.1.5 to 1.1.6). The basic process is:
1. Close your Mahara siteWhile you are running the upgrade, you will be copying, and perhaps even temporarily removing important files that Mahara requires to run. Also, there will be a time when you have put the new code in place but have not yet upgraded the database. During these times, Mahara will not work properly. From Mahara 1.1 onwards, this situation is detected and your site is closed automatically by Mahara itself. For 1.0 installations, you should close your site with a * Alternatively, adding the below will redirect traffic to your site to (e.g. a maintenance page), if using Apache:
2. Make a backup of your database and dataroot directoryMahara stores all of your important user data in two places:
Those two places are the only places that store your data - but you may have made customisations to the code, which you may need to re-apply to the upgraded codebase. You should keep a record of your customisations so this process is easier - the best way to do this is by keeping your code in version control. This is beyond the scope of this document, but keeping your code in a git repository with a branch for your changes is a smart and easy way to manage your changes, and allows you to track the stable branch of the Mahara git repository as well, which will keep you up to date with the latest bug fixes. Note that you should make your backup after you have closed your site, so you can ensure that none of your users lose any data. 3. Put the new code in placeIf you've made no changes to your copy of Mahara, the best way is to extract the new archive, move the old folder out of the way and move the new folder in to the place where the old folder was. This ensures that files that need to be deleted are removed. The chances are that you will want the config.php from your previous site. Extracting the new archive over the top of the old code is not recommended - this process does not remove files that should be removed, and of course will blow away any code changes you have made. Play it safe - move the old code to one side then put the new code in place. This also makes it easy for you to "roll back" to the old code if you find problems - or at least, gives you the ability to examine the old and new code side by side. If you have made changes, you might like to make a patch containing your changes and apply it to the new folder. This will ensure that upgrading will not break your changes, and will point out any conflicts between your patches and the new code. 4. Upgrade the databaseVisit Note: When upgrading from Mahara 1.1 to 1.2, you might see the installation screen hang, with no spinners at all. This is most likely because of a javascript error caused by your browser having old javascript files cached. To solve this, hit Ctrl+F5/Apple+F5 or whatever keystroke you need to do a hard reload in your browser. This will force downloading the new javascript, and the upgrader should then run. Note: When upgrading from Mahara 1.0 to 1.1, the "artefact.file" upgrade may take quite a long time, as it is scanning all of the files in your dataroot for their mime types. Don't panic if it takes a very long time to complete! 5. Make your site available to your users againNow that your site has been upgraded successfully, don't forget to open it for business again! In Mahara 1.1, if the site was automatically closed it will be opened again once the database upgrade is finished. TroubleshootingQ: The upgrade failed! :(A: The upgrade process is always well tested, so should not have. But if it does, please get in contact with us on the forums or in the #mahara IRC channel - and be prepared to potentially be asked for a dump of your database and copy of the error messages ready. If you find the problem yourself, please feel free to open a bug report with the relevant information, so we can fix it ASAP! Q: The upgrade hung, none of the upgrades seemed to run when I visited admin/upgrade.phpA: Try a hard reload in your browser (usually Ctrl+R/Apple+R). This will force downloading the new javascript, which might be all that's necessary to get the upgrader rolling again.
Tags:
|
Powered by MindTouch Deki Open Source Edition v.8.08.1a |
What would be the contents of this file?
Order deny,allow
Deny from all
Allow from [ip address only accessible by the admin user]
:( opening up a post in forums
Same error as zeeshanejaz. This has to do with javascript code being in the head.tpl
I have no solution for this. Where do I add javascript in the code?