博客
关于我
强烈建议你试试无所不能的chatGPT,快点击我
WampServer phpadmin apache You don't have permission to access
阅读量:5064 次
发布时间:2019-06-12

本文共 2128 字,大约阅读时间需要 7 分钟。

1、Forbidden

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

后来咨询了一下朋友(php高手),说修改一下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
    # 
    # 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
    # 
    # 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>

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

 

2、You don't have permission to access /phpmyadmin/main.php on this server.

  在 phpmyadmin 文件夹中找到 phpmyadmin.conf

修改如下:

 

转载于:https://www.cnblogs.com/sprinng/p/3601239.html

你可能感兴趣的文章
Linux centos 主机名颜色设置 和 别名设置
查看>>
jquery自己主动旋转的登录界面的背景代码登录页背景图
查看>>
(64位oracle使用32位的PLSQL)安装64位的oracle数据库软件,使用32位的PLSQL Developer连接方法...
查看>>
JavaScipt面向对象编程----闭包
查看>>
ajax异步通讯 遮罩滚动栏,防止并发及误操作
查看>>
Cocos2d-x项目移植到WP8小记
查看>>
如何在 Mac 上卸载 Java?
查看>>
数据库命名规范(转)
查看>>
Asp.Net 数据分页
查看>>
进程相关(进程Id获取主窗口)
查看>>
《Windows核心编程》学习笔记(9)– 在win7或者vista系统下提升一个进程的运行权限...
查看>>
ubuntu 的远程桌面
查看>>
八月22日,django知识点总结:
查看>>
搜索引擎的选择—百度还是谷歌?
查看>>
前端经典面试题之CSS实现三栏布局,左右宽度固定,中间宽度自适应
查看>>
推荐9部让你看到酣畅淋漓的复仇电影
查看>>
[WPF]WPF开发方法论
查看>>
【转】先说IEnumerable,我们每天用的foreach你真的懂它吗?
查看>>
springboot web 服务器选择
查看>>
【带流程眼镜的思考】消除“等待”就是提高效率
查看>>