Debug School

rakesh kumar
rakesh kumar

Posted on

Access forbidden! 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”.

Step 1 – First validate if phpmyadmin is running and accessible locally.
curl http://localhost/phpmyadmin/

Step 2 – Locate httpd-xampp.conf in your Server

root@ip-172-31-20-213:/opt/lampp# cd /opt/lampp
root@ip-172-31-20-213:/opt/lampp# find . -name httpd-xampp.conf
Step 3 – Modify httpd-xampp.conf with required permission.

vi ./etc/extra/httpd-xampp.conf

since XAMPP 1.4.3

<Directory "/opt/lampp/phpmyadmin">
AllowOverride AuthConfig Limit
Order deny,allow
Allow from all
Allow from ::1 \
fc00::/7 \
ErrorDocument 403 /error/XAMPP_FORBIDDEN.html.var
Require all granted
Enter fullscreen mode Exit fullscreen mode

Top comments (0)