Take the 2-minute tour ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free, no registration required.

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
127.0.0.1
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
</Directory>

and

# New XAMPP security concept

<LocationMatch “^/(?i:(?:xampp|security|licenses|phpmyadmin|webalizer|server-status|server-info))”>
Order deny,allow
    Allow from all
Allow from ::1 127.0.0.0/8 \
fc00::/7 10.0.0.0/8 172.16.0.0/12 192.168.0.0/16 \
fe80::/10 169.254.0.0/16

ErrorDocument 403 /error/XAMPP_FORBIDDEN.html.var
</LocationMatch>

What can I do to make phpmyadmin work?

share|improve this question

2 Answers 2

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

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

Your Answer

 
discard

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.