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

问题一
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  于 北京

此条目发表在 linux/server 分类目录,贴了 , , , 标签。将固定链接加入收藏夹。

今天遇到的几个问题,记录一下》有 6 条评论

  1. 小黑米 说:

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

  2. You really make it seem so easy with your presentation however I to find this topic to be actually something which I believe I’d by no means understand. It kind of feels too complex and extremely wide for me. I am having a look forward on your next publish, I will try to get the hang of it!

  3. Janae Kukura 说:

    so last night I saw you were talking about this but didnt pay attention until I saw it on the news this morning. Crazy stuff eh?

  4. I am 69 years old and I was searching for this and final i find here. This is just awesome site and article based or true handwork. Thanks for sharing with us.

  5. Pingback 引用通告: fuck google

  6. Pingback 引用通告: aglatma

发表评论

电子邮件地址不会被公开。 必填项已用*标注

您可以使用这些HTML标签和属性: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>