IDependOn-Set: 1
IDependOn-Set: 95
IDependOn-Set: 96
IDependOn-Set: 99
IDependOn-Set: trash
LastModifiedSecs: 923437441
Parent: trash
SequenceNumber: 2
Title: Step by Step: DSO Installation of Apache JServ, RH 5.2 and Apache 1.3.3 
Part: 0
Author-Set: edmund@wildworld.net
LastModifiedSecs: 923437080
Type: 
Lines: 89
These steps worked for me in setting up Apache JServ 1.0b3 with RedHat 5.2, Apache 1.3.3 with Sun's JSDK 2.0 for UNIX and BlackDown's JDK 117
========================================================================
I untarred all the files and I put them in /usr/Apache-JServ-10b3,
/usr/local/JSDK2.0 and /usr/local/jdk117_v1a.

In /etc/profile, I changed the PATH statement to be like the following one and added the JAVA_HOME & JSDK_HOME environment variables.  Don't forget to add the new environment variables to the export statement a few lines down from where you added them.
---------------------
PATH="$PATH:/usr/X11R6/bin:/usr/local/jdk117_v1a/bin:/usr/local/JSDK2.0/bin"

JAVA_HOME="/usr/local/jdk117_v1a"
JSDK_HOME="/usr/local/JSDK2.0"
CLASSPATH="$JAVA_HOME/lib/classes.zip:$JSDK_HOME/lib/jsdk.jar"
---------------------

I wanted to configure Apache JServ so it could be loaded dynamically (DSO).  In the /usr/local/Apache-JServ-10b3 directory I typed the following lines:
---------------------
./configure --with-apache-install=/usr \
            --prefix=/usr --enable-apache-conf
---------------------

                    **********     Note     ************
I personally have installed the Apache source RPM, so that is in my /usr
directory tree.  I don't think it is actually needed though I could be wrong.
                    ************************************

At any rate, if you get no error messages, and all seems to go well with the configuration,  then do:
---------------------
make
---------------------

If all goes well with no error message, do:
---------------------
make install
---------------------

I then copied the /usr/local/Apache-JServ-10b3/src/c/mod_jserv.so file to /etc/httpd/modules.

In my /etc/httpd/conf/httpd.conf file, I added the line below in the LoadModule statements:
-------------------------------------------------------------
LoadModule jserv_module       /etc/httpd/modules/mod_jserv.so
-------------------------------------------------------------

And below that in the AddModules statements:
---------------------
AddModule mod_jserv.c
---------------------

After all my LoadModule and AddModule statements, I added the line:
---------------------
Include /usr/local/Apache-JServ-10b3/example/jserv.conf
---------------------

In the /usr/local/Apache-JServ-10b3/example/jserv.conf file I then commented out the LoadModule line near the top.  

I also made a change to the jserv redirect statement.  Below is where I made the change so that I could use www.mydomain.com/jserv/ from any machine on my network instead of just on my localhost system.:
----------------------
<Location /jserv/>
SetHandler jserv-status

order deny,allow
deny from all
allow from localhost 127.0.0.1 <Right here I added my domain ip address>

</Location>
-----------------------

In the /usr/local/Apache-JServ-10b3/example/jserv.properties file, uncomment, in other words, remove the # in the line under the Security Parameters section that has:
---------------------
#security.selfservlet=true
---------------------

Restart Apache with:
---------------------
/etc/rc.d/init.d/httpd restart
---------------------
You might want to make sure that Apache restarted.

You should be able to do:
www.yourdomain.com/jserv/ 
          and
www.yourdomain.com/example/Hello 

and all should work !

Hope this helps!

C'ya,
Edmund
edmund@wildworld.net
EndPart: 0
