且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

Apache的80端口错误

更新时间:2022-10-15 11:37:38

有2种方法来解决这个问题。
 1.如果你想在另一个端口运行Apache,则:在XAMPP /阿帕奇/ conf目录替换/ httpd.conf文件服务器名本地主机:80以ServerName本地主机:81在184线后,即使它可能不work.Then替换

  #Listen 0.0.0.0:80
 #Listen [:]:80
 听80

  #Listen 0.0.0.0:81
#Listen [:]:81
听81

在第45行

2.您端口80正被用于由系统或Skype。如果由Skype然后冷杉退出Skype和运行Apache。你可以重启Skype。


  1. 在Windows的万维网发布服务正在使用此端口,并停止该服务将释放的80端口,您可以使用此端口连接的Apache停止服务进入任务管理器 - >服务选项卡吧点击万维网发布服务并停止。

  2. 如果你没有发现有再然后进入运行> SERVICES.MSC,并再次找到那里,右键单击万维网发布服务,并stop.Insha真主,将工作。

  3. 如果您没有找到万维网发布服务没有然后去
    润>> resmon.exe >>网络选项卡>>侦听端口,看看哪些
    进程正在使用端口80
    Apache的80端口错误

和由概览>> CPU只是在这一过程中右键单击,然后单击结束进程树。如果该过程是系统可能是一个关键问题。

I'm trying to run a WAMP server, but i think Apache is getting port 80 blocked by something.

I did some research and found that in the event viewer it gives the error:

(OS 10013)An attempt was made to access a socket in a way forbidden by its access permissions. : AH00072: make_sock: could not bind to address [::]:80 .

i looked up 0.0.0.0:80 on netstat -ao, which gave a PID of 4. The only problem is, there is nothing with a PID of 4 on my task manager. Does anyone know what might be taking up port 80, or how i might figure this out?

Thanks in advance.

EDIT:

Yes, i did deactivate the port from Skype, and it is forwarded correctly. This started happening i think when I installed IIS, but i thought i got rid of it.(yes i did disable it in control panel)

EDIT:

OK, i just changed the port in the config, all is well. Dont' know why i didn't think of that originally.

There are 2 ways to solving this problem. 1. If you want to run Apache in another port then:Replace in xampp/apache/conf/httpd.conf ServerName localhost:80 by ServerName localhost:81 At line 184. After that even it may not work.Then replace

 #Listen 0.0.0.0:80
 #Listen [::]:80
 Listen 80 

by

#Listen 0.0.0.0:81
#Listen [::]:81
Listen 81

at line 45

2.Your port 80 is being used by the system or skype. If by skype then firs quit skype and run Apache. And you can restart skype.

  1. In Windows "World Wide Publishing" Service is using this port and stopping this service will free the port 80 and you can connect Apache using this port. To stop the service go to the "Task manager –> Services tab", right click the "World Wide Publishing Service" and stop.
  2. If you don't find there then Then go to "Run > services.msc" and again find there and right click the "World Wide Publishing Service" and stop.Insha Allah that will work.
  3. If you didn't find "World Wide Publishing Service" there then go to "Run>>resmon.exe>> Network Tab>>Listening Ports" and see which process is using port 80

And from "Overview>>CPU" just Right click on that process and click "End Process Tree". If that process is system that might be a critical issue.