Installing on Debian Etch
(Difference between revisions)
(→Deploying the opencms.war file) |
m (→Deploying the opencms.war file) |
||
Line 25: | Line 25: | ||
== Deploying the opencms.war file == | == Deploying the opencms.war file == | ||
− | First, stop | + | First, stop Tomcat, then copy the opencms.war into the webapps folder, and start Tomcat again: |
/etc/init.d/tomcat5.5 stop | /etc/init.d/tomcat5.5 stop | ||
− | |||
− | |||
cp opencms.war /var/lib/tomcat5.5/webapps/ | cp opencms.war /var/lib/tomcat5.5/webapps/ | ||
− | |||
− | |||
− | |||
/etc/init.d/tomcat5.5 start | /etc/init.d/tomcat5.5 start |
Revision as of 16:20, 21 February 2008
Installing the necessary software
apt-get update apt-get install sun-java5-jdk sun-java5-jre update-alternatives --config java update-alternatives --config javac apt-get install tomcat5.5 tomcat5.5-admin tomcat5.5-webapps
In case you want to run an ordinary Apache as a proxy in front of Tomcat, also install the mod-jk package:
apt-get install libapache2-mod-jk
Configuring Apache Tomcat 5.5
The file /etc/default/tomcat5.5 holds some configuration which we need to change: Change the following parameters:
#We have plenty of RAM, let's give it to Tomcat: CATALINA_OPTS="-Djava.awt.headless=true -Xms512M -Xmx2048M -server" TOMCAT5_SECURITY=no
In case you use mod-jk, make the following changes to /etc/libapache2-mod-jk/workers.properties:
workers.tomcat_home=/usr/share/tomcat5.5 workers.java_home=/usr/lib/jvm/java-1.5.0-sun
Deploying the opencms.war file
First, stop Tomcat, then copy the opencms.war into the webapps folder, and start Tomcat again:
/etc/init.d/tomcat5.5 stop cp opencms.war /var/lib/tomcat5.5/webapps/ /etc/init.d/tomcat5.5 start