今天遇到的几个问题,记录一下

Posted by 机器人 on 8th 四月 2009 in linux/server

问题一
CentOS中,安装好apache后,更改根目录从/var/www/html改成/home/search/www3.x
DocumentRoot must be a directory
但/home/search/www.3.x确定存在
解决方案
system-config-securitylevel (or redhat-config-securitylevel) to
disable SELinux for httpd or give SELinux permissions to that
directory:
chcon -R -h -t httpd_sys_content_t /path/to/directory

问题二
使用yum时,出现
Could not retrieve mirrorlistCould not retrieve mirrorlist
原因,域名不能解析,需要设DNS
解决方案
修改/etc/resolv.conf,增加
nameserver XXX.XXX.XXX.XXX

参考:
http://www.issociate.de/board/goto/695908/I_have_an_error_message_%22DocumentRoot_must_be_a_directory%22.html
http://blog.sina.com.cn/s/indexlist_1340543943_2.html

机器人 2009-04-09 19:33  于 北京

分享到: 新浪微博

One Response to “今天遇到的几个问题,记录一下”

  1. 小黑米 说:

    我也遇到差不多的问题 SELinux锁了.so的库

Leave a Reply