Forum Moderators: phranque

Message Too Old, No Replies

Trouble installing libapache2-mod-security

         

artemis f0wl

6:10 pm on Jan 14, 2010 (gmt 0)

10+ Year Member



Hello, I am working on building a personal server as securely as possible using Ubuntu 8.04 and Apache 2.2.8. I have been trying to install mod-security, but continue to find it is not available in my repository on the 8.04 virtual machine (although it is available on my 9.04 host machine). Since I was unsuccessful with the install using apt, I decided to try to build from source and got much further but again I have hit a roadblock that I can not fix:


cd /etc/apache2
wget http://www.modsecurity.org/download/modsecurity-apache_2.5.9.tar.gz
tar -xzvf modsec*
cd modsec*
cd apache2
apxs -cia mod_security.c
apachectl stop
apachectl start

Goes well until the "apxs" part... then I do


apxs2 -cia mod_security.c

and get the following output:


msc_xml.h:25:31: error: libxml/xmkschemas.h: No such file or directory
msc_xml.h:26:26: error: libxml/xpath.h: No such file or directory
In file included from modsecurity.h:40,
from modsecurity.c:23:
msc_xml.h:31: error: exprectd specifier-qualifier-list before 'xmlSAXHandler'
apsx:Error: Command failed wih rc-65536

I'm not sure how to proceed or what the issue is. Can someone point me in the right direction to resolve this and get mod-security running?

TIA

encyclo

4:01 pm on Jan 16, 2010 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Welcome to WebmasterWorld artemis f0wl :) I don't have Ubuntu handy to test, unfortunately - I'm quite surprised mod_security isn't available in 8.04.

From memory, Ubuntu doesn't use the same paths as a standard Apache2 installation. Can you find the referenced files elsewhere? Also, Google suggests this may be a problem with a library version, maybe libtool...

You may be better off if you remove the Apache2 installed from the Ubuntu repository and compiling the latest Apache 2.2.x from source.