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!

Need help compiling Apache 1.3.22 with module support

Status
Not open for further replies.

apachenewbie

Technical User
May 27, 2004
6
DE
Hello folks I am new to Apache installation.

Could anyone advise me how to re-install apache coz when I added mod-gzip module to the httpd.conf and restarted apache, it complained that it does not support modules.

I guess I have to reinstall/recompile this product on the linux server?

If so, could anyone please tell me how to safely recompile apache and make it work with mod-gzip module? BTW is modgzip module cpu intensive?

Thanks in advance.
 
I can't think of a version that doesn't use modules. To use a module, apache uses 2 directives. LoadModule and AddModule. The LoadModule directive points to a shared object library (.so file) and the AddModule directive points to a something.c file. The order these are placed is important because the may have dependencies. If you have a third party module, you should get the info from them on how to use and install it. I'm not sure what you want to do with the module but later versions of apache come with the following line enabled in httpd.conf:

<IfModule mod_mime.c>
AddEncoding x-compress Z
AddEncoding x-gzip gz tgz
</IfModule>

This will uncompess zipped files on the fly when apache serves them but it doesn't work for a great number of browsers. If you still need to reinstall apache, let us know what flavor of linux you are using and what type of distro of apache you have such as tarball or rpm so we can be more specific.
 
Thanks man, I'll reload the module (.so) and get back to you here with more information. I am kind of surprised that all apache servers should be able to load .so files but then when I added &quot;loadmodule&quot; to the .conf file, and restarted, I got an error message. I'll get back to ya. Bye.
 
Hi,

It looks like you don't have DSO support compiled in. If not, you'd either have to rebuild from source or download a pre-compiled binary ( An example build from source would be :

# cd your-apache-source-directory
# ./configure --enable-module=most --enable-shared=max
# make install

See --> and
Hope this helps
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top