Page 2 of 2

Re: Error 403 for phpmyadmin

PostPosted: 06. July 2012 19:39
by LeBon
I had exactly the same problem. So I followed this thread. The "Require all granted" command was the solution. Thanks to dookan and JonB
for the contribution.

Re: Error 403 for phpmyadmin

PostPosted: 09. July 2012 02:52
by dookan
Well, thanks for all the support JonB, I'm appreciated!
And, good luck with any future releases.

Re: Error 403 for phpmyadmin [Solved]

PostPosted: 14. July 2012 22:11
by MrJxN
I was searching for this as I had the exact same problem. I tried the OP's solution first and it worked a charm. Thanks :)

In case this makes it more clear (especially for beginners), the steps I took (After backing up the original httpd-xampp.conf) :

In a terminal:
Code: Select all
sudo gedit /opt/lampp/etc/extra/httpd-xampp.conf


In gedit, Find:
<Directory "/opt/lampp/phpmyadmin">

And add the line to the <Directory>:
Require all granted

After this, the section reads:
Code: Select all
<Directory "/opt/lampp/phpmyadmin">
    AllowOverride AuthConfig Limit
    Order allow,deny
    Allow from all
    Require all granted
</Directory>


Save the file, close gedit, then back at the terminal:
Code: Select all
/opt/lampp/lampp restart


http://localhost/phpmyadmin/ now correctly loads.

MrJxN

[edit] My system: Ubuntu 12.04 hosted on Oracle VirtualBox in WIndows 7.

Re: Error 403 for phpmyadmin [Solved]

PostPosted: 15. July 2012 02:11
by MaxiSantos
I also found another solution.

sudo /opt/lampp/lampp security

I wasn't able to enter localhost/phpmyadmin neither localhost/phpmyadmin/index.php

At the moment, everything works fine.

Re: Error 403 for phpmyadmin [Solved]

PostPosted: 01. September 2012 10:25
by praise
:D Thank you very much for sharing

Re: Error 403 for phpmyadmin [Solved]

PostPosted: 13. February 2013 22:33
by iBaf
Dont use this code, its allow access from all..
Just update your httpd-xampp.conf.
Replace the End with:
Code: Select all
#
# New XAMPP security concept
#
<LocationMatch "^/(?i:(?:xampp|security|licenses|phpmyadmin|webalizer|server-status|server-info))">
   <RequireAny>
    Require ip ::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
   </RequireAny>
   ErrorDocument 403 /error/XAMPP_FORBIDDEN.html.var
</LocationMatch>

Than restart your lampp with:
Code: Select all
sudo /opt/lampp/lampp restart

Re: Error 403 for phpmyadmin [Solved]

PostPosted: 08. March 2013 16:28
by JonB
I think iBaf is referring to these directives written by MrJxN - When he says
Dont use this code, its allow access from all..


Code: Select all
<Directory "/opt/lampp/phpmyadmin">
    AllowOverride AuthConfig Limit
    Order allow,deny
    Allow from all
    Require all granted
</Directory>


Subject to review -

8)

Re: Error 403 for phpmyadmin [Solved]

PostPosted: 10. January 2014 17:16
by stevieontario
I have tried all of the solutions given here, and still cannot access phpMyAdmin. Still get the Access Forbidden and 403 error.

Maybe it's the combination of my linux version (actually it's ubuntu 11.04, natty, not 11.10 as I entered when I was composing this post) and xampp 1.8.1?

Re: Error 403 for phpmyadmin [Solved]

PostPosted: 10. March 2014 16:55
by kimmy
this works
Code: Select all
<Directory "/opt/lampp/phpmyadmin">
    AllowOverride AuthConfig Limit
    Require all granted
</Directory>


see

Image
screenshot captor