Hello:

With a LOT of help from people on this list, I finally
got apache 1.3.14 and Tomcat 3.2.1 configured and working on 
my system.

Here is the exact procedure that I used to get apache 1.3.14 and
tomcat 3.2.1 to work on my Linux system.

I hope this helps some of the dazed and confused out there!

Thanks,
        Neil.



--
Neil Aggarwal
JAMM Consulting, Inc. -- (972) 612-6056, http://www.JAMMConsulting.com
Custom Internet Development -- Java, JSP, servlets, databases
Installing apache 1.3.14 and tomcat 3.2 on a Linux system

This assumes that you already have the Blackdown java 1.3 VM
installed in /usr/local/java and that you are using bash

Login as root

cd ~
vi .bashrc and add these lines:
export TOMCAT_HOME=/usr/local/jakarta-tomcat-3.2.1
export JAVA_HOME=/usr/local/java
export PATH=$JAVA_HOME/bin:$PATH

Logout and log back in to make these changes effective.

cd /usr/local
Download the file http://httpd.apache.org/dist/apache_1.3.14.tar.gz
De-archive it.
cd apache_1.3.14
./configure --prefix /usr/local/apache_1.3.14_bin
--enable-module=rewrite --enable-shared=rewrite
make
make install

cd /usr/local
Download the file 
http://jakarta.apache.org/builds/tomcat/release/v3.2.1/src/jakarta-tomcat-3.2.1-src.tar.gz

Dearchive it.
cd jakarta-tomcat-3.2.1-src/src/native/apache1.3
cp Makefile.linux Makefile
Edit the Makefile to change the APXS= line to:
        APXS=/usr/local/apache_1.3.14_bin/bin/apxs
make  

This will build all of the *.o files, but will fail on
the build of mod_jk.so, so then enter this command:
gcc -shared -o mod_jk.so *.o

cp mod_jk.so /usr/local/apache_1.3.14_bin/libexec

cd /usr/local
Download the file 
http://jakarta.apache.org/builds/jakarta-tomcat/release/v3.2.1/bin/jakarta-tomcat-3.2.1.tar.gz

Dearchive it
cd jakarta-tomcat-3.2.1/conf
vi server.xml and add the following lines in the Connectors section
        <!-- Apache AJP13 support -->
        <Connector className="org.apache.tomcat.service.PoolTcpConnector">
          <Parameter name="handler" value="org.apache.tomcat.service.connector.A
jp13ConnectionHandler"/>
          <Parameter name="port" value="8009"/>
        </Connector>

Start and stop tomcat to create the auto configuration files:
cd ../bin
./startup.sh
./shutdown.sh

vi /usr/local/apache_1.3.14_bin/conf/httpd.conf
Add the following lines to the end of that file:
# Load the tomcat configuration file
include /usr/local/jakarta-tomcat-3.2.1/conf/mod_jk.conf-auto

Add the following lines to /etc/rc.d/rc.local:
        export APACHE_HOME=/usr/local/apache_1.3.14_bin 
        export TOMCAT_HOME=/usr/local/jakarta-tomcat-3.2.1
        export JAVA_HOME=/usr/local/java
        export PATH=$JAVA_HOME/bin:$PATH
        $TOMCAT_HOME/bin/startup.sh
        $APACHE_HOME/bin/apachectl start

Reboot the server:
        /sbin/reboot

Test the configuration by visiting:
        http://[server name]
You should get the apache congratulations page.

Vist this URL
        http://[server name]/examples
You should get a page with directories for servlet and jsp examples.
Try a few of them.

Reply via email to