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

我怎么解决这个问题?


当前回答

按照这个方法立即解决!

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

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的位置

解决! ! ! !

其他回答

即使我也有这个问题,我解决了,在我的情况下,它是不同的。

首先,我尝试卸载skype,但没有工作。但是在我的windows 10桌面中,我默认安装了IIS(Internet Information Server),指向80端口。

我所做的就是将端口号更改为8081,并重新启动XAMPP,这对我来说很有效。

但是我没有使用IIS。

这里是https://support.microsoft.com/en-in/help/149605/how-to-change-the-tcp-port-for-iis-services的链接

对我来说,这个问题始于我在Windows 8电脑上托管vpn连接时。

简单地删除连接从“控制面板\网络和互联网\网络连接”解决了这个问题。

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

对我来说,万维网发布服务使用的是80端口。我通过在cmd上运行以下命令来杀死它:

net stop http

在那之后,XAMPP运行Apache没有任何问题。

当我使用命令发现没有进程使用端口80时

netstat -abno | find ":80"

使用端口80的任何进程都没有问题。

然后我运行命令(在cmd中)

C:\xampp\apache\bin\httpd.exe

它在httpd-vhosts.conf文件中的虚拟主机配置中显示了一些错误,该文件最近由我编辑,用于在Eclipse IDE中的WordPress PHP环境中安装。所以我删除了这些行,Apache开始得很好。