【问题标题】:Apache won't start after memcache installation安装 memcache 后 Apache 无法启动
【发布时间】:2012-03-10 11:57:18
【问题描述】:

我在我的 Ubuntu 10.04 机器上安装了 memcache,但是在重新启动 apache 时它给了我一个错误。我的主根目录是 /var/www/,里面只有 index.php 文件。

在安装 memcache 之前一切正常。

This is what I did.

请帮忙

错误:

myubuntu@ubuntu:~$ service apache2 restart
 * Restarting web server apache2                                                                                                                              (13)Permission denied: make_sock: could not bind to address 0.0.0.0:80
no listening sockets available, shutting down
Unable to open logs
Action 'start' failed.
The Apache error log may have more information.

APACHE 日志:

myubuntu@ubuntu:~$ tail -f  /var/log/apache2/error.log
[Sun Mar 04 14:04:45 2012] [notice] Apache/2.2.16 (Ubuntu) PHP/5.3.3-1ubuntu9.10 with Suhosin-Patch configured -- resuming normal operations
[Sun Mar 04 18:54:35 2012] [notice] caught SIGTERM, shutting down
[Wed Mar 07 20:32:59 2012] [notice] Apache/2.2.16 (Ubuntu) PHP/5.3.3-1ubuntu9.10 with Suhosin-Patch configured -- resuming normal operations
[Wed Mar 07 21:01:57 2012] [notice] caught SIGTERM, shutting down
[Fri Mar 09 22:20:06 2012] [notice] Apache/2.2.16 (Ubuntu) PHP/5.3.3-1ubuntu9.10 with Suhosin-Patch configured -- resuming normal operations
[Sat Mar 10 01:45:00 2012] [notice] caught SIGTERM, shutting down
[Sat Mar 10 10:58:24 2012] [notice] Apache/2.2.16 (Ubuntu) PHP/5.3.3-1ubuntu9.10 with Suhosin-Patch configured -- resuming normal operations
[Sat Mar 10 11:16:49 2012] [error] [client ::1] File does not exist: /var/www/favicon.ico
[Sat Mar 10 11:16:49 2012] [error] [client ::1] File does not exist: /var/www/favicon.ico

【问题讨论】:

    标签: apache memcached


    【解决方案1】:

    你必须是root。您可能希望在启动 Apache 时使用 sudo

    【讨论】:

    • 天啊。对我来说仍然是早晨。解决了。谢谢。 myubuntu@ubuntu:~$ sudo /etc/init.d/apache2 restart
    猜你喜欢
    • 2015-05-30
    • 1970-01-01
    • 2023-03-28
    • 1970-01-01
    • 2013-06-20
    • 1970-01-01
    • 2017-06-16
    • 1970-01-01
    • 2011-11-16
    相关资源
    最近更新 更多