错误 403。Wamp 服务器

发布于 2024-12-22 09:45:36 字数 291 浏览 2 评论 0原文

我已经安装了wamp服务器2.2 我使用的是 Windows 7

当我当时在线时我无法使用 WaMp 找到 localhost 它给了我一些禁止的错误..你没有访问权限类型的错误。

但是当我断开互联网连接时,我可以获得 localhost..PHPmyadmin 和 WAMP 服务器的所有功能。

我尝试了很多方法,将 Apache httpd .conf 更改为 Replace All..."Deny all""Allow all" 但仍然无法得到它在线。

I have installed wamp server 2.2
I'm using windows 7

When I am online at that time i'm not able to find localhost using WaMp
its giving me some Forbidden Error..You Don't have Access kind of error.

But when I disconnect my internet connection, I can get localhost..PHPmyadmin and all feature of WAMP server.

I tried a lot by changing the Apache httpd .conf to Replace All..."Deny all" to "Allow all"but still, i'm not able to get it online.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(7

油焖大侠 2024-12-29 09:45:36

将服务器放在连接菜单中对我没有帮助。如果您使用的是 Wamp 服务器 2.2E,您会在 httpd.conf 文件中找到这些行,

#   onlineoffline tag - don't remove
Require local

将它们更改为

#   onlineoffline tag - don't remove
Require all granted

这解决了我的问题。

Putting server online in contect menu did not help me. If you are using Wamp server 2.2E you will find the lines in your httpd.conf file

#   onlineoffline tag - don't remove
Require local

Change them to to

#   onlineoffline tag - don't remove
Require all granted

This solved my problem.

空心↖ 2024-12-29 09:45:36

剪切并粘贴:

Error 403 Forbidden with phpmyadmin and WAMP Server
Error 403
-----
Forbidden
You do not have permission to access / on this server.

编辑 Apache 配置文件 httpd.conf 并找到以下行:

# onlineoffline tag - don't remove

Order deny, allow
Deny from all
Allow from 127.0.0.1

将其更改为:

Order allow, deny
Allow from all 

它有效。

Cut and paste:

Error 403 Forbidden with phpmyadmin and WAMP Server
Error 403
-----
Forbidden
You do not have permission to access / on this server.

Edit the Apache configuration file httpd.conf and find the lines:

# onlineoffline tag - don't remove

Order deny, allow
Deny from all
Allow from 127.0.0.1

Change them to:

Order allow, deny
Allow from all 

It works.

羅雙樹 2024-12-29 09:45:36

您可以将 127.0.0.1 更改为 ::1 或将 Deny from all 更改为 Allow from all代码>httpd.conf 文件。我有一个关于 Windows 8 上此错误的博客,网址为 http://www.webtrunghieu.info/site? p=21

You can change 127.0.0.1 to ::1 or change Deny from all to Allow from all in the httpd.conf file. I have a blog about this error on Windows 8 at http://www.webtrunghieu.info/site?p=21

不美如何 2024-12-29 09:45:36

您的 www 目录中也可能有一个 .htaccess 文件导致此错误。请务必检查一下。

You may also have a .htaccess file within your www directory which is causing this error. Be sure to check that.

离笑几人歌 2024-12-29 09:45:36

转到 C:/Windows/System32/drivers/etc/host

找到
#127.0.0.1 本地主机
行并通过删除 # 符号取消注释

即使您以管理员身份登录,也可能会收到“访问被拒绝”消息。

要解决此问题,请右键单击文件编辑软件,然后单击以管理员身份运行。

您应该能够保存文件,然后

本地主机应该可以正常工作。

Go to C:/Windows/System32/drivers/etc/host

find the
"#127.0.0.1 localhost"
line and uncomment it by removing the # sign

It is possible that you get an 'access denied' message even when you are logged in as an administrator.

To work around that, right click on your file editing software and click run as administrator.

You should be able to save the file then

Localhost should work just fine after that.

白鸥掠海 2024-12-29 09:45:36

我尝试了此处发布的解决方案,但无法在 Windows 8 计算机上启动 wamp 2.2。 wamp 服务器论坛的 此链接解决了问题。我需要在 httpd.conf 文件中将“Listen 80”更改为“Listen 0.0.0.0:80”。这可能是我的机器特有的问题,但解决方案非常有效。

I tried solutions posted here, but did not work to get wamp 2.2 started on windows 8 machine. This link from wamp server forum solved issue. I needed to change "Listen 80" to "Listen 0.0.0.0:80" in httpd.conf file. This may be an issue specific to my machine but the solution worked like a charm.

友欢 2024-12-29 09:45:36

只需要让你的 wampserver 上线
在托盘中右键单击 wamp 图标并在线

just need put your wampserver online
in tray right-click on wamp icon and Put Online

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文