xammp start apache service FQA(xammp启动apache服务问题解决方案汇总)

简介: <p>xammp=apache+php+mysql  相当于一个服务集成包吧,主要是帮助用户免去配置的烦恼。</p> <p><br></p> <p><span style="font-size:18px"><strong>问题描述:</strong></span></p> <p>但是xammp也会出问题,通常是启动不了apache服务,一般会显示如下错误信息:</p> <p></p

xammp=apache+php+mysql  相当于一个服务集成包吧,主要是帮助用户免去配置的烦恼。


问题描述:

但是xammp也会出问题,通常是启动不了apache服务,一般会显示如下错误信息:

9:20:15  [Apache] 	Status change detected: stopped
<span style="color:#ff0000;">9:20:15  [Apache] 	Error: Apache shutdown unexpectedly.
9:20:15  [Apache] 	This may be due to a blocked port, missing dependencies, 
9:20:15  [Apache] 	improper privileges, a crash, or a shutdown by another method.
9:20:15  [Apache] 	Press the Logs button to view error logs and check
9:20:15  [Apache] 	the Windows Event Viewer for more clues
9:20:15  [Apache] 	If you need more help, copy and post this
9:20:15  [Apache] 	entire log window on the forums</span>

<span style="color:#ff0000;">This may be due to a blocked port, missing dependencies, </span>
表面意思是端口冲突,缺少依赖。

查看错误日志:

<span style="color:#ff0000;">[Fri Jan 10 10:22:21.035520 2014] [ssl:warn] [pid 4420:tid 252] AH01909: RSA certificate configured for www.example.com:443 does NOT include an ID which matches the server name
[Fri Jan 10 10:22:21.588552 2014] [ssl:warn] [pid 4420:tid 252] AH01909: RSA certificate configured for www.example.com:443 does NOT include an ID which matches the server name
[Fri Jan 10 10:22:21.622554 2014] [mpm_winnt:notice] [pid 4420:tid 252] AH00455: Apache/2.4.7 (Win32) OpenSSL/1.0.1e PHP/5.5.6 configured -- resuming normal operations
[Fri Jan 10 10:22:21.622554 2014] [mpm_winnt:notice] [pid 4420:tid 252] AH00456: Apache Lounge VC11 Server built: Nov 21 2013 20:13:01
[Fri Jan 10 10:22:21.622554 2014] [core:notice] [pid 4420:tid 252] AH00094: Command line: 'c:\\xampp\\apache\\bin\\httpd.exe -d C:/xampp/apache'
[Fri Jan 10 10:22:21.627554 2014] [mpm_winnt:notice] [pid 4420:tid 252] AH00418: Parent: Created child process 5252
[Fri Jan 10 10:22:22.901627 2014] [ssl:warn] [pid 5252:tid 264] AH01909: RSA certificate configured for www.example.com:443 does NOT include an ID which matches the server name
[Fri Jan 10 10:22:23.153642 2014] [ssl:warn] [pid 5252:tid 264] AH01909: RSA certificate configured for www.example.com:443 does NOT include an ID which matches the server name
[Fri Jan 10 10:22:23.183643 2014] [mpm_winnt:notice] [pid 5252:tid 264] AH00354: Child: Starting 150 worker threads.
[Fri Jan 10 10:22:51.154243 2014] [mpm_winnt:crit] [pid 5252:tid 264] AH02538: Child: Parent process exited abruptly. Child process is ending
[Fri Jan 10 10:22:51.155243 2014] [mpm_winnt:warn] [pid 5252:tid 424] (OS 995)由于线程退出或应用程序请求,已中止 I/O 操作。  : AH00341: winnt_accept: Asynchronous AcceptEx failed.
[Fri Jan 10 10:22:51.156243 2014] [mpm_winnt:warn] [pid 5252:tid 1680] (OS 995)由于线程退出或应用程序请求,已中止 I/O 操作。  : AH00341: winnt_accept: Asynchronous AcceptEx failed.
[Fri Jan 10 10:23:01.836854 2014] [ssl:warn] [pid 7528:tid 252] AH01909: RSA certificate configured for www.example.com:443 does NOT include an ID which matches the server name
[Fri Jan 10 10:23:02.099869 2014] [core:warn] [pid 7528:tid 252] AH00098: pid file C:/xampp/apache/logs/httpd.pid overwritten -- Unclean shutdown of previous Apache run?
[Fri Jan 10 10:23:02.762907 2014] [ssl:warn] [pid 7528:tid 252] AH01909: RSA certificate configured for www.example.com:443 does NOT include an ID which matches the server name
[Fri Jan 10 10:23:02.790909 2014] [mpm_winnt:notice] [pid 7528:tid 252] AH00455: Apache/2.4.7 (Win32) OpenSSL/1.0.1e PHP/5.5.6 configured -- resuming normal operations
[Fri Jan 10 10:23:02.790909 2014] [mpm_winnt:notice] [pid 7528:tid 252] AH00456: Apache Lounge VC11 Server built: Nov 21 2013 20:13:01
[Fri Jan 10 10:23:02.790909 2014] [core:notice] [pid 7528:tid 252] AH00094: Command line: 'c:\\xampp\\apache\\bin\\httpd.exe -d C:/xampp/apache'
[Fri Jan 10 10:23:02.795909 2014] [mpm_winnt:notice] [pid 7528:tid 252] AH00418: Parent: Created child process 7340
[Fri Jan 10 10:23:03.757964 2014] [ssl:warn] [pid 7340:tid 264] AH01909: RSA certificate configured for www.example.com:443 does NOT include an ID which matches the server name
[Fri Jan 10 10:23:03.968976 2014] [ssl:warn] [pid 7340:tid 264] AH01909: RSA certificate configured for www.example.com:443 does NOT include an ID which matches the server name
[Fri Jan 10 10:23:04.004978 2014] [mpm_winnt:notice] [pid 7340:tid 264] AH00354: Child: Starting 150 worker threads.
[Fri Jan 10 10:59:08.633788 2014] [ssl:warn] [pid 6956:tid 252] AH01909: RSA certificate configured for www.example.com:443 does NOT include an ID which matches the server name
[Fri Jan 10 10:59:08.664790 2014] [core:warn] [pid 6956:tid 252] AH00098: pid file C:/xampp/apache/logs/httpd.pid overwritten -- Unclean shutdown of previous Apache run?
[Fri Jan 10 10:59:08.844800 2014] [ssl:warn] [pid 6956:tid 252] AH01909: RSA certificate configured for www.example.com:443 does NOT include an ID which matches the server name
[Fri Jan 10 10:59:08.880802 2014] [mpm_winnt:notice] [pid 6956:tid 252] AH00455: Apache/2.4.7 (Win32) OpenSSL/1.0.1e PHP/5.5.6 configured -- resuming normal operations
[Fri Jan 10 10:59:08.880802 2014] [mpm_winnt:notice] [pid 6956:tid 252] AH00456: Apache Lounge VC11 Server built: Nov 21 2013 20:13:01
[Fri Jan 10 10:59:08.880802 2014] [core:notice] [pid 6956:tid 252] AH00094: Command line: 'c:\\xampp\\apache\\bin\\httpd.exe -d C:/xampp/apache'
[Fri Jan 10 10:59:08.885802 2014] [mpm_winnt:notice] [pid 6956:tid 252] AH00418: Parent: Created child process 5836
[Fri Jan 10 10:59:09.862858 2014] [ssl:warn] [pid 5836:tid 264] AH01909: RSA certificate configured for www.example.com:443 does NOT include an ID which matches the server name
[Fri Jan 10 10:59:10.046869 2014] [ssl:warn] [pid 5836:tid 264] AH01909: RSA certificate configured for www.example.com:443 does NOT include an ID which matches the server name
[Fri Jan 10 10:59:10.083871 2014] [mpm_winnt:notice] [pid 5836:tid 264] AH00354: Child: Starting 150 worker threads.
系统找不到指定的路径。</span>


我也看不出个所以然来。


解决方案:(主要是针对端口问题)

1.常规做法

You shuld run file setup_xampp.bat in XAMP folder first!

2.修改apache监听端口

on your XAMPP control panel, next to apache, select the "Config" option and select the first file (httpd.conf):

there, look for the "listen" line (you may use the find tool in the notepad) and there must be a line stating "Listen 80". Note: there are other lines with "listen" on them but they should be commented (start with a #), the one you need to change is the one saying exactly "listen 80". Now change it to "Listen 1337".

Start apache now.

If the error subsists, it's because there's another port that's already in use. So, select the config option again (next to apache in your xampp control panel) and select the second option this time (httpd-ssl.conf):

there, look for the line "Listen 443" and change it to "Listen 7331".

Start apache, it should be working now.

3.如果你装了skype,可能是skype占用端口,修改之
If you are using the latest Skype, go to:

Tools -> Options -> Advanced -> connection.

Disable the 'Use port 80 and 443 for alternatve.. ' 
Sign Out and Close all Skype windows. Try restart your Apache again.


4.如果你启动了IIS服务(微软的web服务),关闭之

It means port 80 is already used by another one.

Simply follow these steps:

Open windows -> click on Run (win + R) -> type services.msc
Goto IIS Admin -> Right click on it and click on Stop Option.
Open XAMPP click on Start Action of Apache Module, Apache Module is run.
OR

For find the port of Apache (80) in Command Prompt simply type netstat -aon it displays present used ports on windows, under Local Address column it shown as 0.0.0.0:80. If it displays this port another connection is already used this port number.

Active Connections in Windows XP:



相关文章
|
17天前
|
存储 缓存 算法
分布式锁服务深度解析:以Apache Flink的Checkpointing机制为例
【10月更文挑战第7天】在分布式系统中,多个进程或节点可能需要同时访问和操作共享资源。为了确保数据的一致性和系统的稳定性,我们需要一种机制来协调这些进程或节点的访问,避免并发冲突和竞态条件。分布式锁服务正是为此而生的一种解决方案。它通过在网络环境中实现锁机制,确保同一时间只有一个进程或节点能够访问和操作共享资源。
40 3
|
26天前
|
Linux 网络安全 Apache
CentOS 7.2配置Apache服务httpd(上)
CentOS 7.2配置Apache服务httpd(上)
169 1
|
21天前
|
存储 分布式计算 druid
大数据-155 Apache Druid 架构与原理详解 数据存储 索引服务 压缩机制
大数据-155 Apache Druid 架构与原理详解 数据存储 索引服务 压缩机制
40 3
|
26天前
|
Linux PHP Apache
CentOS 7.2配置Apache服务httpd(下)
CentOS 7.2配置Apache服务httpd(下)
45 1
|
3月前
|
Ubuntu Linux 测试技术
在Linux中,已知 apache 服务的访问日志按天记录在服务器本地目录/app/logs 下,由于磁盘空间紧张现在要求只能保留最近7天的访问日志,请问如何解决?
在Linux中,已知 apache 服务的访问日志按天记录在服务器本地目录/app/logs 下,由于磁盘空间紧张现在要求只能保留最近7天的访问日志,请问如何解决?
|
3月前
|
Ubuntu 应用服务中间件 Linux
在Linux中,如何查看Apache或Nginx服务的状态?
在Linux中,如何查看Apache或Nginx服务的状态?
|
4月前
|
Linux 持续交付 Apache
在Linux中通过ansible自动化部署apache服务
【7月更文挑战第11天】Linux中用Ansible自动化部署Apache服务:1. 确保Ansible已安装;2. 在`/etc/ansible/hosts`配置目标主机,如\[webservers\] server1 server2;3. 编写Playbook `apache_deploy.yml`更新系统并安装、启动Apache;4. 执行`ansible-playbook apache_deploy.yml`。适用于快速部署至多台服务器,减少配置错误和成本。
|
3月前
|
存储 消息中间件 Java
Apache Flink 实践问题之原生TM UI日志问题如何解决
Apache Flink 实践问题之原生TM UI日志问题如何解决
44 1
|
12天前
|
SQL Java API
Apache Flink 2.0-preview released
Apache Flink 社区正积极筹备 Flink 2.0 的发布,这是自 Flink 1.0 发布以来的首个重大更新。Flink 2.0 将引入多项激动人心的功能和改进,包括存算分离状态管理、物化表、批作业自适应执行等,同时也包含了一些不兼容的变更。目前提供的预览版旨在让用户提前尝试新功能并收集反馈,但不建议在生产环境中使用。
401 13
Apache Flink 2.0-preview released
|
2月前
|
SQL 消息中间件 关系型数据库
Apache Doris Flink Connector 24.0.0 版本正式发布
该版本新增了对 Flink 1.20 的支持,并支持通过 Arrow Flight SQL 高速读取 Doris 中数据。

推荐镜像

更多