Fix XAMPP Apache Not Starting Because Port 80 In Use

XAMPP中Apache服务器无法启动,出现该问题的最常见原因是由于默认端口号80可能已被其他程序(如Skype,Teamviewer等)使用。

得到了以下消息,其中说明了另一个程序使用的80端口

I can not start Apache because of the problem mentioned below.
I can not understand how to solve it. Any body help me, please. 3:07:06 PM [main] Initializing Control Panel
3:07:06 PM [main] Windows Version: Windows 7 Ultimate 32-bit
3:07:06 PM [main] XAMPP Version: 1.8.3
3:07:06 PM [main] Control Panel Version: 3.2.1 [ Compiled: May 7th 2013 ]
3:07:06 PM [main] You are not running with administrator rights! This will work for
3:07:06 PM [main] most application stuff but whenever you do something with services
3:07:06 PM [main] there will be a security dialogue or things will break! So think
3:07:06 PM [main] about running this application with administrator rights!
3:07:06 PM [main] XAMPP Installation Directory: “c:\xampp\”
3:07:06 PM [main] Checking for prerequisites
3:07:07 PM [main] All prerequisites found
3:07:07 PM [main] Initializing Modules
3:07:07 PM [Apache] Problem detected!
3:07:07 PM [Apache] Port 80 in use by “Unable to open process” with PID 4!
3:07:07 PM [Apache] Apache WILL NOT start without the configured ports free!
3:07:07 PM [Apache] You need to uninstall/disable/reconfigure the blocking application
3:07:07 PM [Apache] or reconfigure Apache and the Control Panel to listen on a different port
3:07:07 PM [main] Starting Check-Timer
3:07:07 PM [main] Control Panel Ready
3:08:54 PM [Apache] Problem detected!
3:08:54 PM [Apache] Port 80 in use by “Unable to open process” with PID 4!
3:08:54 PM [Apache] Apache WILL NOT start without the configured ports free!
3:08:54 PM [Apache] You need to uninstall/disable/reconfigure the blocking application
3:08:54 PM [Apache] or reconfigure Apache and the Control Panel to listen on a different port
3:08:54 PM [Apache] Attempting to start Apache app…
3:08:54 PM [Apache] Status change detected: running
3:08:56 PM [Apache] Status change detected: stopped
3:08:56 PM [Apache] Error: Apache shutdown unexpectedly.
3:08:56 PM [Apache] This may be due to a blocked port, missing dependencies,
3:08:56 PM [Apache] improper privileges, a crash, or a shutdown by another method.
3:08:56 PM [Apache] Press the Logs button to view error logs and check
3:08:56 PM [Apache] the Windows Event Viewer for more clues
3:08:56 PM [Apache] If you need more help, copy and post this
3:08:56 PM [Apache] entire log window on the forums

解决方案1:找到并停止冲突程序 重启Apache服务器

如果您仔细阅读此XAMPP消息,您将看到他们提供解决方案 - 卸载/禁用或重新配置阻止程序。一般来说,Apache最常见的冲突程序是Skype, 如果是这种情况 退出/停止 Skype并重新运行Apache查看。 我还听过Teamviewer,Microsoft Internet Server等其他程序也使用端口80并妨碍Apache启动。

然而,这并不是最佳解决方案。 如果今天这个程序妨碍Apache启动,明天那一个程序(甚至像Windows Web发布服务等服务)同样也可以使用相同的端口妨碍Apache运行。

解决方案2:更改XAMPP 中 Apache Server的默认端口80,443

因此,像EL.Web.IDGeethika这样的最佳解决方案是重新配置XAMPP Apache服务器以侦听和使用不同的端口号。


1、首先,您需要打开Apache 的配置文件 httpd.conf并将其配置为在新端口号上使用/监听

单击并打开XAMPP控制面板Apache的 Config 按钮, 在打开的弹出菜单中,单击并打开 httpd.conf


2、在 httpd.conf 文件中搜索 listen,定位到类似这段代码位置

#Listen 12.34.56.78:80
Listen 80

将端口号更改为你选择的(如端口1234),如下所示

#Listen 12.34.56.78:1234
Listen 1234

3、接下来,httpd.conf 文件中查找 rverName localhost:,将其设置为新端口号

ServerName localhost:1234

4、保存并关闭 httpd.conf 文件


5、再次单击并打开XAMPP控制面板Apache的 Config 按钮,并打开 httpd-ssl.conf 文件


6、同样地,在 httpd-ssl.conf 文件中搜索 listen,将

Listen 443

修改为

Listen 1443

7、 接下来,httpd-ssl.conf 文件中搜索 <VirtualHost _default_:443>,将其设置为新端口号 (如1443)

同样地,在其中搜索 ServerName

ServerName www.example.com:443  or   ServerName localhost:433

ServerName 修改为新端口号(如1443)


8、保存并关闭 httpd-ssl.conf 文件


9、最后,还有一个地方你应该去改变端口号。

单击并打开XAMPP控制面板Apache的 Config 按钮,然后单击 Service and Port Settings 按钮,选中 Apache 选项卡,然后在 main portSSL port 框中输入并保存新端口号 (1234,1443)。


如果一切顺利,您的Apache服务器应该便正常启动了,XAMPP控制面板中的 Apache 端口号 已更改为您设置的新端口号


英文原文

Fix XAMPP Apache Not Starting Because Port 80 In Use

修复XAMPP安装过程中 因端口80被占用 Apache无法启动的问题的更多相关文章

  1. XAMPP安装过程中,出现的问题

    这次运行一个简单的前端(html+css+js+ajax)+php后端项目,运行XAMPP的时候,出现两个问题: phpmyadmin运行不起来,一直报1544错误 请求本地图片及php文件报403错 ...

  2. 用友ERP-U8最新破解(再次更新版本,附安装过程中的解决办法)

    新版用友u8.70下载地址:http://ftp.shangyuchem.com/应用软件/用友ERP-U8管理软件(8.70版).rar 准备好安装环境,因为需要SQLSERVER和IIS支持,而个 ...

  3. oracle 11g在安装过程中出现监听程序未启动或数据库服务未注册到该监听程序

    15511477451 原文 oracle 11g在安装过程中出现监听程序未启动或数据库服务未注册到该监听程序? 环境:win7 64位系统.oracle11g数据库 问题描述:在win7 64位系统 ...

  4. MySQL5.7 安装过程中出现 attempting to start service 过不去

    MySQL5.7 安装过程中出现 attempting to start service 过不去. 1,机制打开服务,把MySql服务名启动(我的是MySqlAliyun) 启动失败:提示1067错误 ...

  5. iOS cocopods安装使用和安装过程中遇到的问题及解决办法

    在osx 10.11之前cocopods问题不多,但是升级到11之后的版本,之前的cocopods大多用不了,需要重新安装,对于我这种使用测试版系统的技术狂来说,每次都需要重新安装很多东西, 当然,c ...

  6. ltib安装过程中遇到好多问题,从网上转来的好多份总结

    最近调试MPC5125的板子,第一步LTIB都装不过去,挫败感十足. LTIB的安装镜像来自于freescale的ltib-mpc5121ads-200906,是用于Ubuntu 10版本之前的,现在 ...

  7. ubuntu安装过程中遇到的一些问题及解决办法。

    由于ubuntu与win10的双系统安装过程百度一下就有很多,在此不再赘述. (其实主要是忘记拍照片了,我一个菜鸡说得肯定也没有那些大佬们好,但网上确实也很多哈,加上有中文引导安装,问题不大.) 此篇 ...

  8. JAVA安装过程中出现的“javac不是内部或外部指令”的解决方法

    近来重新安装了JAVA,安装过程中出现问题,网上找到解决办法,汇总发布. 解决流程: 1.确定自己的环境变量设置没问题,没有出现遗漏 : . 等情况 (具体环境变量设置百度) 2.环境变量设置后 ,d ...

  9. SQL Server 2008 安装过程中遇到“性能计数器注册表配置单元一致性”检查失败 问题的解决方法

    操作步骤: 1. 在 Microsoft Windows 2003 或 Windows XP 桌面上,依次单击"开始"."运行",然后在"打开&quo ...

随机推荐

  1. notepad++中快速插入当前时间方法

    转载自:http://blog.csdn.net/donghustone/article/details/7436483 在notepad++中快速插入当前时间方法: 插件是notepad++的一大优 ...

  2. ActiveMQ(3) ActiveMQ创建(simpleAuthenticationPlugin)安全认证

    控制端安全认证: ActiveMQ目录conf下jetty.xml: <bean id="securityLoginService" class="org.ecli ...

  3. jsp分页完善版

    明天要考网络工程师了,而且这两天校运会,把那个分页的完善了下,明天考试,祈祷吧,我根本都没看书啊,所以只能去长见识了.100大洋啊,下个学期我想考考证了,不然以后出去麻烦了.呵呵,不多说还是说说自己对 ...

  4. 【SPOJ-QTREE3】树链剖分

    http://www.spoj.com/problems/QTREE3/ 时间限制:2s    代码长度限制:50000B     内存限制:1536MB [题目描述] 给出N个点的一棵树(N-1条边 ...

  5. 【uva11468-Substring】AC自动机+dp

    http://acm.hust.edu.cn/vjudge/problem/31655 题意:给定k个模板串,n个字符以及选择它的概率pro[i],要构造一个长度问L的字符串s,问s不包含任意一个模板 ...

  6. 【EOJ3652】乘法还原(二分图)

    题意: 思路:Orz Claris 先找出所有平方项,将与有平方项的数有关的数对暂时忽略,剩下的直接连边就是一张二分图,暴力DFS染色 将有平方项的数两边都加一个,再判字典序即可 我不会判字典序……耽 ...

  7. The service base of EF I am using

    using CapMon.Data; using System; using System.Collections.Generic; using System.Linq; using System.T ...

  8. js没有重载

    javascript与其他语言(如java)不同,它没有传统意义上的重载(即为函数编写两个定义,只要这两个函数的参数类型或数量不同即可),在js中,后定义的函数会覆盖先前的函数.js中的参数在内部是用 ...

  9. python面向对象之继承与派生

    一.继承 继承是一种创建新的类的方式,在python中,新建的类可以继承自一个或者多个父类,原始类称为基类或超类,新建的类称为派生类或子类. python中类的继承分为:单继承和多继承,如果是多继承的 ...

  10. python3 购物车练习

    # 购物车# 功能要求:# 要求用户输入总资产,例如:2000# 显示商品列表,让用户根据序号选择商品,加入购物车# 购买,如果商品总额大于总资产,提示账户余额不足,否则,购买成功.# 可充值.某商品 ...