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

时间:2024-04-11 13:43:59

报错:

[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
XAMPP之二-Apache无法启动解决办法

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

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

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

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

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

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

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

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

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

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