从 12.10 升级到 13.10/14.04 后出现 Apache 问题

从 12.10 升级到 13.10/14.04 后出现 Apache 问题

我刚刚将我的服务器升级到 Ubuntu 14.04.2。之前我已根据 12.10 版的“完美服务器”指南进行了配置。

不幸的是,升级后我无法访问任何以前可以正常使用的网站。服务器使用的是 ISPConfig,因此在升级到 14.04 后,我进行了手动更新,重新配置了权限和服务,但出现了以下错误

* Restarting web server apache2
AH00548: NameVirtualHost has no effect and will be removed in the next release /etc/apache2/conf-enabled/000-ispconfig.local.conf:62
(98)Address already in use: AH00072: make_sock: could not bind to address [::]:8081
(98)Address already in use: AH00072: make_sock: could not bind to address 0.0.0.0:8080
no listening sockets available, shutting down
AH00015: Unable to open logs
Action 'start' failed.
The Apache error log may have more information.

而 apache error.log 列出以下内容:

[Thu Mar 12 10:18:10.301329 2015] [auth_digest:notice] [pid 3215] AH01757: generating secret for digest authentication ...
[Thu Mar 12 10:18:10.319274 2015] [:notice] [pid 3220] FastCGI: process manager initialized (pid 3220)
[Thu Mar 12 10:18:10.586557 2015] [:notice] [pid 3215] mod_python: Creating 8 session mutexes based on 150 max processes and 0 max threads.
[Thu Mar 12 10:18:10.586612 2015] [:notice] [pid 3215] mod_python: using mutex_directory /tmp
[Thu Mar 12 10:18:10.687388 2015] [mpm_prefork:notice] [pid 3215] AH00163: Apache/2.4.7 (Ubuntu) mod_fastcgi/mod_fastcgi-SNAP-0910052141 PHP/5.5.9-1ubuntu4.6 mod_python/3.3.1 Python/2.7.6 OpenSSL/1.0.1f configured -- resuming normal operations
[Thu Mar 12 10:18:10.687465 2015] [core:notice] [pid 3215] AH00094: Command line: '/usr/sbin/apache2'
[Thu Mar 12 10:21:31.520361 2015] [mpm_prefork:notice] [pid 3215] AH00169: caught SIGTERM, shutting down

你能帮我想个办法摆脱这个困境吗?

谢谢你!

答案1

您尝试绑定的端口上似乎已在运行某些程序。那是什么程序?恐怕您得自己找出答案。netstat 命令可能对您有所帮助。尝试 netstat -nap | grep 8080(或 8081)以找出哪个进程正在使用此端口。

相关内容