Product SiteDocumentation Site

11.4.2. Writing a Module

If you intend to create a new DSO module, make sure you have the httpd-devel package installed. To do so, type the following at a shell prompt:
~]# yum install httpd-devel
This package contains the include files, the header files, and the APache eXtenSion (apxs) utility required to compile a module.
Once written, you can build the module with the following command:
~]# apxs -i -a -c module_name.c
If the build was successful, you should be able to load the module the same way as any other module that is distributed with the Apache HTTP Server.