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

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:

时间: 2025-01-20 14:10:05

xammp start apache service FQA(xammp启动apache服务问题解决方案汇总)的相关文章

无法启动mysql服务问题解决办法汇总

在本地计算机无法启动MYSQL服务错误1067进程意外终止 这种情况一般是my.ini文件配置出错了 首先找到这个文件: 默认安装路径  代码如下 复制代码 C:/Program Files/MySQL/MySQL Server 5.1/my.ini   打开此文件找到:default-storage-engine=INNODB   大概在84行. 将default-storage-engine的值改为:MYISAM,这个时候,MYSQL服务可以启动. 但是还有问题:因为以前你创建的那些数据库还

C#启动windows服务方法的相关问题分析_C#教程

C#启动windows服务的方法都是什么呢?C#启动服务类型为Disabled的windows服务会遇到什么样的问题呢?那么本文就向你介绍C#启动windows服务的方法的相关内容. C#启动windows服务的方法是什么呢?来让我们开始吧: C#启动windows服务的由来:我们知道, 在C#代码中启动一个已经存在的windows服务,我们可以用这样的代码来完成: 复制代码 代码如下: //ACPI is an example of service name System.ServicePro

Linux系统下操作Apache最基本的启动停止和重启命令_Linux

本文假设你的apahce安装目录为/usr/local/apache2,这些方法适合任何情况 apahce启动命令: 推荐/usr/local/apache2/bin/apachectl start apaceh启动 apache停止命令 /usr/local/apache2/bin/apachectl stop 停止 apache重新启动命令: /usr/local/apache2/bin/apachectl restart 重启 要在重启 Apache 服务器时不中断当前的连接,则应运行:

apache虚拟主机配置-php在配置apache虚拟主机时启动虚拟主机配置后就无法启动apache

问题描述 php在配置apache虚拟主机时启动虚拟主机配置后就无法启动apache 在httpd.conf 配置虚拟主机: Virtual hosts ,虚拟主机 Include conf/extra/httpd-vhosts.conf 将上一句Include这句话打开后,apache就无法启动了,而且其他的配置都检查了,没有问题. 查看了error.log (部分log)是这样的: Starting the Apache2.2 service The Apache2.2 service is

Centos设置开机启动Apache和Mysql[总结]

1.前言 最近学习搭建wordpress,需要用到apahce和mysql.我是下载源代码进行安装的,安装在/url/local目录下,每次开机都需要手动启动,有点麻烦.如是想设置开机启动,从网上查了一下,如何设置,总结一下,方便以后使用. 2.设置方法 有两种方法,一种是修改配置文件,一种是通过添加启动项. 方法一:根据系统启动的初始化过程,修改配置文件 Centos中的运行模式2.3.5都把/etc/rc.d/rc.local做为初始化脚本中的最后一个,所以用户可以自己在这个文件中添加一些需

电脑出现无法启动Apache服务器的问题如何解决

  电脑出现无法启动Apache服务器的问题如何解决           1.按Win+R键打开运行,cmd并回车; 2.打开命令提示符后,输入"netstat -ano",按回车键,查看端口的使用情况; 3.右击任务栏,选择"启动任务管理器",在进程中,查看PID一栏中占用软件端口的进程,并选中点击结束进程即可; 4.如果仍没有解决问题,则打开"网络和共享中心"--"更改适配器设置"; 5.右击打开"本地连接&qu

mysql-XAMPP重新安装后,Apache和MySQL都启动不了

问题描述 XAMPP重新安装后,Apache和MySQL都启动不了 而且查看错误日志的时候显示找不到文件求大家指点 解决方案 http://zhidao.baidu.com/link?url=NxcGlGjj28xOF84H_M09uPhEO61AAVVpm3gU0omcvlz6wQvxrsgc5x-AdYM4B0PWfjD4MXGlRgGZiEFZSd5I9_ 解决方案二: http://www.fdeer.com/a/xindejingyan/2012/1216/44.html 解决方案三:

在XAMPP v3.2.1中,启动apache时,弹出“directive &amp;#39;register_globals&amp;#39; is no longer availble in PHP”警告。

        最近,玩WordPress的时候,曾经修改过php.ini中全局变量的属性:register_globals,本来值是Off,但在学习的过程中,为了能够使用某些原有的函数,故而将其属性值改为On.这样导致一个警告,这个警告并不是在运行php文件时弹出的,而是每次启动apache服务器的时候,两次弹出一个警告框.         directive 'register_globals' is no longer availble in PHP.         所以,一旦出现这样的

Windows系统下Apache、PHP无法启动问题总结_win服务器

最近经常被问到Apache无法启动的问题,所以写一篇文章,总结一下Windows下经常遇到的 Apache/PHP 无法启动的情况的解决方法. Apache/PHP 无法启动分两种情况: 1.Apache无法启动,没加载php也无法启动 2.Apache可以启动,但加载php后无法启动 第一种情况多数是Apache配置问题,或者80端口被占用 使用Apache的配置检查: 复制代码 代码如下: C:\>D:\Apache2.2\bin\httpd.exe -t Syntax OK 根据错误提示,