Forbidden

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

修改php的配置文件httpd.conf。

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

<Directory />
    Options FollowSymLinks
    AllowOverride None
    Order deny,allow
    Deny from all
    Satisfy all
</Directory>

修改成

<Directory />
    Options FollowSymLinks
    AllowOverride None
    Order 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 remove
    Order Deny,Allow
    Deny from all
    Allow 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 remove
    Order Deny,Allow
#    Deny from all

#  Allow from 127.0.0.1
    Allow from all

</Directory>

Forbidden  You don't have permission to access /phpmyadmin/ on this server  解决办法

打开 XXX/wamp/alias/phpmyadmin.conf 文件,

<Directory "F:/Software/wamp/alias/phpmyadmin3.5.1/">
Options Indexes FollowSymLinks MultiViews
AllowOverride all
Order Deny,Allow
Deny from all
Allow from 127.0.0.1
</Directory>

修改成

<Directory "F:/Software/wamp/apps/phpmyadmin3.5.1/">
Options Indexes FollowSymLinks MultiViews
AllowOverride all
Order Deny,Allow
Allow from all
</Directory>

然后保存,重启服务,就OK了

最新文章

  1. 【AS3】Flash与后台数据交换四种方法整理
  2. python小打小闹之简陋版BBS
  3. Android网络编程之Socket
  4. C/C++堆栈指引(转)
  5. Activity小结
  6. MS sqlserver 获取某月某年的天数
  7. POJ 2991 Crane(线段树+计算几何)
  8. iOS学习 NSString常用技巧
  9. php 常用正则
  10. 【LeetCode】89.Gary Code
  11. vs2013+qt5.3.2+pcl1.8.0+osg2.3开发环境配置
  12. ArrayList创建步骤及基本方法
  13. [转]MySQL索引原理及慢查询优化
  14. Android WebView漏洞(转)
  15. createobjbyreplace(str,arr) js替换方法保存
  16. memcache使用方法测试
  17. 笔记:记录两个新接触的东东- required + placeholder
  18. mysql创建用户,并指定用户的权限(grant命令)
  19. rails中path、url路径解析,routes信息,form_for剖析,link_to示例,路由实例说明
  20. Bayes&#39; theorem (贝叶斯定理)

热门文章

  1. OpenJDK源码研究笔记(十):枚举的高级用法,枚举实现接口,竟是别有洞天
  2. 【Henu ACM Round #13 B】Spider Man
  3. 洛谷 P2684 搞清洁
  4. struts2学习笔记(7)---数据验证之validateXxx()方法
  5. KendoUi中KendoDropDownList控件的使用——三级级联模块的实现
  6. 操作系统 linux 内核的三种进程调度方法
  7. RISC-V指令集的诞生,&quot;V&quot;也表示变化(variation)和向量(vectors)
  8. 62.C++文件操作list实现内存检索,实现两千万数据秒查
  9. Js经典实例收集
  10. 手机端使用rem的适配