3

我刚刚使用本文中的指南将 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 80to更改为。然后尝试启动 Apache,但又遇到了同样的错误。Listen 1372ServerName localhost:80ServerName localhost:1372

我也改变了这个:

<VirtualHost _default_:443>

ServerName www.example.com:443

对此:

<VirtualHost _default_:4433>

ServerName localhost:4433

httpd-ssl.conf文件中。但直到现在 Apache 无法启动并返回相同的错误信息。

那我现在该怎么办?

4

4 回答 4

4

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

在浏览器上-> http://localhost:81/phpmyadmin/

于 2018-07-15T02:24:10.530 回答
1

转到 C:\xampp\mysql\backup。

复制所有文件。

将它们粘贴到 C:\xampp\mysql\data 中。

如果 Windows 要求您替换某些文件,请替换它们。

如果您的 XAMPP 控制窗格处于活动状态,请将其关闭。

转到 C:\xampp 并找到 xampp-control,运行它。

启动 Apache,启动 MySQL。


而已。

享受!

于 2020-11-27T12:36:31.643 回答
-2

请也执行这些步骤

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

我希望这会奏效!

于 2018-01-02T09:21:23.630 回答
-3

如果您已安装 Skype 软件。

然后打开 Skype:

转到菜单:

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

取消选中“使用端口 80 和 443 进行额外的传入连接”

注销并关闭 Skype 软件。然后重新启动您的 Apache。

于 2018-01-02T12:05:32.667 回答