Problems adding Apache JServ module to Apache Web Server as a Dynamic Shared Object

Problems adding Apache JServ module to Apache Web Server as a Dynamic Shared Object

Post by fran_hud.. » Fri, 25 Feb 2000 04:00:00



Please someone help!!!

I am trying to add Apache Jserv as a dynamic
shared object to the Apache Web Server 1.3.9.

I have installed the binary Apache Web Server and
checked that it has DSO support enabled by
looking for mod_so.c when I ran httpd -l from
within the Apache bin directory.

Apache is running fine (I get a congratulations
page when I go to http://hostname with a web
browser).

I ran the configure script for Apache JServ with
the following options

*************************************
--enable-shared=max
--prefix=/cimage/jserv
--with-JSDK=/cimage/JSDK2.0/jsdk.jar
--with-apxs=/usr/local/apache/bin/apxs
**************************************
I then ran make ; make install.  This created the
docs directory in /cimage/jserv and
ApacheJServ.jar and mod_jserv.so
in /cimage/apache/libexec

I then restarted apachectl which complained about
the line which loads mod_jserv.so

******************************************
apachectl restart: httpd not running, trying to
start
Syntax error on line 238
of /cimage/apache/conf/httpd.conf:
Cannot load /cimage/apache/libexec/mod_jserv.so
into server: ld.so.1: /cimage/ap
ache/bin/httpd:
fatal: /cimage/apache/libexec/mod_jserv.so:
unknown file type
apachectl restart: httpd could not be started
*******************************************

However when running file against mod_jserv.so it
says 'current ar archive, not a dynamic
executable or shared object'

What have I done wrong?

Thanks in advance

Fran

Sent via Deja.com http://www.deja.com/
Before you buy.

 
 
 

Problems adding Apache JServ module to Apache Web Server as a Dynamic Shared Object

Post by fran_hud.. » Fri, 25 Feb 2000 04:00:00


Please someone help!!!

I am trying to add Apache Jserv as a dynamic
shared object to the Apache Web Server 1.3.9.

I have installed the binary Apache Web Server and
checked that it has DSO support enabled by
looking for mod_so.c when I ran httpd -l from
within the Apache bin directory.

Apache is running fine (I get a congratulations
page when I go to http://hostname with a web
browser).

I ran the configure script for Apache JServ with
the following options

*************************************
--enable-shared=max
--prefix=/franh/jserv
--with-JSDK=/franh/JSDK2.0/jsdk.jar
--with-apxs=/usr/local/apache/bin/apxs
**************************************
I then ran make ; make install.  This created the
docs directory in /franh/jserv and
ApacheJServ.jar and mod_jserv.so
in /franh/apache/libexec

I then restarted apachectl which complained about
the line which loads mod_jserv.so

******************************************
apachectl restart: httpd not running, trying to
start
Syntax error on line 238
of /franh/apache/conf/httpd.conf:
Cannot load /franh/apache/libexec/mod_jserv.so
into server: ld.so.1: /franh/ap
ache/bin/httpd:
fatal: /franh/apache/libexec/mod_jserv.so:
unknown file type
apachectl restart: httpd could not be started
*******************************************

However when running file against mod_jserv.so it
says 'current ar archive, not a dynamic
executable or shared object'

What have I done wrong?

Thanks in advance

Fran

Sent via Deja.com http://www.deja.com/
Before you buy.

 
 
 

1. Compile Apache with Dynamic Shared Object support

Hi

I want to compile apache with Dynamic Shared Object (DSO) support, so
that I can compile a module separately and then add it to the libexec
directory, change the httpd.conf file and voila - the module  should
then be able to be used without recompiling the whole of apache.

I though I had to compile apache to enable DSO support with the option

--enable-shared=max

but after I did this, adding compiled modules to the libexec library and
changing the httpd.conf file does not work.

Can anyone tell me what the configuration prefix is for the initial
compilation of apache so it DOES support DSO?

I have an inkling I have to include a module called mod_so.c, so do I do
the following?

./configure --enable-module=mod_so.c --enable-shared=max

If someone could confirm this, or tell me what is needed, this would be
greatly appreciated.

Thanks

Hugo

--
Dr Hugo Bouckaert
R&D Support Engineer, Fractal Graphics
39 Fairway, Nedlands Western Australia 6009
Tel: +618 9386 7917

Web: http://www.fractalgraphics.com.au

2. updated COPS?

3. Apache: Dynamic Shared Object (DSO) equivalent for windows?

4. Good Linux article in June 98 Computer Technology Review

5. Adding a module to Apache disables jserv

6. Sis900 & RHL 7.1 network fails

7. Sending XML data to Apache web server and capturing this sent data from the Apache server

8. Solaris 7 x86 and AIC-7896 Troubles!

9. Problems adding modules to Apache server

10. Dynamic IP address with Apache Web server Help

11. Apache Web server with dynamic IP

12. apache cmpilation problem with Jserv module

13. Apache OS/2 CGI patch (was Re: Apache/2 web server)