Access to the phpmyadmin is only available from the lo

Problems with the Windows version of XAMPP, questions, comments, and anything related.

Access to the phpmyadmin is only available from the lo

Postby annywang » 21. May 2017 16:40

When I try to access an phpMyAdmin of xampp in another pc using ip address I get this error:

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".


I had google the problem for this, and found that some people suggest to modify <LocationMatch> block like this:

<LocationMatch "^/(?i(?:xampp|security|licenses|phpmyadmin|webalizer|server-status|server-info))">
Order deny,allow
Allow from all
ErrorDocument 403 /error/XAMPP_FORBIDDEN.html.var

However, my "httpd-xampp.conf". did not contain this block,

Would anyone could give me some direction of how to fix the problem? Thank you.!
Posts: 1
Joined: 21. May 2017 16:36
XAMPP version: v3.2.2
Operating System: windeo server 2007

Re: Access to the phpmyadmin is only available from the lo

Postby Nobbie » 21. May 2017 19:59

First of all: it is NOT a problem, it is intentionally configured to protect your phpmyadmin folder from intruders. If you know what you are doing (i seriously doubt that), you can remove that protection. In httpd-xampp.conf the directory phpmyadmin is configured as:

Code: Select all
# since XAMPP 1.4.3
<Directory "/opt/lampp/phpmyadmin">
    AllowOverride AuthConfig Limit
    Require local
    ErrorDocument 403 /error/XAMPP_FORBIDDEN.html.var

If you know how to configure Apache, you know that "Require local" is responsible for the current behaviour. Replace it by a Require clause of your choice (i.e. Require all granted).

You may also simply install your own PhpMyAdmin into any subfolder of /opt/lampp/htdocs (for example /opt/lampp/htdocs/PMA or so) and call it via http://localhost/PMA, this folder is not protected by the Xampp default configuration. Remember anyway, that Xampp is meant for localhost development only and not for production environment. If someone from outside can reach your PhpMyAdmin, you will loose all your databases quickly.
Posts: 11620
Joined: 09. March 2008 13:04

Return to XAMPP for Windows

Who is online

Users browsing this forum: No registered users and 95 guests