0

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
2
  • Is there any particular reason you're using those instructions and not just doing yum install mod_security ?
    – Ladadadada
    Feb 20, 2012 at 17:50
  • @Ladadadada I didn't have it installed in my yum repo. Feb 20, 2012 at 18:03

1 Answer 1

2

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.

8
  • 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.... Feb 20, 2012 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. Feb 20, 2012 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? Feb 20, 2012 at 22:18
  • What about any files included by httpd.conf? Feb 20, 2012 at 22:28
  • 1
    @Ladadadada I just need to update the hostname in VPS control panel. Thanks for your help. Feb 21, 2012 at 11:21

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .