关键字:
XAMPP
phpmyadmin
access forbidden
httpd-xampp.conf”.
背景信息
文章目录
背景信息
软件版本:
现象:
解决方法
参考
软件版本:
win10
XAMPP 7.4.3

现象:
局域网中其他设备不能访问安装XAMPP的网站。
比如在电脑A的虚拟机B安装XAMPP后,A和B在同一网段,A能输入B的ip地址能访问首页,但是不能访问phpmyadmin。或者是在电脑A安装XAMPP后,与其连接在同一路由器下的其他设备(手机,电脑)不能访问
显示
Acces forbidden
New XAMPP security concept:
Access to the requested object is only available from the local network.
This setting can be configured in the file “httpd-xampp.conf”.

解决方法
This setting can be configured in the file “httpd-xampp.conf”.
说是配置 httpd-xampp.conf 文件就可以
这个文件具体在
x:\xampp\apache\conf\extra
用记事本或者其他文本编辑器打开该配置文件

因为我的问题是打不开phpmyadmin,所以就搜索一下phpmyadmin关键字。
红框里就是有关phpmyadmin的配置信息
将图里的93行
Require local
修改为
Require all granted
保存文件

重启apache服务(stop再start)
然后就可以正常访问了
————————————————
版权声明:本文为CSDN博主「petrel2015」的原创文章,遵循CC 4.0 BY-SA版权协议,转载请附上原文出处链接及本声明。
原文链接:https://blog.csdn.net/petrel2015/article/details/105022596