I'm having a problem to access my localhost (and finally phpmyadmin) on WAMP.
When I enter localhost
or http://127.0.0.1
into my browser, I get the following message:
Forbidden
You don't have permission to access / on this server.
I have seen several other posts about that, where people had the same problem of being unable to access their localhost, and the solution was to edit httpd.conf
or phpmyadmin.conf
. But I have already tried this and I've had no results, It still says I do not have permission.
The HTTP 403 Forbidden response status code indicates that the server understands the request but refuses to authorize it. This status is similar to 401 , but for the 403 Forbidden status code, re-authenticating makes no difference.
You probably have another application that is using port 80. It's usually Skype or Teamviewer. If you have one (or both) of those apps, go into their settings and turn off 'use port 80'. It's under advanced settings in both apps if I recall correctly.
If you don't have Skype nor Teamviewer, try finding another application that may be using port 80 and disable it.
To be sure if this is the problem, or if you can't disable port 80 of the other application, try changing WAMP's port to something else, like :8080.
-Edit-
If you're not allowed to access /
, but are allowed to access any file, add a .htaccess
to the root of your site and add Options +Indexes
to that file.
If you're not allowed to access anything, do the same as above, but put this in your .htaccess
file:
order allow,deny
allow from all
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With