+ -
当前位置:首页 → 问答吧 → apache启动出现the requset operation has failed

apache启动出现the requset operation has failed

时间:2009-12-16

来源:互联网

解决方案(仅供参考):

从dos下面进入$apache_home/bin目录下面输入下面命令:
httpd.exe  -w -n "apache2" -k start可以查看出出错的地方!
其中apache2是计算机上apache服务器的名称!可以从右击我的电脑选择服务里面看到!
原来是DocumentRoot的路径不正确!设置好了路径,但是从浏览器访问说没有权限访问!:修改如下:
找到DocumentRoot "C:/Program Files/Apache Software Foundation/Apache2.2/htdocs",修改成Web文件的存放路径,如我的Web文件存放在F:/WebRoot目录下,就修改成:
DocumentRoot "F:/WebRoot"
找到<Directory "C:/Program Files/Apache Software Foundation/Apache2.2/htdocs">,修改成Web文件的存放路径,跟上面的路径相同,修改成:
<Directory "F:/WebRoot">
找到DirectoryIndex index.html,添加index.php:
DirectoryIndex index.html index.php

作者: zhoulian   发布时间: 2009-12-16

热门下载

更多