文章详情

  • 游戏榜单
  • 软件榜单
关闭导航
热搜榜
热门下载
热门标签
php爱好者> php文档>解决httpd.conf: DocumentRoot must be a directory

解决httpd.conf: DocumentRoot must be a directory

时间:2006-04-08  来源:cnscn2008

今天在Fedora上做一個簡單不過的設定,更改httpd.conf裡面DocumentRoot 然後重新啟動httpd的時後發生了問題,Error Message為

DocumentRoot must be a directory

這是我修改DocumentRoot從未發生的問題

解法from google:

原因是使用了SELinux, 可以禁止使用SELinux

运行 system-config-securitylevel (或 redhat-config-securitylevel) 来禁止对http的SELinux 设置或给新路径设置SELinux权限:

chcon -R -h -t httpd_sys_content_t  /home/www/html


This happens if you have a 2.6 linux kernel, or RHEL 4 likes.

More help at: http://fedora.redhat.com/docs/selinux-faq-fc3/index.html

相关阅读 更多 +
排行榜 更多 +
宝宝切水果安卓版

宝宝切水果安卓版

休闲益智 下载
火柴人大战2023

火柴人大战2023

策略塔防 下载
希望之城僵尸

希望之城僵尸

策略塔防 下载