XAMPP是一个易于安装的Apache发行版,其中包含MariaDB、PHP和Perl。仅仅需要下载并启动安装程序。就这么简单。
访问phpmyadmin发现无法用IP访问:
New XAMPP security concept
或者
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”.
If you think this is a server error, please contact the webmaster.
解决办法:
输入命令:
打开/opt/lampp/etc/extra/httpd-xampp.conf文件
找到如下代码:
<Directory "/opt/lampp/phpmyadmin">
AllowOverride AuthConfig Limit
Require local
ErrorDocument 403 /error/XAMPP_FORBIDDEN.html.var
</Directory>
将它改为
<Directory "/opt/lampp/phpmyadmin">
AllowOverride AuthConfig Limit
Allow from all
Require all granted
ErrorDocument 403 /error/XAMPP_FORBIDDEN.html.var
</Directory>
最后重启XAMPP即可。
原创文章,作者:ItWorker,如若转载,请注明出处:https://blog.ytso.com/180287.html