Problems with mod_security on CentOS 64

Posted by TheMatrix, 06-28-2008, 11:41 PM
Hello- I've been having the hardest time getting mod_security on my new CentOS 5.2 64-bit box. Everything is a straight, simple, standard install - nothing special or custom. Plesk and all the apps that come with it installed fine, everything was going great. Then I tried to compile mod_sec, and things have been nothing but problems. I think I've finally sorted out the problems with the compiler, but now I get this error: /usr/bin/ld: warning: i386 architecture of input file `.libs/msc_lua.o' is incompatible with i386:x86-64 output Repeated, for every file it tries to link. I've been googling and trying things for hours, and I just don't know what else to do. Thanks. -TM

Posted by activelobby4u, 06-29-2008, 03:50 AM
i think its the incompatibility with your architecture. Try an earlier version and see whether it gets installed

Posted by TheMatrix, 06-29-2008, 05:16 AM
I finally figured it out. x64 installations of apache (or at least CentOS 5.2 + Plesk) put their modules in /usr/lib64/httpd/modules - unfortunately mod_sec doesn't know that, and tries to link the objects using -rpath /usr/lib/httpd/modules, which doesn't exist. The solution is to make a link between /usr/lib/httpd/modules and /usr/lib64/httpd/modules to make it happy. I'm shocked that I'm the first person who has mentioned this anywhere. Last edited by TheMatrix; 06-29-2008 at 05:20 AM.

Posted by TheMatrix, 06-29-2008, 05:29 AM
Also, for those who may not know, you'll need the 64 bit version of libxml2.so. This is usually located in lib64 instead of lib. So instead of: LoadFile /usr/lib/libxml2.so You'll need: LoadFile /usr/lib64/libxml2.so

هل استفدت من هذا الجواب؟

 أطبع هذا المقال

اقرأ أيضا

how to start only 1 player at the time?

Posted by bambinou, 11-09-2012, 07:08 PMHello, I would like to know if there is a way to have...

a line in my crontab

Posted by cannibal, 01-13-2008, 05:50 AMhello I found this line in my crontab file 0...

Phpmyadmin and Webmail access problem from cpanel

Posted by Doctor_Web, 09-07-2007, 01:02 PMHello, we have a important problem with our cPanel...

McHost

Posted by avara, 09-27-2001, 04:59 PMI just did a search on McHost, and posts about them seem to...

What is L0 backup?

Posted by prashant1979, 06-27-2008, 09:09 AMWhat is L0 backup? How is it taken? If I have to take...