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

I just re-installed Ubuntu because I had been playing with a driver which I shouldn't have done. I didn't have a backup (though I backed up the important documents etc etc) so I gotta reinstall these several applications.

So, I installed XAMPP and made so I could change stuff in htdocs. I wanted to access a database with phpmyadmin, but I couldn't access it because it says:

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

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've been searching on all over Google for solutions and absolutely none of them help. All of them doing some minor changes in "httpd-xampp.conf" and it seems to work for them, but it just doesn't work for me.

The context I was told to change in "httpd-xampp.conf" look like this:

# since XAMPP 1.4.3
<Directory “/opt/lampp/phpmyadmin”>
AllowOverride AuthConfig Limit
Order allow,deny
Allow from all
Require all granted


# New XAMPP security concept

<LocationMatch “^/(?i:(?:xampp|security|licenses|phpmyadmin|webalizer|server-status|server-info))”>
Order deny,allow
    Allow from all
Allow from ::1 \
fc00::/7 \

ErrorDocument 403 /error/XAMPP_FORBIDDEN.html.var

What can I do to make phpmyadmin work?

share|improve this question
up vote 0 down vote accepted

you don't need to change any configuration file. I assume you have installed xampp under /opt/lampp if so,
run this code:

  sudo /opt/lampp/lampp security 

and follow the steps, then restart lampp, and you won't see the error again.

share|improve this answer

Why don't you just delete what is obviously the problem (that LocationMatch directive)? It's only going to be a security issue if your installation is ever exposed to a wider network.

If you running servers, even for local development, you should install a firewall - or just learn to use ufw and that should mitigate issues like this.

Edit: looking at your question, it seems that you've munged together two separate solutions to try and get this working. Unfortunately one of the posts you've copied this from has interpreted their quotes incorrectly. Note the curly-double-quotes in the second post, rather than the standard straight quotes: "

It's possible that if you replace them out (or grab better copies) things might work as you expect them to.

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.