Apache 不会在 wamp 中启动 [英] Apache won't start in wamp

查看:35
本文介绍了Apache 不会在 wamp 中启动的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

过去几个小时我一直在谷歌搜索,但我根本无法在 wamp 上启动我的 apache.我的 Skype 没有运行,测试端口 80 显示它没有被任何东西使用.在这发生之前,我试图添加一个新的虚拟主机,但现在我已经恢复了我所做更改的所有文件.无论如何要调试为什么 apache 无法启动?

I have been googling for the past few hours but I simply can't get my apache on wamp to start. My skype isn't running, and the test port 80 shows it isn't being used by anything. Before this happened, I was trying to add a new vhost, but now I have reverted back all of the files where I made changes. Anyway to debug why apache won't start?

点击 apache 的启动/恢复服务也没有显示任何错误.

Clicking on start/resume service for apache doesn't show any errors either.

为了以防万一,我运行的是 Win7 64 位

Also just in case, I am running Win7 64bit

推荐答案

如果您在 httpd.conf 或其中包含的任何文件中遇到问题,有几种方法可以找出问题所在

If you have an issue in the httpd.conf or any files included by it there are a couple of ways to find out what the problem is

首先查看您的 Windows 事件查看器.单击左侧菜单中的 Windows 链接,然后单击子菜单 Applications.查找带有红色错误图标的来自 Apache 的消息.

First look at your Windows Event Viewer. Click on the Windows link in the menu on the left, and then submenu Applications. Look for messages from Apache with the red error icon.

其次,打开一个命令窗口,然后CD进入\wamp\bin\apache\apache2.x.y\bin,用你的实际版本替换x,y.现在你可以运行这个命令让 Apache(httpd) 验证 httpd.conf 文件.

Secondly, open a command window, then CD into \wamp\bin\apache\apache2.x.y\bin, replace x,y with your actual version. Now you can run this command to get Apache(httpd) to vaidate the httpd.conf file.

httpd.exe -t

这应该会给出与 http.conf 文件相关的行号错误.它在第一个错误时停止,因此您必须继续运行它并修复错误,然后再次运行它,直到它给出所有 OK 消息.

This should give errors with line numbers related to the http.conf file. It stops on the first error, so you will have to keep running it and fixing the error and then run it again until it gives the all OK message.

这篇关于Apache 不会在 wamp 中启动的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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