电脑教程
位置:首页>> 电脑教程>> windows教程>> windows 10下XAMPP无法启动Apache的解决方法图解详细教程

windows 10下XAMPP无法启动Apache的解决方法图解详细教程

  发布时间:2023-10-14 12:32:52 

标签:windows,10下,XAMPP,无法,启动,Apache,的,解决,方法

在全新的windows10操作系统中安装XAMPP之后,发现电脑会出现apache无法启动的问题,并且还会返回类似于下面的错误信息具体现象如下所示:

windows 10下XAMPP无法启动Apache的解决方法图解详细教程
 

错误信息:

9:52:41 AM  [Apache]     This may be due to a blocked port, missing dependencies, 9:52:41 AM  [Apache]     improper privileges, a crash, or a shutdown by another method.9:52:41 AM  [Apache]     Press the Logs button to view error logs and check9:52:41 AM  [Apache]     the Windows Event Viewer for more clues9:52:41 AM  [Apache]     If you need more help, copy and post this9:52:41 AM  [Apache]     entire log window on the forums

解决方法:

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

2、在安装文件夹下面找到..XAMPPpacheconf,并在这个目录下的httpd.conf 文件中  所有80换成82或其他未被占用的端口。该文件总共有三处提到了80端口,全部改成82(或其他你选择的端口)。

3、(本步并非所有人都需要)有的同学如果已经修改过httpd-vhosts文件,那么还需要在...XAMPPpacheconfextra 这个路径中找到 httpd-vhosts.conf,把80端口也全部改成82或其他端口。

443端口被占用:

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

2、再次回到XAMPP的主界面,启动apache,这次应该就能顺利运行。

0
投稿

猜你喜欢

手机版 电脑教程 asp之家 www.aspxhome.com