head	1.9;
access;
symbols;
locks
	nobody:1.9; strict;
comment	@# @;


1.9
date	99.05.16.02.24.14;	author nobody;	state Exp;
branches;
next	1.8;

1.8
date	99.05.15.00.20.03;	author nobody;	state Exp;
branches;
next	1.7;

1.7
date	99.05.12.13.57.36;	author nobody;	state Exp;
branches;
next	1.6;

1.6
date	99.05.10.20.17.06;	author nobody;	state Exp;
branches;
next	1.5;

1.5
date	99.05.09.03.01.34;	author nobody;	state Exp;
branches;
next	1.4;

1.4
date	99.05.09.02.59.34;	author nobody;	state Exp;
branches;
next	1.3;

1.3
date	99.05.09.02.56.05;	author nobody;	state Exp;
branches;
next	1.2;

1.2
date	99.05.09.02.54.53;	author nobody;	state Exp;
branches;
next	1.1;

1.1
date	99.05.09.02.54.47;	author nobody;	state Exp;
branches;
next	;


desc
@null
@


1.9
log
@null
@
text
@IDependOn-Set: 1
IDependOn-Set: 114
IDependOn-Set: 13
IDependOn-Set: 144
IDependOn-Set: 15
IDependOn-Set: 164
IDependOn-Set: 2
LastModifiedSecs: 926218894
Parent: 15
SequenceNumber: 3
Title: Apache 1.3.6, JDK 117v1a, JSDK2.0, Jserv1.0b3 on RH5.2
Part: 0
Author-Set: neil@@JAMMConsulting.com
LastModifiedSecs: 926218740
Type: monospaced
Lines: 151
Here is the complete procedure that I used to set up Apache 1.3.6,
JDK 117v1a, JSDK 2.0, JServ 1.0b3, nad JServSSI on a server-class 
installation of RedHat 5.2.

A lot of this information is specific to my system, but I think it will
be useful to others that are having trouble with the JServ install.

------------------------------------------
Installing Apache 1.3.6

Log in as root
mkdir /usr/local/
cd /usr/local/
download the apache_1.3.6.tar.gz file
        From: ftp.win.or.jp/pub/network/www/apache/dist
decompress and de-archive it.
cd apache_1.3.6
./configure
make
make install
cd /usr/local/apache/conf
edit httpd.conf
        Make: ServerRoot /usr/local/apache (This was pre-set)
        Make: DocumentRoot /usr/local/apache/htdocs (This was pre-set)
        Make: ServerAdmin webmaster@@JAMMConsulting.com
save httpd.conf
Edit /etc/rc.d/init.d/httpd
        place a # on the front of the line "daemon httpd"
Append to /etc/rc.d/rc.local:
/usr/local/apache/bin/apachectl start
html files go in /usr/local/apache/htdocs

-------------------------------------------
Installing JDK 1.1.7
cd /usr/local
ftp xfer.nitric.com
cd pub/java-linux/JDK-1.1.7/i386/glibc/v1a
get jdk_1.1.7-v1a-glibc-x86.tar.gz
tar zxvf jdk_1.1.7-v1a-glibc-x86.tar.gz

Dont forget to put path to it in .bashrc:
PATH=$PATH:/usr/local/jdk117_v1a/bin

-------------------------------------------
Installing JSDK 2.0

Use lynx to doanlead the servlet dev kit.
http://www.javasoft.com/cgi-bin/download2.cgi
Naviagte to it and download it.

tar xvf jsdk20-solaris2-sparc.tar
rm jsdk20-solaris2-sparc.tar

---------------------------------------------
Setting up Apache Jserv

Must have apache in source form (See above)

login as root
cd /usr/local
lynx http://java.apache.org/jserv/dist/
retrieve Apache-JServ-1.0b3.tar.gz
tar zxvf Apache-JServ-1.0b3.tar.gz  

Add to /home/neil/.bashrc:
        JAVA_HOME=/usr/local/jdk117_v1a
        JSDK_HOME=/usr/local/JSDK2.0
        CLASSPATH=$JAVA_HOME/lib/classes.zip:$JSDK_HOME/lib/jsdk.jar
        PATH=$JAVA_HOME/bin:$JSDK_HOME/bin:$PATH
        export PATH JAVA_HOME JSDK_HOME CLASSPATH           
Logout and log back in to set variables.

login as neil
su root
. /home/neil/.bashrc
cd /usr/local/Apache-JServ-1.0b3
./configure
Answer y to installing jserv in apache directory
make
make install
cp /usr/local/Apache-JServ-1.0b3/src/c/* /usr/local/apache_1.3.6/src/modules/extra
cd /usr/local/apache_1.3.6
./configure --prefix=/usr/local/apache --add-module=src/modules/extra/mod_jserv.c --enable-shared=jserv --enable-module=jserv
make
make install
edit /usr/local/apache/conf/httpd.conf
        Add: LoadModule jserv_module libexec/mod_jserv.so
        append the file /usr/local/Apache-JServ-1.0b3/conf/httpd.conf.in to it
        Modify: ApJservProperties /usr/local/Apache-JServ-1.0b3/conf/jserv.properties
cd /usr/local/Apache-Jserv-1.0b3/conf
edit jserv.properties
        modify: root.properties=/usr/local/Apache-Jserv-1.0b3/conf/zone.properties
        modify: log.file=/usr/local/apache/logs/jserv.log
copy zone.properties.in zone.properties
edit zone.properties:
        Add path to servlets directory on repositories line
        Can have multiple servlets on multiple repositories lines
        I added repositories=/usr/local/apache/servlets
Then:
mkdir /usr/local/apache/servlets 
chmod -R 755 /usr/local/apache/servlets 
Place the TestServlet.class in this directory.
chgrp nobody /usr/local/apache/logs
reboot the machine

Should be able to access servlet at http://neil86.august.net/servlets/TestServlet

Useful utility:
        /usr/local/apache/bin/apachectl start -- Starts the server
        /usr/local/apache/bin/apachectl stop -- Stops the server

Running Jserv manually:
First, set "ApJServManual On" in /usr/local/apache/conf/httpd.conf

Next use this script to run jserv:
--
#!/bin/sh

CLASSPATH=/usr/local/jdk117_v1a/lib/classes.zip:/usr/local/JSDK2.0/lib/jsdk.jar:/usr/local/jserv/jserv.jar

/usr/local/jdk117_v1a/bin/java -classpath $CLASSPATH org.apache.jserv.JServ /usr/local/Apache-JServ-1.0b3/conf/jserv.properties 
--

---------------------------------------
Setting up JServSSI

This is needed to use the <servlet> tag in shtml files

First, get the JServSSI distribution:
        login as root
        cd /usr/local
        lynx http://jserv.apache.org/jservssi/dist
        Get the file Apache_JservSSI_1.0.tar.gz
        tar zxvf Apache_JservSSI_1.0.tar.gz

Login as root
Edit /home/neil/.bashrc and the following to the classpath:
        CLASSPATH=$JAVA_HOME/lib/classes.zip:$JSDK_HOME/lib/jsdk.jar:.
        . /home/neil/.bashrc
        cd Apache-JServ-SSI-19981216/src
        javac -d . *.java
        jar cf0 ApacheJServSSI.jar .
Edit /usr/local/apache/conf/httpd.conf to add:
        ApJServAction .shtml /servlets/org.apache.jservssi.JServSSI 
        DirectoryIndex index.shtml index.html

Add the line below to /usr/local/Apache-JServ-1.0b3/conf/jserv.properties:      wrapper.classpath=/usr/local/Apache-JServ-SSI-19981216/src/ApacheJServSSI.jar

Let me know if you find any errors or need some help,
    Neil Aggarwal
    neil@@JAMMConsulting.com
EndPart: 0
@


1.8
log
@null
@
text
@d6 1
@


1.7
log
@null
@
text
@a5 1
IDependOn-Set: 156
@


1.6
log
@null
@
text
@d6 1
@


1.5
log
@null
@
text
@a12 1
DateOfPart: 1999-May-08  8:01pm
@


1.4
log
@null
@
text
@d7 1
a7 1
LastModifiedSecs: 926218774
d9 1
a9 1
SequenceNumber: 2
d13 3
a15 1
DateOfPart: 1999-May-08  7:59pm
@


1.3
log
@null
@
text
@d7 1
a7 1
LastModifiedSecs: 926218565
d9 1
a9 1
SequenceNumber: 1
d11 156
@


1.2
log
@null
@
text
@d7 1
a7 1
LastModifiedSecs: 926218487
d9 2
a10 2
SequenceNumber: 0
Title: New Item
@


1.1
log
@null
@
text
@d2 1
@
