[英]Installing Cobbler on Ubuntu 15.10 seems to break apache, how can I fix this?
I am trying to install Cobbler on a brand new Ubuntu 15.10 virtual box but it is not working. 我正在尝试在一个全新的Ubuntu 15.10虚拟盒上安装Cobbler,但它无法正常工作。 When I run the
apt-get install cobbler cobbler-web
it seems to break apache completely to the point I can't get it working again. 当我运行
apt-get install cobbler cobbler-web
,似乎完全打破了apache,我无法让它再次运行。
I see this in the apache error log: 我在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.
and this in the auth.log
: 这在
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)
I have tried removing the mod_python
and wsgi
modules but apache still doesn't start up. 我试过删除
mod_python
和wsgi
模块但是apache仍然无法启动。 And I think Cobbler uses them anyways, so I kind of need them. 而且我认为Cobbler无论如何都会使用它们,所以我有点需要它们。
I have also tried disabling polkitd. 我也试过禁用polkitd。 I don't find any clues when searching for that weird error message.
在搜索那个奇怪的错误消息时,我没有找到任何线索。
I was able to install Cobbler on Ubuntu 14.04 pretty easily and apache works fine. 我能够很容易地在Ubuntu 14.04上安装Cobbler并且apache工作正常。
Here is the basic chain of install commands I used: 这是我使用的基本安装命令链:
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
Disable the module by typing sudo a2dismod python
键入
sudo a2dismod python
禁用该模块
You should then see this: 你应该看到这个:
Module python disabled.
模块python已禁用。 To activate the new configuration, you need to run: service apache2 restart
要激活新配置,您需要运行:service apache2 restart
So type sudo service apache2 restart
. 所以输入
sudo service apache2 restart
。
If that doesn't fix it, check the error log for more information by typing cat /var/log/apache2/error.log
. 如果这不能解决问题,请通过键入
cat /var/log/apache2/error.log
来检查错误日志以获取更多信息。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.