【发布时间】:2018-06-11 22:28:33
【问题描述】:
我刚刚使用article 中的指南将 XAMPP 的 PHP 版本从 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 并在“连接”选项卡中,禁用了复选框“使用端口 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 无法启动并返回相同的错误信息。
那我现在该怎么办?
【问题讨论】:
-
Windows 事件日志说明了什么?
-
@JiriHrazdil 什么是 Windows 事件日志?
-
尝试从你开始 CMD: C:/path/to/xampp/apache_start.bat 这会给你更多关于你的问题的信息,你也可以尝试查找女巫应用程序的使用端口 80 和 443 主要端口 apache 和 httpd 使用
netstat -o -n -a | findstr 0.0:443 -
然后它说无法启动:(
标签: php apache xampp php-7.1 php-7.2