mod_security problem since update from ./build all d

duke28

Verified User
Joined
Oct 30, 2005
Messages
311
Location
Montreal - Canada
since we update all with ./build all d of custombuild 2.0 :

if i want update mod_security i have it :

starting httpd: httpd: Syntax error on line 152 of /etc/httpd/conf/httpd.conf: Syntax error on line 2 of /etc/httpd/conf/extra/httpd-includes.conf: Cannot load /usr/lib/apache/mod_security2.so into server: /usr/lib/apache/mod_security2.so: symbol xmlOutputBufferGetSize, version LIBXML2_2.9.0 not defined in file libxml2.so.2 with link time reference


i need to put back the old mod_security2.so for see it working ...

can you help me about this ?
because my mother is really not happy of this..lol
 
Last edited:
Hello,

You probably need to re-build mod_security from scratch (but not rules though). Before re-building you should remove all includes from apache configs, so to disable it in apache.
 
i not sure what you meen..

its when i re-build mod_security its give this error..

./build all d have change something about libxml..
 
Last edited:
if i put back the old mod_security.so , all is working ..

but i want to be able to rebuild new one .. because i going to have problem later....
 
I advice that you do not do ./build all d, then you have no control. Instead I advice that you run ./build update and ./build versions and then ./build what you want to upgrade one by one.

If you have problems regarding libxml2 and other applications. First you need to know what version of libxml2 you have, and what version you had before? Anyway, try this:

Code:
cd /usr/local/directadmin/custombuild
./build update
./build versions
./build libxml2
./build libxslt
./build php n

If you still have errors regarding libxml2 and and mod_security after doing the above, then look in your file at /usr/local/directadmin/custombuild/options.conf and find this line:

Code:
new_xml2=no

or if you don't have that then find this line:

Code:
new_xml2=yes

If it says "no", then change it to "yes", if it says "yes" then change it to "no", then run this:

Code:
cd /usr/local/directadmin/custombuild
./build update
./build versions
./build libxml2
./build libxslt
./build php n

Regarding mod_security, I don't use it and can't help, but like zEitEr said, you might need to recompile mod_security. Good luck.

Edit: I did not see your last reply before I posted my reply, so regarding that, if the problem is only when you upgrade to newer mod_security, then try new_xml2=yes in options.conf and recompile what I posted above, it might fix it.

Edit: After recompiling above, you might also want to run: ldconfig
 
Last edited:
starting httpd: httpd: Syntax error on line 152 of /etc/httpd/conf/httpd.conf: Syntax error on line 2 of /etc/httpd/conf/extra/httpd-includes.conf: Cannot load /usr/lib/apache/mod_security2.so into server: /usr/lib/apache/mod_security2.so: symbol xmlOutputBufferGetSize, version LIBXML2_2.9.0 not defined in file libxml2.so.2 with link time reference


At what moment do you have the error? During the process of building mod_security or after the build process is completed?


If during the process, then try to remove mod_security from apache configs and run the build process again.

If the second, then you might need to follow suggestions made by ditto
 
i have the error just when i restart apache

i repeat : i need to put back the old mod_security2.so from the backup server

i have no error for build (configure , make , make install ) mod_security
 
Back
Top