0

有一段时间我无法启动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 [Apache] 如果您需要更多帮助,请复制并发布这个
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.  

希望有人知道问题是什么

4

1 回答 1

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中,尝试将 line(s)Listen 443更改为替代(未使用)端口号,即Listen 49199.

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

于 2013-11-11T20:01:40.847 回答