Xampp 报告“Apache 意外关闭";错误 [英] Xampp reports "Apache shutdown unexpectedly" error

查看:18
本文介绍了Xampp 报告“Apache 意外关闭";错误的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

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

Xampp we ran a while Apache crashes, but do not know the cause.

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

推荐答案

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

I had the same issue when I tried to get Apache to start in XAMPP. Most answers I came across had to do with going into "Services" and making the "World Wide Web Publishing Service" Stop. However, when I looked for it in "Services" (Windows 10) it wasn't there, so I tried another route and it worked. Here are the steps I took:

  1. 在 XAMPP 控制面板中,点击 Apache 的config",然后访问 (httpd.conf)
  2. 找到以下内容:#Listen 12.34.56.78:80 #Listen 80"(#Listen 80"将在第二行,由于某种原因,当我在此处复制时,Stack Overflow 会扭曲文本.
  3. 将第二行改为Listen 8080"
  4. 下拉到ServerName localhost: 80" &将其更改为ServerName localhost:8080"
  5. 保存并关闭文件
  6. 在 XAMPP 控制面板中,点击 Apache 的config",然后访问 (httpd-ssl.conf)
  7. 找到以下内容:聆听 443"和将其更改为听 4433"
  8. 下拉到,"改成"
  9. 保存并关闭文件.

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

Now, when you click for Apache to start, it should turn green and all will be well. If this doesn't help try the popular fix of locating the "World Wide Web Publishing Service" and right click to "Stop" it - it didn't work for me, but it might work for you. I really hope this helps someone out there.

这篇关于Xampp 报告“Apache 意外关闭";错误的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆