我刚刚使用本文中的指南将 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中 的to和同一个文件中的Listen 80
to更改为。然后尝试启动 Apache,但又遇到了同样的错误。Listen 1372
ServerName localhost:80
ServerName localhost:1372
我也改变了这个:
<VirtualHost _default_:443>
ServerName www.example.com:443
对此:
<VirtualHost _default_:4433>
ServerName localhost:4433
在httpd-ssl.conf文件中。但直到现在 Apache 无法启动并返回相同的错误信息。
那我现在该怎么办?