Assumptions:
- Linux RedHat WS 4.0
- Having Sakai v2.0.0 installed
- Having Melete v2.0.2 installed
- DB is MySQL
- Installation home directory "/home/sakai"
- Tomcat is located in "/home/sakai/local/jakarta-tomcat-5.5.9" (I also soft-linked this: "ln -s jakarta-tomcat-5.5.9 tomcat")
- Sakai v2.0.0 source dir "/home/sakai/sakai-src"
- Melete v2.0.2 source dir "/home/sakai/melete2_Htmlarea_Release2.0.2"
- Shutdown current tomcat installation
- Save your Sakai configuration files in "/home/sakai/local/tomcat/sakai
cd /home/sakai/local/tomcat
tar cvzf sakai.tgz sakai
mv sakai.tgz /home/sakai
- Remove tomcat
cd /home/sakai/local
rm tomcat
rm -fr jakarta-tomcat-5.5.9
- Get Tomcat 5.5.9 and compat-lib
cd /home/sakai/local
wget http://linux.cs.lewisu.edu/apache/jakarta/tomcat-5/v5.5.9/bin/jakarta-tomcat-5.5.9.tar.gz
wget http://linux.cs.lewisu.edu/apache/jakarta/tomcat-5/v5.5.9/bin/jakarta-tomcat-5.5.9-compat.tar.gz
tar xvzf jakarta-tomcat-5.5.9.tar.gz
tar xvzf jakarta-tomcat-5.5.9-compat.tar.gz
ln -s jakarta-tomcat-5.5.9 tomcat
- Copy back the sakai configuration files
cd /home/sakai/local/tomcat
cp ~/sakai.tgz .
tar xvzf sakai.tgz
rm sakai.tgz
- Get MySQL Connector-J and copy it to tomcat
wget http://mysql.mirrors.pair.com/Downloads/Connector-J/mysql-connector-java-3.1.10.tar.gz
tar xvzf mysql-connector-java-3.1.10.tar.gz
cd mysql-connector-java-3.1.10
cp mysql-connector-java-3.1.10-bin.jar /home/sakai/local/tomcat/common/lib/
- Download the sakaiv 2.0.1 src
wget http://cvs.sakaiproject.org/release/2.0.1/sakai_2-0-1/sakai-src_2-0-1.tar.gz
- Move old sakai source
mv sakai-src sakai-src_2-0-0
- Unpack new sakai source
tar xvzf sakai-src_2-0-1.tar.gz
- Renmame new sakai soruce directory
mv sakai-src sakai-src_2-0-1
- Make the Melete specific changes to the sakai soruce
- Edit registration.xml in "sakai-src_2-0-1/legacy/component/src/config/"
- <function name="melete.author" />
- <function name="melete.student" />
- From within sakai-src_2-0-1 build with maven
cd ~/sakai-src_2-0-1
maven sakai
- Now we rebuild Melete but first need to edit the project.xml file to account for the version change
cd /home/sakai/melete2_Htmlarea_Release2.0.2
vi project.xml
- Change this line "<currentVersion>2.0.0</currentVersion>" to "<currentVersion>2.0.1</currentVersion>" in project.xml
NOTE: I had to chmod it to 644 because it was read only
- Build Melete with maven
cd /home/sakai/melete2_Htmlarea_Release2.0.2
maven cln bld dpl
- Now we patch the database
- Download the DB patch at
wget http://bugs.sakaiproject.org/jira/secure/attachment/10838/
- Note: The samigo-2.0.0-patch1.tar file is not an archive bug a text file that contains the SQL statements to patch the DB
- So we need to rename the above file
from:
samigo-2.0.0-patch1.tar
to:
samigo-2.0.0-patch1.sql
- Now we can apply the patch:
mysql -u username -p schemaname < samigo-2.0.0-patch1.sql --force
- That's it:
- Start Tomcat
-NOTE: ( I had to start and stop tomcat twice because I got some wired Samigo JSP errors after accessing Samigo after the first start.)