XAMPP未启动
我刚刚在我的电脑上安装了XAMPP,但它似乎不起作用。我得到这个错误:XAMPP未启动,xampp,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: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
尝试更改Apache的侦听端口,打开“httpd.conf”文件(C:\xampp\Apache\conf\httpd.conf),然后更改行:
#听12.34.56.78:80
听80
#听12.34.56.78:80
收听9000或其他号码
保存并重新启动Apache服务器。它适合我。像Skype这样的其他程序使用相同的端口。如果您通常使用Skype并且不想更改“httpd.conf”,请尝试在选项->高级配置->连接中取消标记允许Skype使用这些端口的选项 这就是我的解决方案。两种方法: 1-尝试将Apache的默认侦听端口从80更改为81,打开位于(C:\xampp\Apache\conf\httpd.conf)中的“httpd.conf” 2-在windows上尝试停止服务IIS-2,以使用权限打开终端并键入这些命令来停止和启动它
net stop WAS
net start W3SVC
考虑到已经建议更改端口,这实际上没有添加任何内容。第二种方法不修改任何端口
net stop WAS
net start W3SVC