Tuesday, July 30, 2013

Upgrading Mahara to version 1.7.2

This proved very straightforward, following the process used with previous upgrades.

All that was necessary was to modify one line of the upgrade shell script to use the version 1.7.x repository as shown below:

wget http://launchpad.net/mahara/1.7/$newver/+download/mahara-$newver.tar.gz

Thursday, January 10, 2013

Upgrading Mahara to version 1.6.2

Upgrade from 1.5.1 to 1.6.2

To be on the safe side backup up the database before proceding with the upgrade:
[root@vle bin]# pg_dump -U mahara mahara > ../mahara_dump_Jan13

I used the following modified script for the upgrade:

[root@vle bin]# cat upgrademahara
cd /root
echo "Please put Mahara into maintenance mode before performing the upgrade
"echo "Press any key when ready"
read dummy
echo "Enter new version number of Mahara (must be 1.6 series) to upgrade to e.g. 1.6.2"
read newver
echo "Enter existing version number of Mahara to backup e.g. 1.5.1"
read oldver
wget http://launchpad.net/mahara/1.6/$newver/+download/mahara-$newver.tar.gz
mv /var/www/html/mahara /root/mahara_old_$oldver
tar -xzvf mahara-$newver.tar.gz
cd mahara-$newver
cp -pr htdocs /var/www/html
mv /var/www/html/htdocs /var/www/html/mahara
cp /root/mahara_old_$oldver/config.php /var/www/html/mahara
cp -pr /root/mahara_old_$oldver/artefact/outcome /var/www/html/mahara/artefact
echo "Please visit http://vle.bromley.ac.uk/mahara to complete the upgrade"

On visiting the upgrade page the upgrade ran smoothly