Build dynamic modules on Solaris

Four files are required to build any module. These are contained in the directory /opt/IBMHTTPD/usr_mod.

  1. Install the server.
  2. Copy the entire usr_mod directory to the directory where you will do your build (the "build directory").
  3. Switch to the build directory.
  4. Copy your module.c file to the build directory
  5. .
  6. Rename Makefile.tmpl to Makefile.
  7. Edit Makefile and replace SRCFILE with the name of the source file, without the extension.
  8. Issue the make command.
  9. Copy mod_foo.so into opt/IBMHTTPD/libexec
  10. Add LoadModule and AddModule directives to httpd.conf, as well as any module specific directives.
  11. Restart the server.