【问题标题】:XAMPP - Apache ErrorXAMPP - Apache 错误
【发布时间】:2014-11-14 11:29:23
【问题描述】:

这是我尝试启动 Apache 时遇到的错误。

错误日志是:

 [ssl:warn] [pid 7132:tid 392] AH01909: www.example.com:443:0 server certificate does NOT include an ID which matches the server name
 [ssl:warn] [pid 7132:tid 392] AH01909: www.example.com:443:0 server certificate does NOT include an ID which matches the server name
 [mpm_winnt:notice] [pid 7132:tid 392] AH00455: Apache/2.4.10 (Win32) OpenSSL/1.0.1i PHP/5.5.15 configured -- resuming normal operations
 [mpm_winnt:notice] [pid 7132:tid 392] AH00456: Apache Lounge VC11 Server built: Jul 17 2014 11:50:08
 [core:notice] [pid 7132:tid 392] AH00094: Command line: 'C:\\xampp\\apache\\bin\\httpd.exe -d C:/xampp/apache'
 [mpm_winnt:notice] [pid 7132:tid 392] AH00418: Parent: Created child process 540
 [ssl:warn] [pid 540:tid 408] AH01909: www.example.com:443:0 server certificate does NOT include an ID which matches the server name
 [ssl:warn] [pid 540:tid 408] AH01909: www.example.com:443:0 server certificate does NOT include an ID which matches the server name
 [mpm_winnt:notice] [pid 540:tid 408] AH00354: Child: Starting 150 worker threads.

我不明白问题出在哪里。有人可以帮忙吗?

我在 httpd.conf 文件的下面几行中更改了端口

Listen 80
ServerName localhost:80

还有其他文件需要我更改这些值吗?

【问题讨论】:

    标签: apache xampp


    【解决方案1】:

    当我以管理员权限运行 XAMPP 控制面板时,它起作用了。

    【讨论】:

      【解决方案2】:

      您只需在 httpd.conf 中更改端口
      试试:

      netstat -ano 
      

      并检查端口 80 是否未被其他程序使用。 关闭使用端口 80 的程序并尝试再次启动 apache。

      【讨论】:

      • 好吧。我将端口更改为 78,任何其他程序都没有使用它。我仍然得到错误。
      • ServerName 的默认值是多少?本地主机或本地主机:80?我这里没有 httpd.conf 来检查它,但我认为正确的值只是 localhost127.0.0.1
      • 原来是localhost:80。
      猜你喜欢
      • 2015-11-10
      • 2017-07-17
      • 2017-10-01
      • 2013-08-20
      • 2014-06-19
      • 1970-01-01
      • 2021-10-04
      相关资源
      最近更新 更多