WAMP error: Forbidden You don't have permissio

2019-01-01 04:27发布

I am new to WAMP and I have just installed it today.

The setup went well and localhost seems to work, but when I try to access phpMyAdmin I get this error:

Forbidden
You don't have permission to access /phpmyadmin/ on this server.

Why do I get this permission access error with phpMyAdmin?

I am using Windows 7.

30条回答
零度萤火
2楼-- · 2019-01-01 05:24

You have to just check whether your WAMP server is online or not.

To put your WAMP server online, follow these steps.

  1. Go to your WAMP server notification icon (in the task bar).
  2. Single click on the WAMP server icon.
  3. Select last option from the menu, that is, Put Online
  4. Your server will restart automatically (in the latest versions only). Otherwise, you have to restart your server manually.

And you are DONE...

查看更多
春风洒进眼中
3楼-- · 2019-01-01 05:24

I found that using localhost would not work properly to allow local access from the server. I had to use 127.0.0.1.

In phpmyadmin.conf this did not work:

Deny from all
Allow from localhost

this did work:

Deny from all
Allow from 127.0.0.1

I am using WampServer Version 2.2

查看更多
弹指情弦暗扣
4楼-- · 2019-01-01 05:24

I tried to set up my password... And that's how I got locked out from localhost. They should fix this...

Anyway, be careful with random advice. They all may or may not work. But some advice will lock you out even further. The one that worked for me:

Type "http://127.0.0.1/phpmyadmin/" in the address bar.

Then I discovered that http://localhost/phpmyadmin/ also works.

However, before that, out of desperation I had...

I deleted the files, I uninstalled WAMP, deleted temporary cookies, and installed WAMP again. It still doesn't accept "localhost" (and I am tired after a day trying to access WAMP), but the 127.0.0.1 and the localhost/phpmy... work. I am happy to see the page back. And start working again.

If you read this thread all the way to here means you are probably in a big problem... Windows 8, WAMP (wampserver 2.2). I wonder what it needs to get back access to localhost.

查看更多
伤终究还是伤i
5楼-- · 2019-01-01 05:25

I wanted to run my server online and not under localhost / 127.0.0.1 and had the forbidden message. I am running the WAMP 2.2 server (Apache 2.4.2 / PHP 5.4.3 / MySQL 5.5.24) on Windows 7 64 bit. What worked for me is the following:

  1. Press the startup WAMP icon in the menu
  2. Choose Apache folder
  3. Choose the file httpd.conf
  4. Under the Directory tab section (section with "# Online --> Require all granted" text), I had the "Require local" option which I changed to "Require all granted"
  5. Restart all services of the WAMP

Again, it worked for me and from this thread I understand that there are many cases in which you may get the above error message so if mine does not work, try other solutions.

Good luck.

(I hope it helps someone like it helped me. I did not find any one of the solutions above working for me.)

查看更多
十年一品温如言
6楼-- · 2019-01-01 05:27

Just use 127.0.0.1 instead of localhost (no changes to the configuration file are required).

System:

  • Windows 7
  • wampserver2.2d-x64

This works:

http://127.0.0.1/phpmyadmin/

This one fails:

http://localhost/phpmyadmin/
查看更多
千与千寻千般痛.
7楼-- · 2019-01-01 05:28

In my case a WAMP server was installed before on my pc, so when installing the new one some files not overwritten, all you have to do in that case is to go to the C:\ and delete the whole WAMP folder then install it again.

查看更多
登录 后发表回答