Xampp中phpmyadmin无法访问解决办法

Zss 发表于:

报错:Access to the requested object is only available from the local network. This setting can be configured in the file “httpd-xampp.conf”.

1)打开  vim /opt/lampp/etc/extra/httpd-xampp.conf

2)找到 <Directory "/opt/lampp/phpmyadmin">

3)现在只需添加Require all grant

4)所以代码看起来像这样
<Directory "/opt/lampp/phpmyadmin">
AllowOverride AuthConfig Limit
Order allow,deny
Allow from all
Require all granted
</Directory>

5)现在最后使用此命令/ opt / lampp / lampp restart重新启动xampp

就是这样,你就完成了!

它也适用于xampp