我刚刚在我的电脑上安装了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 :(得分: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 Server。它对我有用。
答案 1 :(得分:0)
Skype等其他程序使用相同的端口。如果您经常使用Skype并且您不想更改“httpd.conf”,请尝试取消标记选项 - >高级配置中的选项 - >连接,允许Skype使用这些端口。
这是我的解决方案。
答案 2 :(得分:-1)
两种方法:
1 - 尝试将Apache的默认侦听端口从80更改为81,打开" httpd.conf"谁在(C:\ xampp \ apache \ conf \ httpd.conf)
#Listen 12.34.56.78:80
Listen 81
2-on windows尝试停止服务IIS-2,使用权限打开终端并键入thoses命令停止并启动它
net stop WAS
net start W3SVC