XAMPP之二-Apache无法启动解决办法

报错:

[Apache] Problem detected!
12:26:24 [Apache] Port 80 in use by “Unable to open process” with PID 4!
12:26:24 [Apache] Apache WILL NOT start without the configured ports free!
12:26:24 [Apache] You need to uninstall/disable/reconfigure the blocking application
12:26:24 [Apache] or reconfigure Apache and the Control Panel to listen on a different po
在这里插入图片描述

1、点击XAMPP右侧的Netstat按钮,看一下是不是有哪个程序正在使用80或者443端口。在我的例子当中,可以看到443端口没有被占用,而80端口被系统占用。

在这里插入图片描述在这里插入图片描述

2、在安装文件夹下面找到…\xampp\apache\conf\,并在这个目录下的httpd.conf 文件中 所有80换成88或其他未被占用的端口。

在这里插入图片描述

3、修改过httpd-vhosts文件,那么还需要在…\xampp\apache\conf\extra\ 这个路径中找到 httpd-vhosts.conf,把80端口也全部改成88或其他端口。

在这里插入图片描述

4、如果443端口也被占用,打开安装路径下…\xampp\apache\conf\extra 下的httpd-ssl.conf文件,将Listen 443这句注释掉:添加“#”变为“# Listen 443”,或将443改为其他未被占用的端口。

在这里插入图片描述

**5、回到XAMPP的主界面,启动apache,就可以运行了。

在这里插入图片描述
在这里插入图片描述

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值