Douglas:
Here is the complete procedure that I used to install
Apache 1.3.6 with jserv. I hope it helps.
Let me know if you have any questions:
------------------------------------------
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 [EMAIL PROTECTED]
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
I hope this helps.
Neil.
**We pay a 5% finders fee for job referrals that lead to a contract*
--------------------------------------------------------------------
|Neil Aggarwal |JAMM Consulting, Inc. |Custom Programming |
|President & CEO |www.JAMMConsulting.com|Java, C, C++, perl,|
|[EMAIL PROTECTED]|(972) 612-6056 |HTML, CGI |
--------------------------------------------------------------------
----------------------------------------------------------------
To subscribe: [EMAIL PROTECTED]
To unsubscribe: [EMAIL PROTECTED]
READ THE FAQ!!!! <http://java.apache.org/faq/>
Archives and Other: <http://java.apache.org/main/mail.html/>
Problems?: [EMAIL PROTECTED]