我刚刚重新安装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

我怎么解决这个问题?


当前回答

您可以做的简单的事情是检查Skype或VMware是否安装在您的机器上。

Skype使用端口80和443作为传入连接的附加端口。如果需要在Skype中修改端口号,请转

工具>连接选项>连接

在Skype窗口。现在将默认的80端口号更改为其他端口号。

VMware Workstation使用443端口进行共享。要改变这一点,打开VMware工作站,然后转到

编辑>首选项>共享虚拟机

点击“更改设置”按钮 然后点击“禁用共享” 然后更改正在使用的https端口号(443) 然后点击“启用共享”按钮

这就是你要做的。重新启动XAMPP并运行Apache服务器。

其他回答

下载新的xampp apachefriends 安装它 删除所有VPN应用程序 打开XAMPP文件夹运行setup_xampp.bat 运行xampp-control.exe

我遇到了同样的问题,结果是我忘记运行setup_xampp.bat(可移植版本)。

试试下面的方法,上面的方法都不能解决我的问题

选择“以管理员身份运行”

然后点击Apache旁边的左边大框

并选择卸载Apache

我不知道为什么这样做,但它直接解决了我的问题!

按照这个方法立即解决!

这是来要么它没有访问启动一个服务监听端口

Soln:使用管理员权限

这是因为系统上已经运行了一个端口80,443

Soln:使用netstat -ano |查找“0.0.0.0:443”,然后使用taskkill /pid ENTER_PROCESS_ID /F关闭并重启Apache

搜索正在运行的后台服务,你不需要的可能是mongo,节点服务器等,关闭它们 如果没有工作,打开httpd.conf和httpd-ssl.conf文件,将443替换为4431,将80替换为8080 没有任何工作可能是由于与文件相关的问题,所以再次安装XAMPP在一个没有空间C:\XAMPP的位置

解决! ! ! !

你可以在XAMPP目录下运行apache_start.bat文件查看你的错误细节。