阿帕奇开始但马上停下来

时间:2013-11-11 19:52:12

标签: apache

有一段时间我无法启动apache (我没有skype运行)

我试过谷歌搜索但没有帮助 我尝试重新安装,同样的事情。试过easyphp,同样的事也发生了 当我开始它时它说它开始了,但几秒钟后它说它已停止,并显示错误

  

20:39:59 [Apache]尝试启动Apache服务...
  20:40:01 [Apache]检测到状态变化:运行
  20:40:06 [Apache]检测到状态变化:已停止
  20:40:06 [Apache]错误:Apache意外关闭。
  20:40:06 [Apache]这可能是由于端口被阻塞,缺少依赖性,   20:40:06 [Apache]不正当的权限,崩溃或其他方法的关闭   20:40:06 [Apache]按Logs按钮查看错误日志并检查
  20:40:06 [Apache] Windows事件查看器获取更多线索
  20:40:06 [阿帕奇]如果您需要更多帮助,请复制并发布此内容   20:40:06 [Apache]论坛上的整个日志窗口

错误日志文件:

[Mon Nov 11 20:40:01.984375 2013] [ssl:warn] [pid 3940:tid 248] AH01909: RSA certificate configured for www.example.com:443 does NOT include an ID which matches the server name
[Mon Nov 11 20:40:02.703125 2013] [ssl:warn] [pid 3940:tid 248] AH01909: RSA certificate configured for www.example.com:443 does NOT include an ID which matches the server name
[Mon Nov 11 20:40:02.921875 2013] [mpm_winnt:notice] [pid 3940:tid 248] AH00455: Apache/2.4.4 (Win32) OpenSSL/0.9.8y PHP/5.4.19 configured -- resuming normal operations
[Mon Nov 11 20:40:02.921875 2013] [mpm_winnt:notice] [pid 3940:tid 248] AH00456: Server built: Feb 23 2013 13:07:34  
[Mon Nov 11 20:40:02.921875 2013] [core:notice] [pid 3940:tid 248] AH00094: Command line: 'c:\\program files\\xampp\\apache\\bin\\httpd.exe -d C:/Program Files/xampp/apache'
[Mon Nov 11 20:40:02.921875 2013] [mpm_winnt:notice] [pid 3940:tid 248] AH00418: Parent: Created child process 2176  
[Mon Nov 11 20:40:04.875000 2013] [ssl:warn] [pid 2176:tid 1876] AH01909: RSA certificate configured for www.example.com:443 does NOT include an ID which matches the server name
[Mon Nov 11 20:40:05.734375 2013] [ssl:warn] [pid 2176:tid 1876] AH01909: RSA certificate configured for www.example.com:443 does NOT include an ID which matches the server name
[Mon Nov 11 20:40:05.984375 2013] [mpm_winnt:crit] [pid 2176:tid 1876] (OS 10022)An invalid argument was supplied.  : AH00405: Child: WSASocket failed to open the inherited socket  
[Mon Nov 11 20:40:05.984375 2013] [mpm_winnt:crit] [pid 3940:tid 248] AH00427: Parent: child process 2176 exited with status 3 -- Aborting.  

希望有人知道问题是什么

1 个答案:

答案 0 :(得分:1)

您的某个域(www.example.com)似乎没有正确配置ssl。尝试在 httpd.conf 文件中评论Include (path)/(to)/httpd-ssl.conf包含行和LoadModule ssl_module modules/mod_ssl.so

如果ssl配置中的注释有效,则可能是您的计算机上正在使用SSL端口(443)。取消注释以上内容,然后在 httpd-ssl.conf 中,尝试将行Listen 443更改为备用(非使用中)端口号,即Listen 49199

在命令行中,您可以使用netstat -aon查看计算机上当前正在使用的端口。

相关问题