Moodle upgrade 1.6 > 1.8
October 26, 2007 – 10:02Updated production server for client according to previous upgrade on testserver. Included switch to default theme BEFORE upgrade because of new XHTML and css / theme settings.
Updated client moodle from version 1.6 to 1.8:
- Revert to default theme !!
- copied app directory to backup:
cp -Rvf moodle/* moodle_app.bak20071009/. - backed up database:
mysqldump -u moodleuser --password=pw --single-transaction -C -Q -e -a moodle > moodle-database.20071009.sql - stopped custom cron jobs:
crontab -e - removed old moodle-code (1.6):
rm -Rvf moodle/* - extracted new moodle code (1.8):
tar xzvf moodle-latest-18.tar - Changed ownership of moodle app dir:
chown -Rvf wwwrun:www moodle - Copied theme directory:
cp -Rv moodle_app.bak20071009/theme/* moodle/theme/. - Checked for .htaccess file:
ls -a moodle_app.bak20071009/; not found - Copied config.php:
cp moodle_app.bak20071009/config.php moodle/. - Opened data dir:
chmod 777 moodledata/ - Goto admin page of moodle install -> everything seems ok, only questionnaire plugin gave an error; removed questionnaire dir in codebase; ok
- Installed code for questionnaire plugin in mod/ directory:
unzip questionnaire_18.zip - Updated new settings (no changes, all defaults and ’save changes’)
- Updated multilang
- ran admin/replace.php to replace absolute links to pix learn.domain.com > learntest.domain.com
- copied new icons that are not included in the custom theme:
cp -Rv chameleon/pix/* customtheme/pix/. - copied moodle/pix/req.gif and moodle/pix/adv.gif to moodle/theme/customtheme/pix/.
NOTE: edited /theme/standard/style_colors.css, .sep, .breadcrump #aaa to #FFF.
NOTE: client had ‘old’ version of wget, so we got an error on the login script. After update, everything worked smoothly.
NOTE: there was a problem with grading (scaling) user grades. Grades were scaled to 100% when they should be like 36, 67 etc. Checked data in database: solution is near! Scorm module has changed. In the scorm module settings you can change maximum grade and ‘highest grade’, and all is fine. First it seemed that the database upgrade changed the grades but it was the way the scorm player handled the grading.
NOTE: some fiddling around with theme icons. I think I got it right now.
TODO:
add cronjobs for group and superusersync and moodle crons.




















1 Trackback(s)
Sorry, comments for this entry are closed at this time.