在WAMP服务器绿色,但只得到404 [英] WAMP server in green but only get 404
问题描述
好吧,女士和男士。我有相当令人费解的问题。我在工作我安装WIN7机器WAMP的服务器,一切工作非常愉快。因为我被拉到其他的东西没有使用它几个星期。有一天,我试图启动它...的图标是绿色的,我想通我们都是好孩子。然后我试图打开本地主机和刚刚获得一个404错误:
Alright ladies and gents. I have quite the puzzling issue. I have WAMP server installed on my WIN7 machine at work, everything was working fine and dandy. Didn't use it for a few weeks because I got pulled into other things. The other day I tried to start it up... The icon was green and I figured we were good. Then I tried to open up localhost and just get a 404 error:
HTTP错误404请求的资源未找到。
HTTP Error 404. The requested resource is not found.
我不知道为什么它这样做,我们工作的罚款2-3个星期前,现在什么都没有。你们中有绿色的图标,但无法得到任何的页面上来?凡在赫克我走,因为我打我的头撞在墙上这里。
I have no clue why it's doing this, we were working fine 2-3 weeks ago and now nothing. Have any of you had the green icon but couldn't get any pages to come up? Where in the heck do I go because I'm beating my head against the wall here.
先谢谢了。
推荐答案
这也可能是一些其他的服务端口80(也许IIS防爆preSS,一些客户洪流,Skype的..)运行。一个解决办法是改变(曾表示,作为大额牛森)在其上的监听端口号。
It is also possible that some other service is running on port 80 (maybe IIS Express, some Torrent clients, Skype..). A solution could be to change the port on which is being listened (as Mithun Sen has said).
因此改变上WAMP侦听的端口:
So change the port on which Wamp listens:
- 点击WAMP的服务器上 - >阿帕奇 - >的httpd.conf
- 更改
80收听
别的东西,例如:收听81
- 我也会改变
服务器名本地主机:80
到服务器名本地主机:81
- Click on Wamp server -> Apache -> httpd.conf
- Change
Listen 80
to something else, eg:Listen 81
- I would also change
ServerName localhost:80
toServerName localhost:81
如果你已经做到了这一点,并保存httpd.conf中,你必须重新启动WAMP服务器。
然后使用本地主机:81
作为根网址
If you've done this, and saved httpd.conf, you have to restart the Wamp server.
Then use localhost:81
as your root url.
所以,网址,便会像
localhost:81/phpmyadmin
localhost:81/mysite_directory
这篇关于在WAMP服务器绿色,但只得到404的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!