1、找不到 httpd-xampp.conf 的話,locate httpd-xampp.conf

/opt/lampp/etc/extra/httpd-xampp.conf

2、Don’t change <Directory “/opt/lampp/phpmyadmin”>

Change <LocationMatch “^/(?i:(?:xampp|security|licenses|phpmyadmin|webalizer|server-status…………

<LocationMatch “^/(?i:(?:xampp|security|licenses|phpmyadmin|webalizer|server-status|server-info))">
    #Require local
    Require all granted
    Order deny,allow
    Deny from all
    Allow from ::1 127.0.0.0/8 192.168.0.0/8 xxx.ooo.xxx.ooo/24
    ErrorDocument 403 /error/XAMPP_FORBIDDEN.html.var

3、sudo /opt/lampp/lampp restart