站长网 Linux linux – 升级到wheezy apache后无法启动

linux – 升级到wheezy apache后无法启动

我已经从lenny升级到wheezy,现在apache无法启动: # /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 /e

我已经从lenny升级到wheezy,现在apache无法启动:

# /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!

ports.conf的第17行当然是正确的:

# 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>

看起来它与我正在运行的内核中不存在的一些内核调用有关:http://major.io/2009/08/14/fedora-11-httpd-alloc_listener-failed-to-get-a-socket-for-null/

这是一个xen VPS,内核版本是2.6.26-amd64.我现在无法更新内核,因为提供程序需要执行其中的一部分.我已经发出了请求,但我不知道他们会花多长时间.

有没有办法让这个工作,直到我有机会更新内核?

解决方法

您是否尝试过在ServerFault上找到的此解决方案:

> Apache in linux-vserver won’t start,can’t create socket

它将在您的系统上重新安装libapr1.

干杯,

K.

本文来自网络,不代表站长网立场,转载请注明出处:https://www.tzzz.com.cn/html/server/linux/2021/0522/3828.html

作者: dawei

【声明】:站长网内容转载自互联网,其相关言论仅代表作者个人观点绝非权威,不代表本站立场。如您发现内容存在版权问题,请提交相关链接至邮箱:bqsm@foxmail.com,我们将及时予以处理。
联系我们

联系我们

0577-28828765

在线咨询: QQ交谈

邮箱: xwei067@foxmail.com

工作时间:周一至周五,9:00-17:30,节假日休息

返回顶部