找到php的配置文件httpd.conf(找不到的话看这篇:http://www.cnblogs.com/liulangmao/p/3569807.html)

在原有的位置文件中找到配置节

<Directory />Options FollowSymLinksAllowOverride NoneOrder deny,allowDeny from allSatisfy all
</Directory>

修改成

<Directory />Options FollowSymLinksAllowOverride NoneOrder deny,allow
#    Deny from all
    Allow from all#允许所有访问
    Satisfy all
</Directory>

还有

<Directory "D:/Wamp5/www">#
    # Possible values for the Options directive are "None", "All",# or any combination of:#   Indexes Includes FollowSymLinks SymLinksifOwnerMatch ExecCGI MultiViews#
    # Note that "MultiViews" must be named *explicitly* --- "Options All"# doesn't give it to you.#
    # The Options directive is both complicated and important.  Please see# http://httpd.apache.org/docs/2.2/mod/core.html#options# for more information.#
    Options Indexes FollowSymLinks#
    # AllowOverride controls what directives may be placed in .htaccess files.# It can be "All", "None", or any combination of the keywords:#   Options FileInfo AuthConfig Limit#
    AllowOverride all#
    # Controls who can get stuff from this server.#
#   onlineoffline tag - don't removeOrder Deny,AllowDeny from allAllow from 127.0.0.1</Directory>

修改成

<Directory "D:/Wamp5/www">#
    # Possible values for the Options directive are "None", "All",# or any combination of:#   Indexes Includes FollowSymLinks SymLinksifOwnerMatch ExecCGI MultiViews#
    # Note that "MultiViews" must be named *explicitly* --- "Options All"# doesn't give it to you.#
    # The Options directive is both complicated and important.  Please see# http://httpd.apache.org/docs/2.2/mod/core.html#options# for more information.#
    Options Indexes FollowSymLinks#
    # AllowOverride controls what directives may be placed in .htaccess files.# It can be "All", "None", or any combination of the keywords:#   Options FileInfo AuthConfig Limit#
    AllowOverride all#
    # Controls who can get stuff from this server.#
#   onlineoffline tag - don't removeOrder Deny,Allow
#    Deny from all#  Allow from 127.0.0.1
    Allow from all</Directory>

保存,重启服务,在访问就解决了这个问题。

Wamp错误: Forbidden You don't have permission to access / on this server.相关推荐

  1. Forbidden You don't have permission to access / on this server PHP

    Forbidden You don't have permission to access / on this server PHP 在新安装的谷歌游览器里,打不了PHP网站了,错误显示: Forbi ...

  2. Forbidden You don't have permission to access / on this server.解决方法

    wamap本地搭建完毕后,输入http://localhost/出现下面的问题 问题报错:Forbidden You don't have permission to access / on this ...

  3. thinkphp出现 Forbidden You don‘t have permission to access / on this server. Additionally, a 403 Forbi

    thinkphp出现 Forbidden You don't have permission to access / on this server. Additionally, a 403 Forbi ...

  4. 配置apache2.4时出现Forbidden You don't have permission to access / on this server. 问题解决方案

    安装完wampserver后,通过127.0.0.1或localhost访问网页可以正常访问: 但是通过其他电脑对服务器的公网ip地址进行访问,一直显示forbid....如图: 查阅博客帖子,发现这 ...

  5. 关于网站搭建外网访问出现的Forbidden You don't have permission to access / on this server. Additionally问题

    这个问题的一个根本原因是因为:swampserver默认访问的是www文件夹的站点,不允许访问其他的站点,我这次出现的原因是在之前的文件夹中又多生成了一层,所以出现了这个情况. 我的个人解决办法:因为 ...

  6. [备忘][转载]apache 403错误 You don't have permission to access on this server

    apache 403错误 You don't have permission to access on this server. 在配置好了Apache服务器后,测试已经通过了,但是通过浏览器访问lo ...

  7. Forbidden You don#39;t have permission to access / on this server.

    原文:Forbidden You don't have permission to access / on this server. Forbidden You don't have permissi ...

  8. 问题解决:Apache: You don't have permission to access / on this server

    虚拟主机(Virtual Host)是指在一个机器上运行多个网络站点 (比如:www.company1.com和www.company2.com). 如果每个网络站点拥有不同的IP地址,则虚拟主机可以 ...

  9. [乐意黎原创]访问Centos下Apache主机页面抛You don't have permission to access / on this server.

    Forbidden You don't have permission to access / on this server. Server unable to read htaccess file, ...

最新文章

  1. SpringSecurity-短信验证码接口开发
  2. 决策树准确率低原因_机器学习决策树算法--剪枝算法
  3. 程序员如何克服焦虑?
  4. 使用谷歌浏览器模拟微信(android或ios)浏览器
  5. 新款 Azure .NET SDK 如何设定 Content-Type
  6. 对于Algorand的介绍
  7. 从这十大算法开始学习机器学习与建模
  8. C语言小项目(画机器猫)
  9. 电脑向linux服务器传输文件,windows如何通过ssh工具向linux服务器上传和下载文件?...
  10. 在Silverlight中使用ESFramework-- ESFramework 4.0 快速上手(05)
  11. mvn jetty debug
  12. 套壳python_“完全自主设计、开发和实现”的编程语言,被指是Python的套壳产品?...
  13. 为什么有int 和integer
  14. js 获取元素文本_JS中获取元素属性的8大方法
  15. 跳舞毯行业调研报告 - 市场现状分析与发展前景预测
  16. 即时通讯系统集成开发
  17. 聚焦AWE2020 看小家电行业“风往哪吹”
  18. 在线查看word,excel,pdf文件解决
  19. 文件大小单位Bytes, KB, MB, GB, TB, PB等及换算关系,英语怎么说?
  20. win10系统 该文件没有与之关联的应用来执行该操作,请安装应用,若已经安装应用,请在“默认应用设计“页面中创建关联

热门文章

  1. 基于语义特征的网络舆情正负面监测
  2. 线程池源码分析之ThreadPoolExecutor
  3. Github中Octotastic day的含义
  4. 网络协议-补充(笔记)
  5. 滤波器方法(贝叶斯/EKF/UKF/ESKF/MSCKF)
  6. 帆软报表工程师FCRA试题及答案
  7. 查看并计算MySQL最大连接数
  8. 单片机原理及接口技术期末复习
  9. Markdown 编辑器
  10. BQ40Z80 7串电池应用方法