apache2: apr_sockaddr_info_get() failed for somehost

Hypothetically speaking of course, let’s assume you forget to renew a domain name. And suddenly that domain’s email is not working. And then you notice the site is down. The next step is, logically speaking, to panic, followed by an attempt to figure out what the hell is going on. Which usually means restarting Apache. Which results in:

apache2: apr_sockaddr_info_get() failed for yourhost

Which is, wow, an exotic new error. If you see this it means that, even though Apache says its restarting, really its probably not. And now all your other sites are down. And, so, more panic. More panic for you.

Now that you’ve probably realized that the default domain name has expired, you will want to get Apache back up on a different, actually non-expired domain. Like this:

$ hostname actual-non-expired-domain-name.com

Now restart.

Alternatively if your hostname is set to something like “www”, probably you can change the default site in vhosts so that Apache can connect the hostname to the tld.

This is all hypothetical of course.

Tags: , ,

1 Star2 Stars3 Stars4 Stars5 Stars (1 votes, average: 5.00 out of 5)
Loading ... Loading ...

Possibly Related:


7 Responses to “apache2: apr_sockaddr_info_get() failed for somehost”

  1. Dave Says:

    Hehe, this made my day. Thanks.

  2. apache2: apr_sockaddr_info_get() failed for somehost Says:

    set hostname as you wish in /etc/conf.d/hostname
    HOSTNAME=” ,
    and add to /etc/apache2/httpd.conf
    # server name
    NameServer
    don’t forget to include this name also in /etc/hosts

    it works great for me

  3. Rico Says:

    Nice !!!!
    Thanks !

  4. salalex Says:

    Thanx!
    (had to append current hostname to “/etc/hosts”)

  5. Alex Says:

    Thank you!

  6. control mantenimiento Says:

    software de mantenimiento…

    [...]apache2: apr_sockaddr_info_get() failed for somehost | blog.arithm[...]…

  7. Andre Says:

    maybe turn on “HostnameLookups” in apache2.conf ?

Leave a Reply