遠程訪問phpmyadmin的時候出現錯誤php
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".
意思是xampp的安全配置只容許本地網絡的訪問請求,須要配置httpd-xampp.conf,打開這個文件,找到 html
<LocationMatch "^/(?i:(?:xampp|security|licenses|phpmyadmin|webalizer|server-status|server-info))">
註釋掉裏面的web
# Require local
若是沒有,就在最後添加下面這段配置文件,這個是最省事兒的辦法(還有一種方法,見方法二,下面的方法都是創建在沒有找到上面的配置文件的狀況下的)安全
方法一:網絡
# # New XAMPP security concept # <LocationMatch "^/(?i:(?:xampp|security|licenses|phpmyadmin|webalizer|server-status|server-info))"> Order deny,allow #Deny from all Allow from ::1 127.0.0.0/8 \ fc00::/7 10.0.0.0/8 172.16.0.0/12 192.168.0.0/16 \ fe80::/10 169.254.0.0/16 ErrorDocument 403 /error/XAMPP_FORBIDDEN.html.var </LocationMatch>
方法二:ide
找到ui
<Directory "D:/xampp/phpmyadmin"> AllowOverride AuthConfig Require all granted </Directory>
修改成spa
<Directory "D:/xampp/phpmyadmin"> AllowOverride AuthConfig Allow from all Require all granted </Directory>