Home > ModSecurity > Installation of modsecurity

Installation of modsecurity

October 27th, 2007

ModSecurity installation consists of the following steps:

 

  1. ModSecurity 2.x works with Apache 2.0.x or better.
  2. Make sure you have mod_unique_id installed.
  3. (Optional) Install the latest version of libxml2, if it isn’t already installed on the server.
  4. Unpack the ModSecurity archive
  5. Edit Makefile to configure the path to the Apache ServerRoot directory. You can check this by identifying the ServerRoot directive setting in your httpd.conf file. This is the path that was specified with the “–install-path=” configuration flag during compilation (for example, in Fedora Core4: top_dir = /etc/httpd).
  6. (Optional) Edit Makefile to enable ModSecurity to use libxml2 (uncomment line DEFS = -DWITH_LIBXML2) and configure the include path (for example: INCLUDES=-I/usr/include/libxml2)
  7. Compile with make
  8. Stop Apache
  9. Install with make install
  10. (Optional) Add one line to your configuration to load libxml2: LoadFile /usr/lib/libxml2.so
  11. Add one line to your configuration to load ModSecurity: LoadModule security2_module modules/mod_security2.so
  12. Configure ModSecurity
  13. Start Apache
  14. You now have ModSecurity 2.x up and running.

For any kind of mod security details you can refer to

http://www.modsecurity.org/



Computer security ModSecurity , , , ,

  1. No comments yet.
  1. No trackbacks yet.