简体   繁体   English

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

[英]Error: Apache shutdown unexpectedly error message

I just upgraded the PHP version of XAMPP from PHP 7.1.7 to PHP 7.2.0 using the guidelines from this article .我刚刚使用本文中的指南将 XAMPP 的 PHP 版本从 PHP 7.1.7 升级到 PHP 7.2.0。

Then I tried restarting the XAMPP but I got this error:然后我尝试重新启动 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

After that I opened up my Skype and in the Connection tab, I disabled the checkobox " Use port 80 and 443 for alternatives for incoming connections ".之后,我打开了 Skype 并在“连接”选项卡中禁用了复选框“使用端口 80 和 443 作为传入连接的替代方案”。 Then I tried restarting the Apache but again I got the error message.然后我尝试重新启动 Apache,但再次收到错误消息。

Next thing that I did was changing the Listen 80 to Listen 1372 in httpd.conf and also the ServerName localhost:80 to ServerName localhost:1372 in the same file.接下来的事情,我所做的只是改变了Listen 80Listen 1372httpd.conf,也是ServerName localhost:80ServerName localhost:1372在同一个文件。 And then tried to start the Apache but one more time I got the same error.然后尝试启动 Apache,但又一次我遇到了同样的错误。

I also changed this:我也改变了这个:

<VirtualHost _default_:443>

ServerName www.example.com:443

to this:对此:

<VirtualHost _default_:4433>

ServerName localhost:4433

in the httpd-ssl.conf file.httpd-ssl.conf文件中。 But until now the Apache can not start and returns the same error message.但是直到现在 Apache 都无法启动并返回相同的错误消息。

So what should I do now?那我现在该怎么办?

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

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

Go to C:\\xampp\\mysql\\backup.转到 C:\\xampp\\mysql\\backup。

Copy all files.复制所有文件。

Paste them into C:\\xampp\\mysql\\data.将它们粘贴到 C:\\xampp\\mysql\\data 中。

If Windows asks you to replace some files, replace them.如果 Windows 要求您替换某些文件,请替换它们。

If your XAMPP Control Panes is active close it.如果您的 XAMPP 控制面板处于活动状态,请关闭它。

Go to C:\\xampp and find xampp-control, run it.到 C:\\xampp 找到 xampp-control,运行它。

Start Apache, start MySQL.启动Apache,启动MySQL。


That's it.就是这样。

Enjoy!享受!

please do these steps as well请也执行这些步骤

In the Control Panel, click on the main Config button again.在控制面板中,再次单击主配置按钮。 Click on Service and Port Settings.单击服务和端口设置。 Change the Main Port to 8080 and the SSL Port 4433. Close out of Configuration.将主端口更改为 8080,将 SSL 端口更改为 4433。关闭配置。 Stop and Start Apache.停止和启动 Apache。 Click the Admin button by Apache and it should open up the XAMPP home page in your browser.单击 Apache 的 Admin 按钮,它应该会在您的浏览器中打开 XAMPP 主页。

I hope this will work!我希望这会奏效!

If you have installed Skype Software .如果您已安装 Skype 软件。

Then Open Skype:然后打开Skype:

Go to Menu:进入菜单:

Tools -> Options -> Advanced -> Connection.工具 -> 选项 -> 高级 -> 连接。

Uncheck the "Use port 80 and 443 for additional for incoming connections"取消选中“将端口 80 和 443 用于额外的传入连接”

Sign Out and Close the Skype software.注销并关闭 Skype 软件。 Then restart your Apache.然后重新启动你的Apache。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM