Well I know of two ways to do it. Matt set up an Ubuntu [6.10?] VMware
that I believe has all of the above set up already. I have a zipped
copy if you want to download it. It's pretty big though--it is about
1GB compressed.
The other option is to install from packages...
sudo apt-get install sun-java6-jdk
sudo update-java-alternatives -s java-6-sun
sudo apt-get install apache2 libapache2-mod-jk tomcat5
To configure the worker you need to have an
/etc/apache2/workers.properties file. I think this is created when you
install the mod_jk package, but I attached on just in case. You will
also need an /etc/apache2/mods-available/jk.load file [see
attached--edit to match your app name]. The last thing you will need to
do to make this work is either adjust the tomcat security policy, or do
what I did and simply turn it off. I'm working on an intranet site, so
it was easier to just turn off the Tomcat security. To do that edit
/etc/default/tomcat5. I may have had to correct the JAVA_HOME in that
file as well, but I can't remember for sure right now [I attached that
one too, just in case].
Hope that helps,
Nathan
dev dev wrote:
Sorry I meant mod_jk and not mod_jk2. I'm using Ubuntu 7.0 of course.
Thod
On 4/23/07, *Nathan Anderson* < [EMAIL PROTECTED]
<mailto:[EMAIL PROTECTED]>> wrote:
mod_jk2 is no longer in development. You would most likely be better
off using mod_jk. I think I have a link to a step-by-step for
apache2,
mod_jk, tomcat5 for Ubuntu. What OS are you installing on?
Nathan
dev dev wrote:
> Can someone point me to a step-by-step tutorial on how to do this?
>
> Thanks
> Dev
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
<mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: [EMAIL PROTECTED]
<mailto:[EMAIL PROTECTED]>
workers.tomcat_home=/usr/share/tomcat5
workers.java_home=/usr/lib/jvm/java-6-sun
ps=/
worker.list=worker1
worker.worker1.port=8009
worker.worker1.host=localhost
worker.worker1.type=ajp13
worker.worker1.lbfactor=1
LoadModule jk_module /usr/lib/apache2/modules/mod_jk.so
JkWorkersFile /etc/apache2/workers.properties
JkLogFile /var/log/apache2/mod_jk.log
JkLogLevel debug
JkLogStampFormat "[%a %b %d %H:%M:%S %Y] "
JkMount /appfuse-project/ worker1
JkMount /appfuse-project/* worker1
# Run Tomcat 5 as this user ID (default: tomcat5). Set this to an empty string
# to prevent Tomcat from starting.
#TOMCAT5_USER=tomcat5
# The home directory of the Java development kit (JDK). You need at least
# JDK version 1.3, just the Java runtime environment (JRE) will not work
# because a Java compiler is needed to translate JavaServer Pages (JSP).
# If JAVA_HOME is not set, some common directories for the non-free JDKs
# as packaged by the Debian java-package and the directories of
# java-gcj-compat-dev and kaffe are tried.
#
# You can also set JSSE_HOME here to enable SSL support
# (this is automatically done for JDK 1.4+, java-gcj-compat-dev and kaffe).
JAVA_HOME=/usr/lib/jvm/java-6-sun
#JSSE_HOME=/usr/local/jsse
# Directory for per-instance configuration files and webapps. It contain the
# directories conf, logs, webapps, work and temp. See RUNNING.txt for details.
# Default: /var/lib/tomcat5
#CATALINA_BASE=/var/lib/tomcat5
# Arguments to pass to the Java virtual machine (JVM)
# "-Djava.awt.headless=true -Xmx128M" is automatically set if CATALINA_OPTS
# is left empty here
CATALINA_OPTS="-Djava.awt.headless=true -Xmx512M -Xms64M -server"
# Java compiler to use for translating JavaServer Pages (JSPs). You can use all
# compilers that are accepted by Ant's build.compiler property.
#JSP_COMPILER=jikes
# Use the Java security manager? (yes/no, default: yes)
TOMCAT5_SECURITY=no
# Timeout in seconds for the shutdown procedure (default: 30). The Java
# processes will be killed if tomcat5 has not stopped until then.
#TOMCAT5_SHUTDOWN=30
# Number of days to keep old log files in /var/log/tomcat5 (default: 14)
#LOGFILE_DAYS=30
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]