From: Rich Bowen core
which cannot be put into a DSO
itself. Practically all other distributed Apache httpd modules will then
be placed into a DSO. After a module is compiled into a DSO named
- mod_foo.so
you can use mod_so
's LoadModule
command in your
+ mod_foo.so
you can use mod_so
's LoadModule
directive in your
httpd.conf
file to load this module at server startup
or restart.
The DSO builds for individual modules can be disabled via @@ -132,13 +132,13 @@ $ apxs -cia mod_foo.c
On modern Unix derivatives there exists a nifty mechanism
- usually called dynamic linking/loading of Dynamic Shared
+ On modern Unix derivatives there exists a mechanism
+ called dynamic linking/loading of Dynamic Shared
Objects (DSO) which provides a way to build a piece of
program code in a special format for loading it at run-time
into the address space of an executable program. This loading can usually be done in two ways: Automatically
+ This loading can usually be done in two ways: automatically
by a system program called The shared library approach is the typical one, because it
is what the DSO mechanism was designed for, hence it is used
for nearly all types of libraries the operating system
- provides. On the other hand using shared objects for extending
- a program is not used by a lot of programs.ld.so
when an
executable program is started or manually from within the
executing program via a programmatic system interface to the
@@ -217,8 +217,7 @@ $ apxs -cia mod_foo.c
LoadModule
- httpd.conf
configuration commands instead of
- configure
options at build-time. For instance
+ httpd.conf
configuration directives instead of
+ configure
options at build-time. For instance,
this way one is able to run different server instances
- (standard & SSL version, minimalistic & powered up
- version [mod_perl, PHP3], etc.) with only one Apache httpd
+ (standard & SSL version, minimalistic & dynamic
+ version [mod_perl, mod_php], etc.) with only one Apache httpd
installation.apxs
pair you can both work outside the
Apache httpd source tree and only need an apxs -i
command followed by an apachectl restart
to
@@ -256,18 +254,14 @@ $ apxs -cia mod_foo.c
DSO has the following disadvantages: