更新时间: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。
和由概览>> 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.
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.