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

查看:220
本文介绍了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单击配置",然后访问(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. 保存并关闭文件.
  1. From the XAMPP Control Panel, click "config" for Apache, and access (httpd.conf)
  2. Locate the following: "#Listen 12.34.56.78:80 #Listen 80" (the "#Listen 80" will be on a second line, for some reason Stack Overflow distorts the text when I duplicate it here.
  3. Change the second line to "Listen 8080"
  4. Drop down to "ServerName localhost: 80" & change it to "ServerName localhost: 8080"
  5. Save and Close the file
  6. From the XAMPP Control Panel, click "config" for Apache, and access (httpd-ssl.conf)
  7. Locate the following: "Listen 443" & change it to "Listen 4433"
  8. Drop down to "," change it to ""
  9. Save and Close the file.

现在,当您单击启动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天全站免登陆