XAMPP Access forbidden! Access to the requested directory is only available from the local network.

问题:安装XMAPP启动后进入 phpmyadmin页面报错。

Access forbidden!


New XAMPP security concept:

Access to the requested directory is only available from the local network.

This setting can be configured in the file "httpd-xampp.conf".

解决办法:

step1 找到httpd-xampp.conf文件,

step2 找到<Directory "/opt/lampp/phpmyadmin">节点,将节点内容替换为下面代码。

<Directory "/opt/lampp/phpmyadmin">
    AllowOverride AuthConfig Limit
    Order allow,deny
    Allow from all
    Require all granted
</Directory>

step3 保存,并重新启动。即可解决。

原文地址:https://www.cnblogs.com/chocolatexll/p/13755054.html