Why doesn't http://localhost/ load anything with WAMP?

拥有回忆 提交于 2019-12-21 02:54:11

问题


I recently tried installing WAMP but found that none of the pages will load. It also has an orange W logo, if that means anything. It does say (Tray Icon) that the WAMPserver is online though. I also did some research and found that Skype may cause problems and I removed the Use port 80 and 443 as alternatives for incoming connections option, but it still won't work. I get the following screen in my Chrome browser, any ideas?

EDIT: After further research I found that something may have gone wrong with the installation and Skype. I don't know how this happened but after a re-instillation everything worked fine. Thanks for your guy's help.


回答1:


The orange logo indicates that at least one service failed to start. You might try the following to troubleshoot the underlying reason:

  1. Check that the Apache service is running. Left-click the WAMP tray icon and check that under Apache > Service, the option to start the service is disabled/grayed out. If not, your Apache service isn't running and that's the cause.

  2. Check the port Apache is listening on. Again. left-click the WAMP icon, Apache > httpd.conf should open the configuration. Look for the Listen XX directive and note what the value for XX is. If not 80, you should use the url http://localhost:XX instead.

  3. If the value for Listen was indeed 80, you might want to check what process is bound to port 80. Left-click the tray icon, Apache > Service > Test port 80. This should tell you what process is bound to port 80. If nothing is listening at port 80, you should see the message Your port 80 is not actually used.. If Apache actually is listening on that port, you should see something like Apache/<version> (Win32) PHP/<version>.

  4. Finally, check the Apache error log. Left-click the icon, Apache > Apache error log. Scroll to the end of the file and look for any messages that might be relevant.

  5. Try a different browser

  6. Telnet to port XX and see if you're able to connect.




回答2:


For this problem go :

wamp > Apache > Service > Install Service

After Install Your Apache Is Ok :D

   if not running, open this address use your web browser:
   127.0.0.1

(usually This problem see in Windows 8)




回答3:


Skype uses port 80 if it is free. No need to uninstall skype, just start your webserver before skype and everything should be fine. Skype will find another port.



来源:https://stackoverflow.com/questions/6246938/why-doesnt-http-localhost-load-anything-with-wamp

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!