2012-03-10 100 views
1

我在我的Ubuntu 10.04机器上安装了memcache,但是当涉及到重新启动apache时,它给了我一个错误。我的主要根目录是/var/www/,其中只有index.php文件。安装memcache后Apache无法启动

在安装memcache之前一切正常。

This is what I did.

请帮助

错误:

[email protected]:~$ 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日志:

[email protected]:~$ 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 

回答

1

你必须要根。启动Apache时,您可能想要使用sudo。 OMG。

+0

OMG。对我来说,这仍然是早晨。解决了。谢谢。 myubuntu @ ubuntu:〜$ sudo /etc/init.d/apache2 restart – BentCoder 2012-03-10 12:17:08