免费注册 查看新帖 |

Chinaunix

  平台 论坛 博客 文库
最近访问板块 发新帖
查看: 66933 | 回复: 57

[Web] 让我无话可说的问题(apache) [复制链接]

论坛徽章:
0
发表于 2005-06-18 22:17 |显示全部楼层
[root@master www]# service httpd start
Starting httpd: Syntax error on line 265 of /etc/httpd/conf/httpd.conf:
DocumentRoot must be a directory
                                                           [FAILED]
[root@master www]# cat /etc/httpd/conf/httpd.conf |grep DocumentRoot
# DocumentRoot: The directory out of which you will serve your
DocumentRoot "/var/www/html"
# This should be changed to whatever you set DocumentRoot to.
#    DocumentRoot /www/docs/dummy-host.example.com

[root@master www]# ls -l /var/www/
total 12
drwxrwxrwx  33 root root 5120 May 11 15:53 cgi-bin
drwxrwxrwx  17 root root 1024 Jun 18 22:04 html
drwxrwxrwx   3 root root 1024 Jan 13 15:44 non-cgi
drwxrwxrwx   3 root root 1024 Nov 20  2004 var

论坛徽章:
0
发表于 2005-06-18 22:18 |显示全部楼层

让我无话可说的问题(apache)

Starting httpd: Syntax error on line 265 of /etc/httpd/conf/httpd.conf

让我无法回答的问题。。。。。

论坛徽章:
0
发表于 2005-06-18 22:18 |显示全部楼层

让我无话可说的问题(apache)

[root@master www]# cat /etc/httpd/conf/httpd.conf |grep DocumentRoot
# DocumentRoot: The directory out of which you will serve your
DocumentRoot "/var/www/html"
# This should be changed to whatever you set DocumentRoot to.
#    DocumentRoot /www/docs/dummy-host.example.com

论坛徽章:
1
荣誉版主
日期:2011-11-23 16:44:17
发表于 2005-06-18 22:32 |显示全部楼层

让我无话可说的问题(apache)

  1. ls -l /var/www
复制代码

论坛徽章:
0
发表于 2005-06-18 22:38 |显示全部楼层

让我无话可说的问题(apache)

楼上的 ! 你故意灌水呀    !! 什么意思 ,我还晕者呢

论坛徽章:
0
发表于 2005-06-18 23:01 |显示全部楼层

让我无话可说的问题(apache)

人家是在帮你,你竟然还不领情,晕。。。。

论坛徽章:
0
发表于 2005-06-18 23:15 |显示全部楼层

让我无话可说的问题(apache)

 明白了 , 谢谢你帮我顶一下 !!

论坛徽章:
1
荣誉版主
日期:2011-11-23 16:44:17
发表于 2005-06-18 23:16 |显示全部楼层

让我无话可说的问题(apache)

明白啥,偶的意思是让你检查一下/var/www/html是文件还是目录

用ls -l看看

论坛徽章:
0
发表于 2005-06-18 23:23 |显示全部楼层

让我无话可说的问题(apache)

 我上面不是有吗? 晕 !!
drwxrwxrwx  17 root root 1024 Jun 18 22:04 html

论坛徽章:
1
荣誉版主
日期:2011-11-23 16:44:17
发表于 2005-06-18 23:31 |显示全部楼层

让我无话可说的问题(apache)

没看到,不好意思。看起来是有点问题
cat /etc/httpd/conf/httpd.conf |grep -n DocumentRoot

看看是不是第265行,如果是,建议删除重写。 还不行,那一定真的无话可说了
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

北京盛拓优讯信息技术有限公司. 版权所有 京ICP备16024965号-6 北京市公安局海淀分局网监中心备案编号:11010802020122 niuxiaotong@pcpop.com 17352615567
未成年举报专区
中国互联网协会会员  联系我们:huangweiwei@itpub.net
感谢所有关心和支持过ChinaUnix的朋友们 转载本站内容请注明原作者名及出处

清除 Cookies - ChinaUnix - Archiver - WAP - TOP