【问题标题】:Installing Cobbler on Ubuntu 15.10 seems to break apache, how can I fix this?在 Ubuntu 15.10 上安装 Cobbler 似乎破坏了 apache,我该如何解决这个问题?
【发布时间】:2016-02-25 22:50:54
【问题描述】:

我正在尝试在全新的 Ubuntu 15.10 虚拟机上安装 Cobbler,但它无法正常工作。当我运行apt-get install cobbler cobbler-web 时,它似乎完全破坏了 apache,以至于我无法让它再次工作。

我在 apache 错误日志中看到了这一点:

[wsgi:crit] [pid 8112:tid 140273573488512] mod_wsgi (pid=8112): The mod_python module can not be used on conjunction with mod_wsgi 4.0+. Remove the mod_python module from the Apache configuration.

这在auth.log:

polkitd(authority=local): Unregistered Authentication Agent for unix-process:8081:54865 (system bus name :1.24, object path /org/freedesktop/PolicyKit1/AuthenticationAgent, locale en_US.UTF-8) (disconnected from bus)

我已尝试删除 mod_pythonwsgi 模块,但 apache 仍然无法启动。而且我认为 Cobbler 无论如何都会使用它们,所以我有点需要它们。

我也尝试过禁用 polkitd。搜索那个奇怪的错误信息时,我没有找到任何线索。

我能够非常轻松地在 Ubuntu 14.04 上安装 Cobbler,并且 apache 工作正常。

这是我使用的基本安装命令链:

apt-get update
apt-get install apache2
apt-get install isc-dhcp-server
apt-get install bind9 bind9utils bind9-doc
apt-get install cobbler cobbler-web debmirror mkisofs

【问题讨论】:

  • 仅供参考,我最终恢复到旧版本的 Ubuntu,它工作正常。
  • 我在 Ubuntu 16.04 LTS 上看到了同样的问题。
  • 截至目前,有没有其他解决方案?除了更改 Ubuntu 版本。我也在 16.04 面临这个问题。
  • 尝试从github.com/GrahamDumpleton/mod_wsgi/releases?after=4.2.0.| 下载 mod_wsgi(3.5 版)使用 make 构建并查看。

标签: apache mod-wsgi mod-python ubuntu-15.10 cobbler


【解决方案1】:

输入sudo a2dismod python禁用模块

你应该会看到这个:

模块 python 已禁用。要激活新配置,您需要 运行:服务 apache2 重启

所以输入sudo service apache2 restart

如果这不能解决问题,请通过键入检查错误日志以获取更多信息 cat /var/log/apache2/error.log.

【讨论】:

  • 我使用的是 Ubuntu 16.04.1 LTS。这个解决方案对我有用。
猜你喜欢
  • 1970-01-01
  • 1970-01-01
  • 2020-06-24
  • 2023-01-03
  • 2017-12-27
  • 1970-01-01
  • 2023-02-04
  • 2020-12-28
  • 1970-01-01
相关资源
最近更新 更多