我试过删除skype,但那不工作,我试过关闭万维网的东西,IIS关闭似乎没有什么工作。

12:51:22 PM  [Apache]   Problem detected!
12:51:22 PM  [Apache]   Port 80 in use by "Unable to open process" with PID 4!
12:51:22 PM  [Apache]   Apache WILL NOT start without the configured ports free!
12:51:22 PM  [Apache]   You need to uninstall/disable/reconfigure the blocking application
12:51:22 PM  [Apache]   or reconfigure Apache and the Control Panel to listen on a different port

当前回答

如果服务是http.sys . conf

需要修改http.sys的绑定IP地址

Netsh HTTP添加iplistipaddress =::

无需重启操作系统即可正常工作。

其他回答

“SQL Server报表服务”在我的系统中导致问题,停止后,Apache开始工作正常

将主端口80更改为8080后,您必须在控制面板中更新端口: 然后点击这里: 在这里: 然后保存并重新启动。

由于@johnkarka对这个问题的评论,这个端口也被SQL Server报告服务使用。在停止此操作后,Apache启动正常。

进入“SQL Server配置管理器” 点击“SQL Server Reporting Service”并停止它

有趣的是,IIS在相同的配置下工作得很好,但Apache不行,必须停止SQL Reporting服务以使其在默认端口(80)上工作。

我也遇到过同样的问题,但在我的情况下Apache已经在运行,由于某种原因XAMPP配置工具没有显示这一点。它发生在我安装后第一次启动XAMPP之后。在其他Apache实例崩溃后,一切正常,端口80和443再次空闲。

因此,在对系统进行更改之前,请确保没有发生上述明显的情况。

我也有同样的问题。经过一些谷歌搜索到达这个页面。由于我猜想这个错误可能有各种各样的原因,所以听听我的经验:

Xampp红线日志:

12:53:54 PM  [Apache] Problem detected!
12:53:54 PM  [Apache]   Port 443 in use by "Unable to open process" with PID 3908!
...

最后,我发现在我的php代码中有这样一行代码:

$res = file_get_contents("http://$_SERVER[HTTP_HOST]$_SERVER[REQUEST_URI]");

这段代码的目的是从服务器的某个地方获取php结果的镜像。但它只是被困在一个获得自己内容的循环中!

我修复了代码:

$res = file_get_contents(str_replace("my_uri.php" , "mirror_uri.php" , "http://$_SERVER[HTTP_HOST]$_SERVER[REQUEST_URI]"));

然后我重启apache…apache错误再也没有发生过。

因此,有时在代码中搜索可能的停止点是一个好方法。