Here's a config.sh I put togeather to do this very thing.  it worked for
me.   I sugest dumping the Redhat httpd.conf, srm.conf and access.conf and
letting Apache install its own and then editing the httpd.conf for your
site.   Trying to make it work using the RedHat conf files is just to much of
a pain.   This is the file used to configure apache ( notice no JServ support
in the configuration ) and it should be very easy to add other shared libs
just by including the proper --enable-shared for the module in question.

One other not of importance, you need to use --enable-module for mod_so (
duh  :-)  ).

Another sidenote:  I dont like the httpd and other apache resources in the
/usr/sbin directory so this file lets apache stick them where they belong (
/usr/local/apache/bin ).  Ironicly I like the .conf and log files under
/etc/httpd ( just so used to them being there ).  If you prefer another
layout just change lines 2 and 3 and add additional entries as per the
configure --help.  :-)

You can run this with a simple:

sh config.sh


Hope it helps.
Ron Burton
=============================file config.sh ====================
./configure \
--logfiledir=/etc/httpd/logs \
--sysconfdir=/etc/httpd/conf \
--enable-module=so \
--enable-shared=env \
--enable-shared=log_config \
--enable-shared=mime \
--enable-shared=negotiation \
--enable-shared=status \
--enable-shared=include \
--enable-shared=autoindex \
--enable-shared=dir \
--enable-shared=cgi \
--enable-shared=asis \
--enable-shared=imap \
--enable-shared=actions \
--enable-shared=userdir \
--enable-shared=alias \
--enable-shared=access \
--enable-shared=auth \
--enable-shared=setenvif \
--enable-shared=info  \
--enable-shared=log_referer  \
--enable-shared=mime_magic  \
--enable-shared=log_agent  \
--with-perl=/usr/bin/perl

============================================================
Chris Price wrote:

> Hi;
>
>         Trying to get Apache/Jserv working on my RH 5.2 server as a DSO
> module.
> I know my current server supports DSO, so all I need to do is compile a
> DSO module, but how to do that I am unsure of.
>
>         When I do a: ./configure --with-jsdk=/usr/local/JSDK2.0/
>
>         and the config script asks me to confirm my apache install in
> /usr/local/apache (to which I say 'y'), the config works fine.
>
>         When I then type make install, all goes well for awhile until I
> get the
> following;
>
> < lots of error free compile messages snipped>
> /usr/bin/jar -0cvf Apache-JServ.jar ./org/apache/java/io/*.class
> ./org/apache/jav
> a/lang/*.class ./org/apache/java/net/*.class
> ./org/apache/java/security/*.class .
> /org/apache/java/util/*.class ./org/apache/jserv/*.class
> java.lang.ClassNotFoundException: sun/tools/jar/Main
> /usr/bin/install -c -m 644 ./Apache-JServ.jar
> /usr/local/jserv/lib/Apache-JServ.j
> ar
> /usr/bin/install: ./Apache-JServ.jar: No such file or directory
> make[2]: *** [/usr/local/jserv/lib/Apache-JServ.jar] Error 1
> make[2]: Leaving directory `/usr/local/Apache-JServ/src/java'
> make[1]: *** [install-recursive] Error 1
> make[1]: Leaving directory `/usr/local/Apache-JServ/src'
> make: *** [install-recursive] Error 1
> <end compile messages>
>         At this point the compile just quits...
>
>         Any ideas as to what I am doing/configgged wrong?
>
>         TIA
>
>         Chris
> --
> __________________________________________________________________________
> Pournelle's Law:
> If you do not know what you are doing, deal with people who do.
> --------------------------------------------------------------------------
>
> ----------------------------------------------------------------
> To subscribe:        [EMAIL PROTECTED]
> To unsubscribe:      [EMAIL PROTECTED]
> Archives and Other:  <http://java.apache.org/main/mail.html/>
> Problems?:           [EMAIL PROTECTED]



----------------------------------------------------------------
To subscribe:        [EMAIL PROTECTED]
To unsubscribe:      [EMAIL PROTECTED]
Archives and Other:  <http://java.apache.org/main/mail.html/>
Problems?:           [EMAIL PROTECTED]

Reply via email to