3

我正在尝试在全新的 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_pythonandwsgi模块,但 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
4

1 回答 1

4

通过键入禁用模块sudo a2dismod python

然后你应该看到这个:

模块 python 已禁用。要激活新配置,您需要运行: service apache2 restart

所以输入sudo service apache2 restart

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

于 2016-11-01T00:39:44.503 回答