Xampp 报告“Apache 意外关闭”错误

use*_*852 0 apache xampp

我们跑了一会儿Apache Xampp 崩溃了,但是不知道是什么原因。

8:16:54 AM  [Apache]    Status change detected: stopped
8:16:54 AM  [Apache]    Error: Apache shutdown unexpectedly.
8:16:54 AM  [Apache]    This may be due to a blocked port, missing dependencies, 
8:16:54 AM  [Apache]    improper privileges, a crash, or a shutdown by another method.
8:16:54 AM  [Apache]    Press the Logs button to view error logs and check
8:16:54 AM  [Apache]    the Windows Event Viewer for more clues
8:16:54 AM  [Apache]    If you need more help, copy and post this
8:16:54 AM  [Apache]    entire log window on the forums
Run Code Online (Sandbox Code Playgroud)

Rac*_*ams 5

当我试图让 Apache 在 XAMPP 中启动时,我遇到了同样的问题。我遇到的大多数答案都与进入“服务”并停止“万维网发布服务”有关。但是,当我在“服务”(Windows 10)中查找它时,它不存在,所以我尝试了另一条路线并且它起作用了。以下是我采取的步骤:

  1. 从 XAMPP 控制面板,单击 Apache 的“配置”,然后访问 (httpd.conf)
  2. 找到以下内容:“#Listen 12.34.56.78:80 #Listen 80”(“#Listen 80”将在第二行,出于某种原因,当我在这里复制文本时,堆栈溢出会扭曲文本。
  3. 把第二行改成“听8080”
  4. 下拉到“ServerName localhost:80”并将其更改为“ServerName localhost:8080”
  5. 保存并关闭文件
  6. 从 XAMPP 控制面板,单击 Apache 的“配置”,然后访问 (httpd-ssl.conf)
  7. 找到以下内容:“聆听 443”并将其更改为“聆听 4433”
  8. 下拉到“”,将其更改为“”
  9. 保存并关闭文件。

现在,当您单击 Apache 启动时,它应该会变成绿色,一切都会好起来的。如果这无济于事,请尝试定位“万维网发布服务”并右键单击以“停止”它的流行修复 - 它对我不起作用,但它可能对您有用。我真的希望这可以帮助那里的人。