我刚刚重新安装XAMPP,当我试图在XAMPP控制面板中启动我的Apache服务器时,我现在得到以下错误:
16:50:25 [Apache] Status change detected: running
16:50:26 [Apache] Status change detected: stopped
16:50:26 [Apache] Error: Apache shutdown unexpectedly.
16:50:26 [Apache] This may be due to a blocked port, missing dependencies,
16:50:26 [Apache] improper privileges, a crash, or a shutdown by another method.
16:50:26 [Apache] Press the Logs button to view error logs and check
16:50:26 [Apache] the Windows Event Viewer for more clues
16:50:26 [Apache] If you need more help, copy and post this
16:50:26 [Apache] entire log window on the forums
我怎么解决这个问题?
步骤1:在Apache进入Config,然后选择Apache(httpd.conf)
在记事本中,找到Listen 80并添加另一个80以将端口更改为Listen 8080
请确保在关闭记事本之前保存。
步骤2:在Apache中选择Apache(httpd-ssl.conf)
在记事本中,找到Listen 443,并在443之后再添加3,将端口更改为Listen 4433
然后搜索“VirtualHost default:443”,再添加3,将端口修改为“VirtualHost default:4433”
请确保在关闭记事本之前保存。
(注:这里有一个类似的答案,但它并不适用于我,直到我喜欢YT的视频)
您可以做的简单的事情是检查Skype或VMware是否安装在您的机器上。
Skype使用端口80和443作为传入连接的附加端口。如果需要在Skype中修改端口号,请转
工具>连接选项>连接
在Skype窗口。现在将默认的80端口号更改为其他端口号。
VMware Workstation使用443端口进行共享。要改变这一点,打开VMware工作站,然后转到
编辑>首选项>共享虚拟机
点击“更改设置”按钮
然后点击“禁用共享”
然后更改正在使用的https端口号(443)
然后点击“启用共享”按钮
这就是你要做的。重新启动XAMPP并运行Apache服务器。
你可以采用上面提到的解决方案。这个问题可以通过修改你的“httpd.conf”(C:\xampp\apache\conf\httpd.conf)文件和“httpd-ssl.conf”(C:\xampp\apache\conf\extra\httpd-ssl.conf)文件来解决。
如果问题仍然存在,你可以检查你的skype端口。
But in my case this was different. I had to make changes in "server.crt"(C:\xampp\apache\conf\ssl.crt\server.crt) file.Try running your xammp apache from the command line in administration mode.
"C:\xampp\apache\bin\httpd.exe"
This will give you the errors -in which file and -which line. Likewise, I had an error in server.crt file which was blank.
If you have xammp running in any other system, just copy the contents of this file(C:\xampp\apache\conf\ssl.crt\server.crt) and paste in your server.crt file and You are Done!
感谢和问候
阿卡纳