我试过删除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

当前回答

对我有用的是停止Internet信息服务(IIS)。如果你使用的是Windows 7,点击“开始”按钮,在搜索框中输入“iis”。点击“Internet信息服务(IIS)管理器”。当窗口弹出时,假设您没有选中任何图标,您应该能够单击右侧操作窗格上的Stop。我的XAMPP Apache启动了。希望你能如愿以偿。

其他回答

以管理员身份打开CMD提示符并执行以下命令: 净止损为/y 打开运行对话框(按Win+R),然后键入:services.msc 然后搜索万维网发布服务(WWW-Publishing Service)和Web部署代理服务并停止它们。您还应该禁用它们。 用XAMPP重新启动Apache:)

链接编号:https://www.sitepoint.com/unblock-port-80-on-windows-run-apache/

在httpd.conf中修改以下行,然后重新启动应用程序:

听80转听8080 ServerName localhost:80到ServerName localhost:8080

当你按下“开始”,应用程序仍然可以说你有一个错误,如“端口80被无法打开进程PID…”,但它仍然会工作。

如果错误包含“端口443正在被“无法打开进程”的PID…”,您需要同时修改httpd.conf和httpd-ssl.conf。

在httpd-ssl.conf中更改:

听443转听4433 <VirtualHost _default_:443>到<VirtualHost _default_:4433> ServerName www.example.com:443 ~ ServerName www.example.com:4433

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

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

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错误再也没有发生过。

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

我也有这个问题,停止使用端口80的服务没有帮助。我通过以下程序解决了这个问题(在一个法国板上找到的):

启动注册表编辑器 HKEY_LOCAL_MACHINE \ SYSTEM \ CurrentControlSet \ \ HTTP服务 将start的值改为4(禁用) 重新启动计算机

不知道这对其他服务有什么影响,但它永久性地解决了这个问题,到目前为止我还没有看到任何问题。

Windows 10操作系统。