Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.
service httpd restart
Stopping httpd:                                            [  OK  ]
Starting httpd: httpd: Syntax error on line 205 of /etc/httpd/conf/httpd.conf: Cannot load /etc/httpd/modules/mod_security2.so into server: /etc/httpd/modules/mod_security2.so: undefined symbol: ap_unixd_set_global_mutex_perms
                                                           [FAILED]

my httpd file:

LoadModule unique_id_module modules/mod_unique_id.so
LoadFile /usr/lib/libxml2.so
#LoadFile /usr/lib/liblua5.1.so
LoadModule security2_module modules/mod_security2.so

any ideas? google has nothing.

I followed these guidelines: https://github.com/SpiderLabs/ModSecurity/wiki/Reference-Manual#wiki-SVN_Access

Apache is 2.2.15 PHP is 5.3.3

I installed apache/php via yum

share|improve this question
    
Errors like that usually mean you somehow built it for the wrong version of apache. Do you have more than one apache installed? If you have httpd installed through yum, why didn't you install mod_security through yum too? Which distribution are you using? –  DerfK Oct 25 '12 at 19:48
    
CentOS. I was trying to learn how to manually install mod_security. So if I do from source I need to do source as well from apache? –  Thompson Smith Oct 25 '12 at 20:42

1 Answer 1

This happens when you have multiple version of httpd installed on machine. You can solve this by using

./configure --with-apxs=/path/to/httpd-2.x.y/bin/apxs
share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.