After upgrade to wheezy apache fails to start

I have upgraded from lenny to wheezy and now apache fails to start:

# /etc/init.d/apache2 start                                                                                                                                                             
Starting web server: apache2[Wed May 08 19:01:08 2013] [crit] (22)Invalid argument: alloc_listener: failed to get a socket for (null)
Syntax error on line 17 of /etc/apache2/ports.conf:
Listen setup failed
Action 'start' failed.
The Apache error log may have more information.
 failed!

Line 17 of ports.conf of course is correct:

# If you just change the port or add more ports here, you will likely also
# have to change the VirtualHost statement in
# /etc/apache2/sites-enabled/000-default
# This is also true if you have upgraded from before 2.2.9-3 (i.e. from
# Debian etch). See /usr/share/doc/apache2.2-common/NEWS.Debian.gz and
# README.Debian.gz

#NameVirtualHost *:80
#Listen 80

<IfModule mod_ssl.c>
    # If you add NameVirtualHost *:443 here, you will also have to change
    # the VirtualHost statement in /etc/apache2/sites-available/default-ssl
    # to <VirtualHost *:443>
    # Server Name Indication for SSL named virtual hosts is currently not
    # supported by MSIE on Windows XP.
    Listen 443
</IfModule>

<IfModule mod_gnutls.c>
    Listen 443
</IfModule>

It looks like it is related to some kernel calls not present in the kernel I am running: http://major.io/2009/08/14/fedora-11-httpd-alloc_listener-failed-to-get-a-socket-for-null/

This is a xen VPS and the kernel version is 2.6.26-amd64. I am as of now unable to update the kernel because the provider needs to do part of that. I already sent a request but I don't know how long they will take.

Is there a way to get this to work until I have a chance to get the kernel updated?


Solution 1:

Did you tried this solution, found on ServerFault :

  • Apache in linux-vserver won't start, can't create socket

It's about to reinstall libapr1 on your system.

Cheers,

K.