简体   繁体   English

WAMP服务器无法正常工作

[英]WAMP Server not working

Okay so a continuation from this question , where you experts intro'd me to WAMP , which can basically execute PHP within a Windows XP environment. 好的,从这个问题继续,你专家介绍我WAMP ,它基本上可以在Windows XP环境中执行PHP。

So now I've got it installed, but the tray icon forever shows YELLOW , and when I visit any PHP page in my browser, it just shows me the PHP source! 所以现在我已经安装了它,但是托盘图标永远显示为YELLOW ,当我在浏览器中访问任何PHP页面时,它只显示PHP源代码!

Also, when I visit " http://localhost/ " in IE7 it gives me a 404 Not Found , FF3 just shows a blank page. 另外,当我在IE7中访问“ http:// localhost / ”时,它给我一个404 Not Found ,FF3只显示一个空白页面。


BTW I've tried "Restart All Services" and restarting my machine, but it still won't work. 顺便说一下,我尝试过“重启所有服务”并重启我的机器,但它仍然无法正常工作。

Any ideas? 有任何想法吗? Any of you had this problem and solved it? 你们中有谁遇到过这个问题并解决了吗? Please help me here, I'm desperate to execute PHP client-side and I'm just reverting to testing on-server for now! 请帮助我,我迫切希望执行PHP客户端,我现在只是回到测试服务器上!

Skype reserves port 80 for its incoming connection which conflicts with WAMP, so simply configure Skype to use another port by doing the following: Skype为其传入连接保留端口80,这与WAMP冲突,因此只需通过执行以下操作将Skype配置为使用另一个端口:

In Skype go to Tools|Options|Advanced|Connection uncheck the option --> Use port 80 and 443 as alternatives for incoming connections, that's it 在Skype中,转到工具|选项|高级|连接取消选中选项 - >使用端口80和443作为传入连接的替代选项,就是这样

For this change to take effect restart Skype and Restart all services on WAMP by doing the following: 要使此更改生效,请通过执行以下操作重新启动Skype并重新启动WAMP上的所有服务:

Left-click WAMP tray icon > Restart All Services" 左键单击WAMP托盘图标>重新启动所有服务“

Now Wamp and Skype can co-exist together, hope this solves your problem!! 现在Wamp和Skype可以共存,希望这能解决您的问题!

Got it! 得到它了! Under the WAMP tray icon , left-click context menu > Apache > Service > Test Port 80 , it said : WAMP托盘图标下 ,左键单击上下文菜单> Apache > 服务 > 测试端口80 ,它说:

"Your port 80 is actually used by - Info not available, Must be Skype " “您的端口80实际上是由 - 信息不可用,必须是Skype

Well, so off goes Skype, WAMP > Restart All Services , and Localhost shows "WAMP5 Homepage": 那么, 关闭 Skype, WAMP>重启所有服务Localhost显示“WAMP5主页”:

Localhost WAMP CP
(source: wampserver.com ) (来源: wampserver.com

And, phpMyAdmin works, PHP scripts execute too. 并且, phpMyAdmin工作, PHP脚本也执行。 Wow! 哇!

So now I can dubug in the proper fashion! 所以现在我可以以适当的方式兑现! Thank you StackOverflow! 谢谢StackOverflow!

try this one, i had the same problem and this helped me: 尝试这个,我有同样的问题,这有助于我:

  1. Wamp Server icon => Appache => Service => Install Service Wamp Server icon => Appache => Service => Install Service
  2. Wamp Server icon => Appache => Service => Start/Resume Service Wamp Server icon => Appache => Service => Start / Resume Service
  3. Wamp Server icon => MySql => Service => Install Service Wamp Server icon => MySql => Service => Install Service
  4. Wamp Server icon => MySql => Service => Start/Resume Service Wamp Server icon => MySql => Service => Start / Resume Service

只需转到wamp> bin> apache> apache 2.2.17> conf> httpd.conf(文件)更改Listen 80 to Listen 8080保存文件n重启服务此次输入http:// localhost:8080

Glad you got it sorted - Skype is notorious for that. 很高兴你把它分类 - Skype因此而臭名昭着。

If you want to use Skype and WAMP together, you can edit your httpd.conf file - change the 'listen' value from 80 to something else and restart all services. 如果要同时使用Skype和WAMP,可以编辑httpd.conf文件 - 将“listen”值从80更改为其他值,然后重新启动所有服务。

Teamviewer也可以引起这种情况。

I'd like to expand on what some of the other folks have contributed here - as Skype is not always the culprit. 我想扩展一些其他人在这里做出的贡献 - 因为Skype并不总是罪魁祸首。

You can also check exactly which process is hogging your port 80 by running this from a command prompt: 您还可以通过从命令提示符运行来确切地检查哪个进程占用了您的端口80:

netstat -ao

This will list all processes using ports with their PID. 这将列出使用具有PID的端口的所有进程。 You can correlate those to processes in Task Manager, and take appropriate action from there. 您可以将这些与任务管理器中的进程相关联,并从那里采取适当的操作。 The bottom line is - you're looking for what's hogging port 80 and/or 443 (if you're connecting over SSL), as that is the default browser port. 底线是 - 你正在寻找什么是占用端口80和/或443(如果你通过SSL连接),因为这是默认的浏览器端口。

For me, when I have opened the httpd.conf file I have found that I have tow Listen statement as following: 对我来说,当我打开httpd.conf文件时,我发现我有两个Listen语句如下:

Listen 80
Listen 169.254.96.77:80

and when I have commented the second line (adding '#' at beginning of the line) I restarted all wamp services (left click of wamp icon in the task bar), the wamp icon became green! 当我评论第二行(在行的开头添加'#')时,我重新启动了所有的wamp服务(左键单击任务栏中的wamp图标),wamp图标变为绿色!

Hope this help other. 希望这有助于其他。

您可以在wamp在线或更改Skypes端口不使用80后启动Skype

Most of the time this problem happens because of conflict between apachi servers, or ports, or duplicate of wamp installation 大多数情况下,由于apachi服务器或端口之间的冲突或wamp安装的重复发生此问题

So to fix that: 所以要解决这个问题:

First of all if you are using SKYPE try to change the port by opening Skype, then: 首先,如果您使用SKYPE尝试通过打开Skype更改端口,则:

  • Tools menu 工具菜单
  • Options 选项
  • Advanced Options 高级选项
  • Connections 连接
  • Then uncheck "Use port 80 and 443 ......" 然后取消选中“使用端口80和443 ......”
  • save 保存
  • restart Skype 重启Skype

second if the problem still exists try to find if you are using - or was using - other Apache server (for example XAMPP server), if so try to remove it and after removing it, go to regedit by: 第二,如果问题仍然存在,请尝试查找您是否正在使用 - 或正在使用 - 其他Apache服务器(例如XAMPP服务器),如果是这样尝试删除它并在删除之后,请转到注册表:

  • press on keyboard the "windows" button + "r" button, this will open the Run command 按下键盘上的“windows”按钮+“r”按钮,这将打开Run命令
  • type "regedit" (without "") 输入“regedit”(不带“”)
  • open Edit menu then Find (you can press "CTRL" button + "F" button) 打开编辑菜单然后查找(可以按“CTRL”按钮+“F”按钮)
  • search for anything belongs to the other apache server and delete it (You should be careful while you are doing this step) 搜索属于其他apache服务器的任何内容并删除它(在执行此步骤时应该小心)

In skype: 在Skype中:

Go to Tools -> Options -> Advanced -> Connections and uncheck the box "use port 80 and 443 as alternative". 转到工具 - >选项 - >高级 - >连接,然后取消选中“使用端口80和443替代”框。

This should help. 这应该有所帮助。

Well, in case the above still dont help as it was with me, follow these steps: 好吧,如果以上情况仍然没有像我一样帮助,请按照下列步骤操作:

  • Change your apache port (from httpd.conf) to something else, say 8056, at the two places where port 80 occurs in the file 将您的apache端口(从httpd.conf)更改为其他内容,例如8056,在文件中出现端口80的两个位置
  • Then change your browser proxy appropriately. 然后适当地更改浏览器代理。 ie the proxy to "localhost" and the port to your "8056". 即“localhost”的代理和“8056”的端口。
  • Save the file and restart Wamp Services 保存文件并重新启动Wamp Services
  • Launch localhost in your browser 在浏览器中启动localhost

Hope it works! 希望它有效! A better approach is really needed. 确实需要更好的方法。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM