Build dynamic modules on Solaris
Four files are required to build any module. These are contained in the directory /opt/IBMHTTPD/usr_mod.
- Install the server.
- Copy the entire usr_mod directory to the directory where you will do your build (the "build directory").
- Switch to the build directory.
- Copy your module.c file to the build directory
.
- Rename Makefile.tmpl to Makefile.
- Edit Makefile and replace SRCFILE with the name of the source file, without the extension.
- Issue the make command.
- Copy mod_foo.so into opt/IBMHTTPD/libexec
- Add LoadModule and AddModule directives to httpd.conf, as well as any module specific directives.
- Restart the server.