WAMP/Xamp Apache服务器无法启动 [英] WAMP / Xamp Apache Server not Starting

查看:225
本文介绍了WAMP/Xamp Apache服务器无法启动的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

前几天,我的Wamp服务器停止启动(服务器将无法启动).我已卸载,重新安装等.我将计算机恢复运行了4天.然后,我运行Xampp服务器,并遇到了完全相同的问题.对我来说,这表示Windows问题.每次启动HTTPD.exe都会崩溃.我已经关闭防火墙和防病毒软件了.

The other day my Wamp server stopped starting (server will not start). I uninstalled, reinstalled etc. I restored my computer back 4 days to where it ran fine. Then I ran Xampp server and had the exact same problem. To me this indicates a Windows problem. HTTPD.exe crashes every time it is initiated. I have shut off the firewall and antivirus to no avail.

cmd中运行netstat -o给了我127.0.0.1:31595和更高的端口.端口80未被使用且已清除.

running netstat -o in cmd gives me 127.0.0.1:31595 and higher ports. Port 80 is not in use and is clear.

在服务中(wampapache),当我尝试启动获得的服务

In Services (wampapache) when I attempt to start the service I get

错误1058,由于以下任一原因,无法启用该服务 失效或没有启用的设备".

error 1058, "The service cannot be enabled because it is either diabled or has no enabled devices".

Apache日志给了我

[mpm_winnt:error] [pid 10764:tid 2012](OS 10022)无效的参数 已提供. :AH00332:winnt_accept:侦听getsockname错误 套接字,是否可以使用IPv6?

[mpm_winnt:error] [pid 10764:tid 2012] (OS 10022)An invalid argument was supplied. : AH00332: winnt_accept: getsockname error on listening socket, is IPv6 available?

事件查看器给了我

故障处理应用程序名称:httpd.exe,版本:2.4.3.0,时间戳: 0x502f70a3
故障模块名称:nvLsp.dll,版本:2.2.0.7316,时间戳:0x4a80a5fd
异常代码:0xc00000fd
故障偏移量:0x0000c257
进程ID错误:0x2390
错误的应用程序开始时间:0x01cde46e3fdd7d20
错误的应用程序路径:C:\ xampp \ apache \ bin \ httpd.exe 错误的模块路径:C:\ Program Files \ NVIDIA Corporation \ NetworkAccessManager \ bin32 \ nvLsp.dll
报告ID:7eee3b80-5061-11e2-886a-00248c1defca

Faulting application name: httpd.exe, version: 2.4.3.0, time stamp: 0x502f70a3
Faulting module name: nvLsp.dll, version: 2.2.0.7316, time stamp: 0x4a80a5fd
Exception code: 0xc00000fd
Fault offset: 0x0000c257
Faulting process id: 0x2390
Faulting application start time: 0x01cde46e3fdd7d20
Faulting application path: C:\xampp\apache\bin\httpd.exe Faulting module path: C:\Program Files\NVIDIA Corporation\NetworkAccessManager\bin32\nvLsp.dll
Report Id: 7eee3b80-5061-11e2-886a-00248c1defca

这是Win 7家庭高级版,Wamp是64位,Xampp是32位.两者都曾经工作过.我在这里阅读了其他主题,但它们主要适用于XP.

This is Win 7 home premium, Wamp is 64 bit and Xampp is 32 bit. Both worked before. I have read other threads here but they apply mainly to XP.

EDIT如果进入Nvidia网络控制器并禁用了第一个数据包,我已经做了一件事情.这使Xampp(部分服务器将保持绿色,但仍然没有本地主机)可以工作,但Wamp无法工作.

EDIT One thing I have done if went into Nvidia network controller and disabled the first packet. This got Xampp(partially, server will stay green but still no localhost) to work but not Wamp.

推荐答案

记录下来,这帮助我解决了问题:

For the record, this helped me getting it solved:

  • 检查是否可以通过程序而不是服务来启动apache,而是通过命令提示符启动! httpdhttpd -e debug表示所有可能的错误&调试消息 如果无法启动,则可能会告诉您原因(例如php或apache配置错误)
  • 如果仍然不能正常运行,请通过命令提示符安装并作为服务*运行,以查看是否还有其他问题.
    httpd -k installhttpd -k start
    检查命令提示符下的输出,error.log和Windows System Event Viewer(Windows日志/系统)
  • Check if you can start apache as program, not service, but via command prompt! httpd or httpd -e debug for all possible error & debug messages If it won't start, it will probably tell you the reason (e.g. php or apache configuration error)
  • If still not OK then install and run it as a service* via command prompt to see if there is anything else wrong.
    httpd -k install and httpd -k start
    Check output at command prompt, error.log and Windows System Event Viewer (Windows Logs/System)

对我来说,这使我知道我的httpd.conf中有错误. 一段时间后,我发现它与别名目录有关,可能与权限有关.更改文件夹的权限无济于事(可能是BC.我不知道默认服务使用的用户),但是更改服务以我的用户(即admin)身份登录确实可以.

For me this learned me that I had errors in my httpd.conf. After a while I discovered it had something to do with my alias directory, probably permissions. Changing permissions on folder didn't help much (probably bc. I don't know which User the default service uses), but changing service to log on as my user (which is admin) did work.

* 如果您拥有xampp或wamp,则将其删除,否则您将有两次输入.

这篇关于WAMP/Xamp Apache服务器无法启动的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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