mod_security install

mikef1

Verified User
Joined
Aug 15, 2007
Messages
10
Trying to get ModSecurity 2.1.2 installed with Apache 2.0.59. It keeps on blowing up on me.

Edited Makefile
top_dir=/etc/httpd
INCLUDES = -I /usr/local/include/libxml2

did make, it complained about not finding special.mk
did a locate special.mk
changed top_builddir = /var/www

make then complained about not finding http_core.h
changed top_srcdir = /usr/include/apache
still couldn't find http_core.h so I guess my paths aren't right.

I am using these instructions http://www.modsecurity.org/documentation/modsecurity-apache/2.1.2/html-multipage/02-installation.html

Recompiled Apache with --with-pcre as mentioned in the Note, didn't help me any.
 

pucky

Verified User
Joined
Sep 9, 2006
Messages
795
Is libxml2 installed? If so, where is it? If not, you should probably install it and find out what path its using.
 

burning_vn

Verified User
Joined
Oct 21, 2007
Messages
9
Do you install ModSecurity in CentOS ???

Edited Makefile
top_dir=/var/www/
INCLUDES = -I /usr/local/include/libxml2
 

mattb

Verified User
Joined
Mar 31, 2005
Messages
170
Location
Melbourne, Australia
It's a problem in the custombuild script. It misses step #2. :(

In order to get it installed.
  1. Recompile Apache with --with-pcre=/usr
  2. ln -s /var/www/build /etc/httpd/build after build.
  3. top_dir=/etc/httpd
  4. INCLUDES = -I /usr/local/include/libxml2
    (though if you install your OS version of libxml2 you can use /usr/include/libxml2
    (Install libxml2 and libxml2-devel on CentOS))
  5. make
  6. make install

Follow the instructions from http://www.modsecurity.org/documentation/modsecurity-apache/2.1.4/html-multipage/02-installation.html

(ie: Editing your httpd.conf file, and loading some rules.)
 

smtalk

Administrator
Staff member
Joined
Aug 22, 2006
Messages
8,209
Location
LT, EU
mattb, step #1 and #2 will be included into the CustomBuild script soon.
 
Top