环境:PHP5  IIS6我的.php页面打不开,浏览器提示错误(如题)网上查了一圈,都说是文件夹权限的问题,但是我的网站文件夹权限已经设置了,guests组 users组 IUSER_计算机名用户啥的都给权限了,还是不行。哪位高人给解解~~在线等!完美解决后追加,顶者有份~

解决方案 »

  1.   

    web服务扩展设定了 匿名登录设定了 能想到的都做了 也不行
      程序就一句<?phpinfo();?>同目录下的html文件也访问不了
      

  2.   

    W3C 对 401 的定义.
    401 Unauthorized
    The request requires user authentication. The response MUST include a WWW-Authenticate header field (section 14.47) containing a challenge applicable to the requested resource. The client MAY repeat the request with a suitable Authorization header field (section 14.8). If the request already included Authorization credentials, then the 401 response indicates that authorization has been refused for those credentials. If the 401 response contains the same challenge as the prior response, and the user agent has already attempted authentication at least once, then the user SHOULD be presented the entity that was given in the response, since that entity might include relevant diagnostic information. HTTP access authentication is explained in "HTTP Authentication: Basic and Digest Access Authentication". 
    再次检查授权.
      

  3.   

    同目录下的html文件也访问不了
    -----------------------------IIS6配置不正确?
      

  4.   

    还是换成apache, php配iis简直就是噩梦
      

  5.   

    环境:win2003  PHP5  IIS6 phpinfo.php页面打不开(代码就一句<? phpinfo();?>)
    浏览器提示  HTTP 错误 401.1  网上查了一圈,都说是文件夹权限的问题,但是我的网站文件夹、phpinfo.php文件甚至整个盘符的权限都已经设置了,guests组 users组 IUSER_计算机名用户啥的都给权限了,本地安全策略里也把从网络访问的用户和组都添加了,还是不行。哪位高人给解解~~ 
      

  6.   


    这些都设置了  php.ini文件权限也给了
      

  7.   

    访问一个空的html也提示这个错误
      

  8.   

    IIS配置不正确
    站点-》属性-》目录安全性-》身份验证和访问控制-》勾选启用匿名访问,请确保用户名和密码正确,并且确保用户名有权限读取网站目录。