的httpd将不会启动,没有错误 [英] httpd won't start and no error

查看:102
本文介绍了的httpd将不会启动,没有错误的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

当我运行

的httpd将不会启动:
服务的httpd启动服务的httpd重新启动

我不从除了得到错误[失败] 红色位。

的/ var /日志/的httpd / error_log中是空的。

/无功/日志/邮件具有如下一行:

  11月15日13时23分06秒本地主机内核:审计(1384521786.787:32):AVC:否认{} name_bind的PID = 31935 COMM =htt​​pd的SRC = 8000 scontext =根:system_r:httpd_t:S0 = tcontext system_u:object_r:soundd_port_t:S0 = tclass TCP_SOCKET

任何想法,为什么它不会启动或任何解决方案?

在这看着:阿帕奇无法启动,但没有显示错误

我还没有重新启动系统尚未虽然这是最后的选择。

感谢

  [根@本地〜]#的httpd -v
服务器版本:阿帕奇/ 2.2.3
Server内置:2006年9月11日9时43分○○秒[根@本地〜]#服务的httpd状态
httpd的停止


解决方案

从消息 /无功/日志/邮件看起来像SELinux的是。

尝试: getenforce ,它报告了SELinux是否被强制执行,许可或禁止。

如果它在执行 0 setenforce 来看看这是什么导致了问题。

如果它真的是SELinux的,你应该设置适当的设置,并重新激活它;-)
此外,通过使用旋转关闭SELinux的 0 setenforce ,只持续到下次重新启动!
永久关闭它通过改变 SELINUX =执行 SELINUX =许可的/ etc / SELinux的/配置


我的第二个猜测是iptables的/ firewalld阻止端口为httpd。

httpd won't start when I run: service httpd start or service httpd restart

I don't get error apart from [FAILED] bit in red.

/var/log/httpd/error_log is empty.

/var/log/message has line below:

Nov 15 13:23:06 localhost kernel: audit(1384521786.787:32): avc:  denied  { name_bind } for  pid=31935 comm="httpd" src=8000 scontext=root:system_r:httpd_t:s0 tcontext=system_u:object_r:soundd_port_t:s0 tclass=tcp_socket

Any idea why it won't start or any solution?

Looked at this: Apache wont start but shows no errors

I haven't rebooted the system yet though which is last option.

Thanks

[root@localhost ~]# httpd -v
Server version: Apache/2.2.3
Server built:   Sep 11 2006 09:43:00

[root@localhost ~]# service httpd status
httpd is stopped

解决方案

The message from /var/log/message looks like SELinux is on.

Try: getenforce, it reports whether SELinux is enforcing, permissive, or disabled.

If it's on enforcing, setenforce 0 to see if that's whats causing the problem.

If it realy was SELinux you should set the proper settings and reactivate it ;-) Also turning SELinux off by using setenforce 0, only lasts until the next reboot! Permanently turning it off by changing SELINUX=enforcing to SELINUX=permissive in /etc/selinux/config.


My second guess would be that iptables/firewalld is blocking the port for httpd.

这篇关于的httpd将不会启动,没有错误的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆