我刚刚重新安装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
我怎么解决这个问题?
你可以采用上面提到的解决方案。这个问题可以通过修改你的“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!
感谢和问候
阿卡纳
首先确保你的\xampp文件夹在根目录下!这很重要,因为路径是相对的。
然后确保以管理员权限运行xampp_control.exe。
然后更改下面的文件,以避免阻塞端口80的问题。
在\xampp\xampp-control.ini中应该这样设置:
[ServicePorts]
Apache=8080
ApacheSSL=4433
找到\xampp\apache\conf\httpd.conf并设置:
Listen 8080
ServerName localhost:8080
找到\xampp\apache\conf\extra\httpd-ssl.conf并设置:
Listen 4433
<VirtualHost _default_:4433>
ServerName www.example.com:4433
然后结束所有服务,以admin权限重新启动xampp-control.exe。它应该运行!
您可以做的简单的事情是检查Skype或VMware是否安装在您的机器上。
Skype使用端口80和443作为传入连接的附加端口。如果需要在Skype中修改端口号,请转
工具>连接选项>连接
在Skype窗口。现在将默认的80端口号更改为其他端口号。
VMware Workstation使用443端口进行共享。要改变这一点,打开VMware工作站,然后转到
编辑>首选项>共享虚拟机
点击“更改设置”按钮
然后点击“禁用共享”
然后更改正在使用的https端口号(443)
然后点击“启用共享”按钮
这就是你要做的。重新启动XAMPP并运行Apache服务器。