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.ID和Geethika这样的最佳解决方案是重新配置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

转载于:https://www.cnblogs.com/zhouie/p/10702588.html

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

  1. 安装mysql3306被占用_安装mysql提示3306端口已经被占用解决方案

    今天遇到的问题是这样的,之前已经安装过mysql了,一直用的好好的,但是今天开启服务时报异常,无法启动.为了省事,于是想到卸载重装,在安装的过程中发现3306已经被占用,这也是一开始服务无法启动的原因 ...

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

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

  3. Ubuntu安装过程中出现“没有定义根文件系统”,Ubuntu安装过程中无法读取Windows分区

    最近在使用Wubi安装Ubuntu 12.04.2 LTS的过程中,在重启进入Ubuntu安装界面时,弹出"没有定义根文件系统"的通知,在网上查询解决方案良久未找到合适的解决方法. ...

  4. ps安装程序检测到计算机重启过程,photoshop cs6安装过程中安装程序遇到错误:请重启计算机,解决办法...

    1.关闭防火墙和杀毒软件 2.删除注册表 依次展开HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Session Manager目录,找到其中的 ...

  5. Vmare horizon client 5.0安装过程中自动取消

    Vmare horizon client 5.0安装过程中自动取消 从vmare官网下载的vmare horizon client 5.0安装过程中出现自动取消安装.希望本篇文档可能会对您有所帮助,但 ...

  6. 如何让不精通电脑的你用很少的价钱大幅度提高你的电脑速度?(手把手装固态+装系统教程,适用于电脑有光驱位且没有装固态的童鞋,文末有自己安装过程中经验QA)

    如何让不精通电脑的你用很少的价钱大幅度提高你的电脑速度?(手把手装固态+装系统教程,适用于电脑有光驱位且没有装固态的童鞋,文末有自己安装过程中经验Q&A) 1.场景再现(可跳过): ----- ...

  7. Office安装出错的解决方法,如“Microsoft Office Professional Plus 2013在安装过程中出错”。

    一.问题 把原来的Office卸载之后再重新下载安装,出现"Microsoft Office Professional Plus 2013在安装过程中出错"等问题. 二.安装出错解 ...

  8. Centos7+mysql57+python3安装过程中踩过的坑

    Centos7+mysql57+python3安装过程中踩过的坑 说明: 为了练习Django项目,准备在虚拟机中安装Centos7+mysql57+python3.在windows环境下通过Navi ...

  9. VisualSVN Server安装过程中出现Service“Visual Server” failed to start.“ 问题解决方案

    安装svn服务器的时候一直出现这个界面, 按照网上的方式,修改证书啊,将启动方式改为本地啊,都没有解决, 那么只能查看日志,看到底是哪里错了 [总结] 最后我还是把它卸载了,然后重新安装,使用默认路径 ...

最新文章

  1. 修改sh文件_修改Android分区大小
  2. 《研磨设计模式》chap13 命令模式
  3. python创建缩略图和选择轮廓效果
  4. 经典排序算法(2)——快速排序算法详解
  5. 查询数据库前十条数据_入门数据分析的一些建议
  6. Spring Cloud(5)---基于 Spring Cloud 完整的微服务架构实战
  7. java web不用框架_初学javaweb,远离各自框架
  8. python进入上下文管理器_浅谈Python中with(上下文管理器)的用法
  9. 5G+AIoT“零碳”解决方案 | 模组助力“4S” 融合的新一代智能汽车驶入快车道
  10. win10如何安装系统得日语输入法(亲测)
  11. PADS9.5 导入立创元器件库卡顿
  12. python课设参考文献_Python课程设计任务书
  13. 班级网站java,ssm班级网站
  14. 量化投资 | 统计套利策略
  15. 重新认识 D 编程语言 —— 基础篇
  16. 【转载】用Python计算身份证校验码
  17. 【流畅的Python学习笔记】2023.4.21
  18. PowerBulider-Working with validation rules
  19. 绝世舞姬计算机弹音乐,绝世舞姬(伴奏)
  20. 银联在线支付从upop切换到全渠道的交易流程

热门文章

  1. html是一种网页设计语言,html网页设计教程
  2. 如何在Python中定义变量
  3. IMU:姿态解算算法集合
  4. python 爬虫 处理429错误
  5. 1D卷积网络HAR(人体活动识别)实践
  6. elasticsearch通用工具类
  7. 路由器web向导页面
  8. 第一个帖子,先灌灌水
  9. CSP题目:小明种苹果树
  10. 深入解析png图片解码技术