Forum Moderators: phranque
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
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.