PDA

View Full Version : mod_security install


mikef1
09-04-2007, 10:19 AM
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
09-04-2007, 11:28 AM
Is libxml2 installed? If so, where is it? If not, you should probably install it and find out what path its using.

burning_vn
10-25-2007, 11:23 AM
Do you install ModSecurity in CentOS ???

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

mattb
01-05-2008, 07:41 AM
It's a problem in the custombuild script. It misses step #2. :(

In order to get it installed.

Recompile Apache with --with-pcre=/usr
ln -s /var/www/build /etc/httpd/build after build.
top_dir=/etc/httpd
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))
make
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
01-05-2008, 08:54 AM
mattb, step #1 and #2 will be included into the CustomBuild script soon.

mattb
01-06-2008, 06:17 AM
Thanks smtalk. :D

That will make life easier for a lot of ppl compiling additional Apache modules.

smtalk
01-06-2008, 07:23 AM
You're more than welcome. It's already added :)

Dauser2007
01-09-2008, 06:00 PM
with-pcre-regex=/usr/local

or

with-pcre=/usr/local

:)