windows 不能在本地启动 apache 2.4

来源:互联网 发布:国内旅游收入数据1978 编辑:程序博客网 时间:2024/06/05 16:03

WAMP/Apache Broken From “Microsoft HTTP/API 2.0” Using Port 80

My coworker, Dora, was attempting to get WAMP to run a locally hosted development environment on her Windows 7 computer. She could not get Apache to start and was getting a 404 error when visiting localhost in her browser.

By using the WAMP command (WAMP Menu > Apache > Services > Test Port 80), I saw that “Microsoft HTTP/API 2.0” was using port 80.

Turning off Microsoft HTTP/API 2.0

After some fruitless Google searches, I found a stray post noting that this could be the Web Deployment Service Agent. As a former Windows user, of many years now, I can’t even comment (or care) what this service is for, all I can do is tell you how I disabled it:

  1. Open your Control Panel (Start > Control Panel)
  2. Change the view setting from Category to Small or Large Icons
  3. Open Administrative Tools
  4. Open Services
  5. Find “Web Deployment Service Agent” in the list
  6. Right click and choose Properties
  7. Click Stop
  8. Change it’s Start Up value to “Manual”
  9. Hit Apply/OK to save the changes
  10. Go to WAMP and restart all services

This should do it.

What if I don’t want to turn off the Web Deployment Service Agent

A quicker solution that should keep this service running would be to configure WAMP to run under another port other than 80, such as 8080. You will have to append :8080 to your localhosthostname, but it should work.

I haven’t tested it and can’t offer support for Windows users. Just wanted to post my solution in the hopes that it helps other lost souls!

原文地址:http://theandystratton.com/2012/wampapache-broken-from-microsoft-httpapi-2-0-using-port-80

阅读全文
0 0
原创粉丝点击