Ask Ubuntu is a question and answer site for Ubuntu users and developers. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

Im seeing this error while trying to open phpmyadmin ( :

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

 If you think this is a server error, please contact the webmaster.

 Error 403
 Apache/2.4.3 (Unix) OpenSSL/1.0.1c PHP/5.4.7`


I have commented out this code in "httpd-xampp.conf"., but it has introduced a new problem.

# New XAMPP security concept
<LocationMatch "^/(?i:(?:xampp|security|licenses|phpmyadmin|webalizer|#server-status|server-info))">
    Order deny,allow
    Deny from all
    Allow from ::1 \
        fc00::/7 \

    ErrorDocument 403 /error/XAMPP_FORBIDDEN.html.var

Now Im seeing this --

Access forbidden!

You don't have permission to access the requested directory. There is either no index document or the directory is read-protected.

If you think this is a server error, please contact the webmaster.

Error 403
Apache/2.4.3 (Unix) OpenSSL/1.0.1c PHP/5.4.7
share|improve this question
Dont get confused seeing I have mapped in /etc/hosts. – Curious Apprentice Jan 28 '13 at 11:47
up vote 6 down vote accepted

You need to add this line("Require all granted") to httpd-xampp.conf file at <Directory "/opt/lampp/phpmyadmin"> section.

Here's how the changes will look-

# since XAMPP 1.4.3
<Directory "/opt/lampp/phpmyadmin">
    AllowOverride AuthConfig Limit
    Order allow,deny
    Require all granted
    Allow from all
share|improve this answer
I tried this method editing the file but I cannot save the file. Any idea on how to change the permissions for root user? – thednp Sep 10 '15 at 16:30

In XAMPP 1.8.1, you have to allow localhost manually by editing httpd-xampp.conf file for screenshots visit this link.

share|improve this answer

just type sudo /opt/lampp/lampp security and set password to your phpmyadmin and log into phpmyadmin as username - lampp password - your_given_password

share|improve this answer

The access is limited with the default config to those ip addresses.

try replacing

Allow from ::1 \
        fc00::/7 \


Allow from All
share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.