Portal Home > Knowledgebase > Articles Database > Any advice for compiling mod_security 1.9.5 on CentOS 5 64-bit?


Any advice for compiling mod_security 1.9.5 on CentOS 5 64-bit?




Posted by pmabraham, 12-23-2009, 03:02 PM
Greetings: Does anyone have any advice on what changes are necessary for mod_security 1.9.5 to compile for Apache 1.3.41 on CentOS 5, 64-bit? When I use the same steps for non 64-bit CentOS, I get compile errors. Thank you.

Posted by Ramprage, 12-23-2009, 03:06 PM
What are the compile errors you get? For the 64 bit version make sure that httpd.conf is using the lib64 directory /usr/lib64/httpd/modules/mod_security.so

Posted by webleadGM, 12-23-2009, 03:29 PM
Provide us with errors you're receiving

Posted by pmabraham, 12-24-2009, 12:06 PM
Greetings: Running Errors... Thoughts? Thank you.

Posted by pmabraham, 12-28-2009, 11:21 AM
Greetings: Is anyone able to help with this issue? Thank you.

Posted by DigitalLinx, 12-28-2009, 12:01 PM
You're missing the apache devel package required to build/compile any apache module. Have you installed apache 1.3.x from source or from a rpm/yum repo?

Posted by pmabraham, 12-28-2009, 12:34 PM
Greetings: It is H-Sphere, so they have their own Apache rpm's; we have what they offer installed. If it matters, we've compiled mod_security on CentOS 3 to 5 (non 64-bit) without a hitch. Thank you.

Posted by DigitalLinx, 12-28-2009, 12:52 PM
I have have no experience with H-Sphere, i'm just judging from the error message here Which is apache source header file, you could just download the appropriate apache sources and build mod_security from there. You might already have the appropriate header files however the configure script/gcc isn't looking at the right place. See if you have ap_md5.h anywhere on the system and make appropriate symlink, that should fix the problem as well.

Posted by pmabraham, 12-28-2009, 04:08 PM
Hugs Digital Linx Hosting: Thank you. While I'm not at the point to try it on a new server, I just finished installing mod_security 1.9.5 on a CentOS 5 32-bit server, and was wondering what's the difference. Here, thanks to you pointing out ap_md5.h, I checked and this file is present on H-Sphere web servers, but not on a control panel server that does not also have web services. And that's where I ran into the compilation problem the other week. Thank you again!

Posted by linux_crazy, 12-30-2009, 02:32 PM
I dont think you have compiled it properly. Maybe can use a different zip file which is not corrupted. Always check the md5 once you downland.

Posted by DigitalLinx, 12-30-2009, 02:34 PM
That makes no sense whatsoever from what the OP provided.

Posted by linux_crazy, 12-30-2009, 02:38 PM
it makes sense please check the error it looks like the tar or zip file downloaded is a broken link.



Was this answer helpful?

Add to Favourites Add to Favourites    Print this Article Print this Article

Also Read


Language: