2014-11-16 97 views
0

我刚在我的电脑上安装了XAMPP,它似乎没有启动。我收到此错误:XAMPP不启动

21:34:50 [Apache] Attempting to start Apache app... 
21:34:50 [Apache] Status change detected: running 
21:34:51 [Apache] Status change detected: stopped 
21:34:51 [Apache] Error: Apache shutdown unexpectedly. 
21:34:51 [Apache] This may be due to a blocked port, missing dependencies, 
21:34:51 [Apache] improper privileges, a crash, or a shutdown by another method. 
21:34:51 [Apache] Press the Logs button to view error logs and check 
21:34:51 [Apache] the Windows Event Viewer for more clues 
21:34:51 [Apache] If you need more help, copy and post this 
21:34:51 [Apache] entire log window on the forums 

回答

0

尝试改变Apache的监听端口,开放 “的httpd.conf” 文件(C:\ XAMPP的\ apache的\的conf \ httpd.conf文件),然后换行:

#Listen 12.34.56.78:80 Listen 80

#Listen 12.34.56.78:80 Listen 9000 or other number

保存并重新启动Apache服务器。这个对我有用。

0

其他程序如Skype使用相同的端口。如果您通常使用Skype,并且您不想更改“httpd.conf”,请尝试取消选中选项 - >高级配置 - >允许Skype使用这些端口的连接中的选项。

这是我的情况的解决方案。

-1

两种方法:

1 - 尝试改变默认的Apache监听端口从80到81,开放 “的httpd.conf” 谁是(C:\ XAMPP的\ apache的\的conf \ httpd.conf文件)

#Listen 12.34.56.78:80 
Listen 81 

2,在Windows尝试停止服务IIS-2,使用权限做开放终端输入放入系统命令停止和启动它

net stop WAS 
net start W3SVC 
+0

这真的不添加任何东西,考虑到已经建议改变港口。 – Andrius

+0

第二种方法不要修改任何端口 –