Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

dso enabled apache

Status
Not open for further replies.

techtip

Technical User
Jan 16, 2002
3
US
Hello,

I am trying to enable apache(1.3.20) with DSO. But httpd is not able to recognise "LoadModule" keyword

I downloaded the source from apache. Performed following actions,


1. Edit src/Configuration:
>> Rule SHARED_CORE=yes /* Changed to 'yes'*/
>> EXTRA_CFLAGS=
-DSHARED_CORE_DIR=\"/apps/apache1.3.20/libexec\"

2. Performed make
3. cp src/libhttpd.so* /apps/apache1.3.20/libexec
cp src/libhttpd.ep /apps/apache1.3.20/libexec
cp src/httpd /apps/apache1.3.20/bin

4. Generated mod_jk.so

5. Copied mod_jk.so to /apps/apache1.3.20/bin

6. In /apps/apache1.3.20/httpd.conf I included
LoadModule jk_mod libexec/mod_jk.so

7. I ran "/apps/apache1.3.20/bin
-f /apps/apache1.3.20/conf/httpd.conf"

The httpd failed with following message
Invalid command 'LoadModule', perhaps mis-spelled or defined by a module not included in the server configuration

Your input and help will be greatly appreciated.

Thanks,

techtip.
 
Hi,

Looks like your apache doesn't have mod_so builtin. That's the module that allows you to use DSOs. The simplest way to compile apache with DSO support is like this :

# ./configure --enable-module=most --enable-shared=max
# make
# make install

Hope this helps
 
ifincham,

Thanks for your response,

For some reason ./configure was not seeting the required compile options for building httpd with DSO>

I modified
1. "prefix" value in config.layout to my install path
prefix = /apache1.3
2. src/Configuration to include
a. AddModule modules/standard/mod_so.o
b. EXTRA_CFLAGS= -DSHARED_CORE_DIR=\"/apache1.3/libexec\"
c. Rule SHARED_CORE yes
3. Performed make install

Now httpd is able to recognise DSO.





 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top