php WAMP 服务器错误“禁止您无权访问此服务器上的 /phpmyadmin/。”
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/10600795/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me):
StackOverFlow
WAMP Server ERROR "Forbidden You don't have permission to access /phpmyadmin/ on this server."
提问by Shamas
Hi Friends previously I am using XAMP Server but when I install joomla Templates it creates alots of error. Now I installed the WAMP, but the issues are: 1. I can access with 127.0.0.1, but I cant access with "localhost". 2 When i access phpmyadmin i get this error.
嗨,朋友们,我以前使用的是 XAMP 服务器,但是当我安装 joomla 模板时,它会产生很多错误。现在我安装了 WAMP,但问题是: 1. 我可以用 127.0.0.1 访问,但我不能用“localhost”访问。2 当我访问 phpmyadmin 时出现此错误。
Forbidden You don't have permission to access /phpmyadmin/ on this server.
Forbidden 您无权访问此服务器上的 /phpmyadmin/。
Alias /phpmyadmin "c:/wamp/apps/phpmyadmin3.4.5/"
# to give access to phpmyadmin from outside
# replace the lines
#
# Order Deny,Allow
# Deny from all
# Allow from 127.0.0.1
#
# by
#
# Order Allow,Deny
# Allow from all
#
After changing, it will look like this
改完之后就是这个样子
<Directory "c:/wamp/apps/phpmyadmin3.4.5/">
Options Indexes FollowSymLinks MultiViews
AllowOverride all
Order Deny,Allow
Allow from all
</Directory>
After this just restart Wamp
在此之后只需重新启动 Wamp
回答by dipo
Go to C:\wamp\alias. Open the file phpmyadmin.confand change
去C:\wamp\alias。打开文件phpmyadmin.conf并更改
<Directory "c:/wamp/apps/phpmyadmin3.5.1/">
Options Indexes FollowSymLinks MultiViews
AllowOverride all
Order Deny,Allow
Deny from all
Allow from 127.0.0.1
</Directory>
to
到
<Directory "c:/wamp/apps/phpmyadmin3.5.1/">
Options Indexes FollowSymLinks MultiViews
AllowOverride all
Order Allow,Deny
Allow from all
</Directory>
problem solved
问题解决了
回答by kaka
Change httpd.conf file as follows:
更改 httpd.conf 文件如下:
from
从
<Directory />
AllowOverride none
Require all denied
</Directory>
to
到
<Directory />
AllowOverride none
Require all granted
</Directory>
回答by decoder88
So none of the above stuff worked for me. Except this: edit httpd.conf,
所以上面的东西都不适合我。除了这个:编辑httpd.conf,
find the line
找到线
Listen 80
and change to
并更改为
listen 0.0.0.0:80
if you are running windows 8, its got something to do with using ipv6 instead of ipv4
如果您运行的是 Windows 8,则它与使用 ipv6 而不是 ipv4 有关
回答by Shin
Go to C:\wamp\alias. Open the file phpmyadmin.conf and add
转到 C:\wamp\alias。打开文件 phpmyadmin.conf 并添加
Options Indexes FollowSymLinks MultiViews
AllowOverride all
Order Deny,Allow
Deny from all
Allow from 127.0.0.1
Allow from MACHINE_IP
回答by Mukesh
Change in following file \bin\apache\apache2.2.22\conf\httpd.conf
更改以下文件\bin\apache\apache2.2.22\conf\httpd.conf
Replace Listen 80 with Listen 0.0.0.0:80
Replace
代替
<Directory />
Options FollowSymLinks
AllowOverride None
Order deny,allow
Deny from all
</Directory>
with
和
<Directory />
Options FollowSymLinks
AllowOverride None
Order deny,allow
Allow from all
</Directory>
Replace
代替
onlineoffline tag - don't remove
onlineoffline 标签 - 不要删除
Order Deny,Allow
Deny from all
Allow from 127.0.0.1
with
和
onlineoffline tag - don't remove
onlineoffline 标签 - 不要删除
Order Deny,Allow
Allow from all
Allow from 127.0.0.1
in \wamp\alias\phpmyadmin.conf replace
在 \wamp\alias\phpmyadmin.conf 中替换
<Directory "c:/wamp/apps/phpmyadmin3.4.10.1/">
Options Indexes FollowSymLinks MultiViews
AllowOverride all
Order Deny,Allow
Deny from all
Allow from 127.0.0.1
</Directory>
with
和
<Directory "c:/wamp/apps/phpmyadmin3.4.10.1/">
Options Indexes FollowSymLinks MultiViews
AllowOverride all
Order Deny,Allow
Deny from all
Allow from 127.0.0.1
Allow from ::1
</Directory>
Tested on windows localhost. Note :Please consider RigsFolly's comment also.
在 Windows 本地主机上测试。 注意:也请考虑 RigsFolly 的评论。
回答by nunomira
For WampServer 2.2 with Apache 2.4.2 I ended up with:
对于带有 Apache 2.4.2 的 WampServer 2.2,我最终得到:
Options Indexes FollowSymLinks MultiViews
AllowOverride all
Require local
回答by tharindu_DG
To solve this, I opened httpd.confand changed the following line:
为了解决这个问题,我打开httpd.conf并更改了以下行:
Allow from 127.0.0.1
to:
到:
Allow from 127.0.0.1 ::1
回答by Zeel Shah
just add following line in wamp/alias/phpmyadmin.conf
Allow from ::1
只需在 wamp/alias/phpmyadmin.conf 中添加以下行
Allow from ::1
so it will look something like this depending your phpmyadmin version.
所以它看起来像这样取决于你的 phpmyadmin 版本。
<Directory "c:/wamp/apps/phpmyadmin3.5.1/">
Options Indexes FollowSymLinks MultiViews
AllowOverride all
Order Deny,Allow
Deny from all
Allow from 127.0.0.1
Allow from ::1
</Directory>
回答by ubaidullah
I faced this problem
我遇到了这个问题
Forbidden You don't have permission to access /phpmyadmin/ on this server
Some help about this:
一些帮助:
First check you installed a fresh wamp or replace the existing one. If it's fresh there is no problem, For done existing installation.
首先检查您是否安装了新的 wamp 或更换了现有的 wamp。如果它是新鲜的没有问题,对于完成的现有安装。
Follow these steps.
按着这些次序。
- Open your wamp\bin\mysql directory
- Check if in this folder there is another folder of mysql with different name, if exists delete it.
- enter to remain mysql folder and delete files with duplication.
- start your wamp server again. Wamp will be working.
- 打开你的 wamp\bin\mysql 目录
- 检查此文件夹中是否还有另一个名称不同的mysql文件夹,如果存在则将其删除。
- 输入保留mysql文件夹并删除重复的文件。
- 再次启动您的 wamp 服务器。Wamp 将工作。
回答by Ismail Sahin
If its possible uninstall wamp then run installation as administrator then change you mysql.conf file like that
如果可能卸载wamp,然后以管理员身份运行安装,然后像这样更改mysql.conf文件
<Directory "c:/wamp/apps/phpmyadmin3.5.1/">
Options Indexes FollowSymLinks MultiViews
AllowOverride all
Order Allow,Deny
Allow from all
Allow from all
</Directory>
Not: Before I reinstall as admin the solution above didn't work for me
不是:在我以管理员身份重新安装之前,上述解决方案对我不起作用

