Server Fault is a question and answer site for system and network administrators. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top
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/ into server: /etc/httpd/modules/ undefined symbol: ap_unixd_set_global_mutex_perms

my httpd file:

LoadModule unique_id_module modules/
LoadFile /usr/lib/
#LoadFile /usr/lib/
LoadModule security2_module modules/

any ideas? google has nothing.

I followed these guidelines:

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

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


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.