Red Hat LINUX 7.2 Reference Manual page 216

Hide thumbs Also See for LINUX 7.2:
Table of Contents

Advertisement

216
#LoadModule mime_magic_module
Most of the lines are not commented out, indicating that each associated module was compiled in and
is loaded in by default. The first line is commented out, which means that the corresponding module
(mmap_static_module) was compiled in but not loaded.
To make Apache load an unloaded module, first uncomment the corresponding LoadModule line.
For example, if you wanted to make Apache load in the mime_magic_module, uncomment this
line:
#LoadModule mime_magic_module modules/mod_mime_magic.so
Next, you need to uncomment the corresponding line from the AddModule section in httpd.conf.
To continue with our previous example, uncomment the mod_mime_magic line, which looks like
the following:
#AddModule mod_mime_magic.c
Once you have uncommented the LoadModule and AddModule lines for the module that you want
to load in, stop and start Apache, as covered in Section 13.2, Starting and Stopping httpd . After
starting, the module should be loaded in to Apache.
If you have your own module, you can add it to the httpd.conf file so that it is compiled in and
loaded as a DSO. If you want to do this, you need to install the apache-devel package, as covered
in Chapter 13, Apache. You need the apache-devel package because it installs the include files,
the header files and the APache eXtenSion (APXS) support tool. APXS uses the include files and the
header files to compile your module so that it will work with Apache.
If you plan to use the Apache Configuration Tool, a GUI utility
provided with Red Hat Linux, you must not compile your own mod-
ules to your Apache Web server or edit your Apache Web server's
httpd.conf configuration file. Conversely, if you want to add mod-
ules to Apache or edit httpd.conf by hand, do not use the Apache
Configuration Tool.
If you need more information on the Apache Configuration Tool,
please see the Official Red Hat Linux Customization Guide.
If you have written your own module or are using a third party module, you should be able to use
APXS to compile your module sources outside the Apache source tree, without needing to tweak
modules/mod_mime_magic.so
WARNING
Chapter 13:Apache

Advertisement

Table of Contents
loading

This manual is also suitable for:

Linux 7.2

Table of Contents