Take the 2-minute tour ×
Server Fault is a question and answer site for system and network administrators. It's 100% free, no registration required.

I installed mod security using this tutorial http://www.linuxmaza.... . After installing I got the error described and followed the steps to solve it. The only thing I did differently was updating apache from the repo rather than uninstalling first.

Apache fails on restart, the error log tell me this :

Update: I uninstalled apache and did a clean install. Still getting the same error though.

[Mon Feb 20 16:45:24 2012] [notice] caught SIGTERM, shutting down
[Mon Feb 20 16:45:35 2012] [notice] suEXEC mechanism enabled (wrapper: /usr/sbin/suexec)
[Mon Feb 20 16:45:35 2012] [alert] (EAI 2)Name or service not known: mod_unique_id:    unable to find IPv4 address of "astinf"
Configuration Failed
share|improve this question
    
Is there any particular reason you're using those instructions and not just doing yum install mod_security ? –  Ladadadada Feb 20 '12 at 17:50
    
@Ladadadada I didn't have it installed in my yum repo. –  Frank Astin Feb 20 '12 at 18:03

1 Answer 1

up vote 2 down vote accepted

A bit of Googling on that error suggests that you have astinf (I'm guessing this is your username...) in your Apache config for the ServerName directive.

You can either change your ServerName to something that will return an IP address (such as localhost) or add an entry for whatever you have in there into your /etc/hosts file.

If you have problems with that, this answer suggests that SELinux can get in the way of Apache reading your /etc/hosts file.

share|improve this answer
    
astinf isn't listed as the server name apaches config, I've tryed using my domain and localhost with no luck. Strace brings up the same response as the guy got in the question you linked. But his solution doesn't work.... –  Frank Astin Feb 20 '12 at 21:52
    
@FrankAstin Where's it listed, then? Clearly Apache's getting that from somewhere, and it's not just a coincidental random string. We're just guessing if you don't provide your configuration, and information about where astinf is used on this system. –  Shane Madden Feb 20 '12 at 22:06
    
@ShaneMadden I'm thinking the same, but it's definitely not in httpd.conf or hosts. It was originally the server name (when I bought the VPS I entered it as the server name) . Where else apache could be getting it from? –  Frank Astin Feb 20 '12 at 22:18
    
What about any files included by httpd.conf? –  Shane Madden Feb 20 '12 at 22:28
1  
@Ladadadada I just need to update the hostname in VPS control panel. Thanks for your help. –  Frank Astin Feb 21 '12 at 11:21

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.