错误:Apache意外关闭错误消息

问题描述 投票:0回答:3

我刚刚使用article的指南将PHP版本的XAMPP从PHP 7.1.7升级到PHP 7.2.0。

然后我尝试重新启动XAMPP但是我收到了这个错误:

10:54:47 AM  [Apache]   Error: Apache shutdown unexpectedly.
10:54:47 AM  [Apache]   This may be due to a blocked port, missing dependencies, 
10:54:47 AM  [Apache]   improper privileges, a crash, or a shutdown by another method.
10:54:47 AM  [Apache]   Press the Logs button to view error logs and check
10:54:47 AM  [Apache]   the Windows Event Viewer for more clues
10:54:47 AM  [Apache]   If you need more help, copy and post this
10:54:47 AM  [Apache]   entire log window on the forums

之后我打开了我的Skype,在Connection选项卡中,我禁用了checkobox“使用端口80和443替代传入连接”。然后我尝试重新启动Apache,但我又收到了错误消息。

接下来我做的是将httpd.conf中的Listen 80更改为Listen 1372,并将同一文件中的ServerName localhost:80更改为ServerName localhost:1372。然后尝试启动Apache,但又一次我得到了同样的错误。

我也改变了这个:

<VirtualHost _default_:443>

ServerName www.example.com:443

对此:

<VirtualHost _default_:4433>

ServerName localhost:4433

在httpd-ssl.conf文件中。但到目前为止,Apache无法启动并返回相同的错误消息。

那我现在该怎么办?

php apache xampp php-7.1 php-7.2
3个回答
1
投票

转到Apache配置 - > Apache(httpd.config) - >更改“Listen 80 to 81”

在浏览器 - > qazxsw poi


-1
投票

如果您已安装Skype软件。

然后打开Skype:

转到菜单:

工具 - >选项 - >高级 - >连接。

取消选中“使用端口80和443以获取传入连接的附加信息”

注销并关闭Skype软件。然后重启你的Apache。


-1
投票

请执行这些步骤

在“控制面板”中,再次单击“主配置”按钮。单击“服务和端口设置”​​。将主端口更改为8080和SSL端口4433.关闭配置。停止并启动Apache。单击Apache的Admin按钮,它应该在浏览器中打开XAMPP主页。

我希望这会奏效!

© www.soinside.com 2019 - 2024. All rights reserved.