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

我怎么解决这个问题?


当前回答

解决方案是卸载xampp并重新安装。这是可行的

其他回答

按照这个方法立即解决!

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

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

解决! ! ! !

发生这种情况是因为默认端口80被Apache阻塞。您需要更改端口或使端口可访问。

转到Apache安装中的Apache配置(httpd.conf)文件。

找到这些台词:

#

听192.168.1.2:80

听80

#

这里192.168.1.2是我的私有IP地址。根据你的改变。

变更如下

听192.168.1.2:8081

听8081

现在,当您访问localhost时,您必须显式地将端口添加为 http://localhost: 8081 /…

对我有用的技巧是,

以管理员身份启动XAMPP

我尝试使用httpd更改端口。Config和httpd-ssl.config。它结束了我把它保存在。txt文件。也在右边顶部使用配置。没有工作

我正在使用VMworkstation。

首先确保你的\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。它应该运行!

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

net stop http

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