【问题标题】:New xampp security concept: Access Forbidden Error 403 - Windows 7 - phpMyAdmin with latest version of xampp 7.2.12新的 xampp 安全概念:Access Forbidden Error 403 - Windows 7 - phpMyAdmin 与最新版本的 xampp 7.2.12
【发布时间】:2019-05-11 02:02:25
【问题描述】:

我已经在 Windows 7 Ultimate 上下载并安装了 XAMPP 7.2.12 for Windows。我已设置 XAMPP 以运行。

到目前为止一切顺利,我的 PHP 站点在本地运行,除了 phpMyAdmin 之外的所有内容都可以从 XAMPP 菜单中获得。

但是,当我尝试访问 phpMyAdmin 时出现此错误:

禁止访问!

新的 XAMPP 安全概念:

只能通过本地网络访问所请求的目录。

这个设置可以在“httpd-xampp.conf”文件中配置。

【问题讨论】:

标签: php windows phpmyadmin xampp


【解决方案1】:

更新您的 XAMPP 文件: Windows:C:\xampp\apache\conf\extra\httpd-xampp.conf

Alias /phpmyadmin "/xampp/phpMyAdmin/"
<Directory "/xampp/phpMyAdmin">
AllowOverride AuthConfig
- Require all granted
+ Require local
+ ErrorDocument 403 /error/XAMPP_FORBIDDEN.html.var
</Directory>

来源:https://www.apachefriends.org/blog/new_xampp_20160224.html

【讨论】:

    猜你喜欢
    • 2014-02-05
    • 2019-05-06
    • 2015-01-23
    • 2017-11-22
    • 2013-08-15
    • 2014-08-26
    • 2014-02-21
    • 2016-08-08
    • 2012-01-19
    相关资源
    最近更新 更多