2004-01-16, 01:47 PM
This will tell you how to install apache tomcat java and tomcat connector step by step with screen shots so you wont get lost. I got ZERO help in doing this from anyone on IRC.
Here is the link to my doc but if you can't get it for some reason (1.2 mb big) i'll paste the instructions below wihtout scren shots.
[/url][url=http://www.xn85turbo.com/Apache-Tomcat-Tom...ector-Setup.doc]http://www.xn85turbo.com/Apache-Tomcat-Tom...ector-Setup.doc
[strabo]
These are the environment variables!
echo "#Set a few environmental variables for Tomcat, Java, and Apache" >> /etc/profile
echo "export CATALINA_HOME=/usr/local/tomcat/" >> /etc/profile
echo "export JAVA_HOME=/usr/local/java" >> /etc/profile
echo "export APACHE_HOME=/usr/local/apache" >> /etc/profile
echo "#Start Tomcat and Apache
echo "/usr/local/sbin/start.sh" >> /etc/rc.local
echo "#Set a few environmental variables for Tomcat, Java, and Apache" >> /etc/rc.local
echo "export CATALINA_HOME=/usr/local/tomcat/" >> /etc/rc.local
echo "export JAVA_HOME=/usr/local/java" >> /etc/rc.local
echo "export APACHE_HOME=/usr/local/apache" >> /etc/rc.local
Step 1:
Go get the apps listed in each install section!
Step 2:
Change to the directory with the applications> cd /usr/local/src/NfuseApache
Step 3:
Unpack Apache first: tar zxvf httpd-2.0.47.tar.gz
Step 4:
Change to the Directory with the apache installation files> cd /usr/local/src/NfuseApache/httpd-2.0.47
Step 5:
Configure Apache: ./configure --prefix=/usr/local/apache --enable-so
Step 6:
Make the package> make
Step 7:
Install the package> make install
Step 8:
Test Apache configuration> /usr/local/apache/bin/apachectl configtest
Step 9:
Set the Apache variable> export APACHE_HOME=/usr/local/apache
Verify that the variable is set> echo $ APACHE_HOME
Install Tomcat:
Step 1:
Change to the installation directory> cd /usr/local/src/NfuseApache
Step 2:
Copy tomcat to /usr/local/ > cp -p tomcat-4.1.27.tar.gz /usr/local/
Verify its there> ls /usr/local/
Step 3:
Change to the /usr/local directory > cd /usr/local/
Step 4:
Unpack Tomcat> tar zxvf tomcat-4.1.27.tar.gz
Step 5:
Make a symbolic link ot the tomcat installation directory> ln -s /usr/local/jakarta-tomcat-4.1.27 /usr/local/tomcat
Verify its there> ls
Step 6:
Set the tomcat directory variable> export CATALINA_HOME=/usr/local/tomcat
Step 7:
Verify that it now read the new variable> echo $CATALINA_HOME
Build install JAVA
Step 1:
Make the java package executable> chmod 777 chmod 777 j2sdk-1_4_2_03-linux-i586.bin
Step 2:
Copy the package to /usr/local/ > cp j2sdk-1_4_2_03-linux-i586.bin /usr/local/
Step 3:
Change to the /usr/local/ directory> cd /usr/local/
Step 2:
Unpack the Java package> ./ j2sdk-1_4_2_03-linux-i586.bin
Step 3:
Read the Disclaimer and except it at the end by typing> yes
The package will unpack and create a directory called j2sdk1.4.2_03
Step 4:
Make a symbolic link to the java directory> ln -s /usr/local/j2sdk1.4.2_03/ /usr/local/java
Step 5:
Verify the /usr/local/java symbolic link was created> ls /usr/local
Step 6:
Set the java directory variable> export JAVA_HOME=/usr/local/java
Verify the variable was set for java> echo $JAVA_HOME
Build Tomcat/Apache Connector:
Step 1:
Change to the installation directory> cd /usr/local/src/NfuseApache/
Step 2:
Unpack the connector package> tar xvzf jakarta-tomcat-connectors-jk-1.2-src-current.tar.gz
Step 3:
Set the Connector Home variable> export CONNECTOR_HOME=/usr/local/src/NfuseApache/jakarta-tomcat-connectors-jk-1.2.5-src
Verify the variable is correct> echo $ CONNECTOR_HOME
Step 4:
Change to the connector installation directory> cd $CONNECTOR_HOME/jk/native
Step 5:
Run the build command> ./buildconf.sh
Step 6:
Run the configure command to link it to apache> ./configure --with-apxs=/usr/local/apache/bin/apxs
Step 7:
Make the package> make
Step 8:
Install the package> make install
Step 9:
Verify it made the file mod_jk.so> find / -name mod_jk.so