我在win7系统上搭建了php+apache环境后!我修改了apache里的httpd.conf里的
# symbolic links and aliases may be used to point to other locations.
#
DocumentRoot "D:/php"
然后在浏览器输入http://localhost/打开是提示403禁止访问是什么原因呢?(我在php目录里面设置了个index.html页面的了)

解决方案 »

  1.   

    Deny from all
    改成
    Allow from all
      

  2.   

    确认 D:\php 有一般用户访问权
      

  3.   

    httpd.conf中:
    1、#--------------------------添加服务器名称---------------------
    ServerName localhost:802、#-------------------------------打开Apache的httpd.conf文件,增加默认首页-----------
    <IfModule dir_module>
        DirectoryIndex index.html,index.php
    </IfModule>3、#------------------加入浏览器识别的php文件类型
    AddType application/x-httpd-php .php .html .htm .vcgi .ini4、#------------------------加入php.ini文件的路劲提供apache加载
     PHPIniDir "d:/php/php_home"能想到的就这么多了。
      

  4.   

    在网上下载一个已经将Apcahe,mysql,php封装在一起的安装文件!解压下安装就不需要该任何的配置文件,多好,又不麻烦!!!!