httpd DocumentRoot does not exist(SELinux 问题)

1)

出处: 这里

启动httpd时出现同样的问题,还以为自己权限没设好,或者是httpd.conf配置错了。

结果搜索了一下才知道,是SELinux捣鬼。 这玩意有用吗? 老是出来坏事。

解决:

setsebool -P httpd_disable_trans on

 

2)接着在ftp时又出现问题

226 Transfer done (but failed to open directory).

echo 0 > /selinux/enforce

暂时关闭 SeLinux

(编辑 /etc/selinux/config 设置成disabled, 可以永久关闭)

posted @ 2012-06-28 15:27  johnsonshu  阅读(355)  评论(0编辑  收藏  举报