Skip to end of metadata
Go to start of metadata
You are viewing an old version of this page. View the current version.
Compare with Current
View Page History
« Previous
Version 4
Next »
Assumptions:
- Having a working single Tomcat/Sakai instance installation
- /ucd/pkg/apache-tomcat-5.5.12 (soft linked via: /ucd/opt/tomcat)
Create a second instance
- Make sure that tomcat is NOT running. If it is running stop tomcat
- Create a directory where the Sakai user can store content and archive. Make sure that these directories are owned by the tomcat/sakai user and that it has read/write access
- mkdir /var/sakai
- chown sakai.sakai /var/sakai
- Move the initial content and archive directories
- mv /ucd/pkg/apache-tomcat-5.5.12/sakai/content /var/sakai/
- mv /ucd/pkg/apache-tomcat-5.5.12/sakai/archive /var/sakai/
- chown -R sakai.sakai /var/sakai
- Remove the soft link /ucd/opt/tomcat
- Adjust sakai.properties to match the new archive and content location. Edit the following lines:
- sakai.properties is located at: /ucd/pkg/apache-tomcat-5.5.12/sakai/sakai.properties
- Rename apache-tomcat-5.5.12 to tomcat1
- mv apache-tomcat-5.5.12 tomcat1
- Copy tomcat1 to tomcat2
- Adjust both tomcat1's and tomcat2's server.xml so that we don't have port conflicts
- server.xml is located at:
- /ucd/pkg/tomcat1/conf/server.xml and /ucd/pkg/tomcat2/conf/server.xml
- Make the following port number changes for tomcat1:
- Make the following port number changes for tomcat2:
- Change the serverId in sakai.properties for both tomcat1 and tomcat2
- Edit /ucd/pkg/tomcat1/sakai/sakai.properties
- Edit /ucd/pkg/tomcat2/sakai/sakai.properties
- Adjust serverUrl in /ucd/pkg/tomcat1/sakai/sakai.properties and /ucd/pkg/tomcat2/sakai/sakai.properties
- We only run James on tomcat1, so we need to disable it on tomcat2
- Change the following line in: /ucd/pkg/tomcat2/sakai/sakai.properties
- Make sure that you adjust JAVA_OPTS so that both JVMs have enough memory. In our case this will be:
- When starting either tomcat instance, we have to make sure that we use specific CATALINA_HOME settings for each instance.
- Starting tomcat1
- Starting tomcat2
- Adjust "iptables" to allow traffic for both port 8180 as well as 8280
- Adjust port-forwarding from "80 --> 8080" to "80 --> 8180" if necessary
- Maybe restrict access to 8180 and 8280 only form the load balancer
- Make sure that you adjust /etc/rc.d/rc.local to not just start one tomcat