`

解决httpd: Could not reliably determine the server's fully qualified domain name

阅读更多



解决方案:

进入apache的安装目录:

  Windows : D:\Program Files\Apache Software Foundation\Apache2.2\conf

  linux : /etc/httpd/conf

打开编辑httpd.conf

将里面的#ServerName localhost:80注释去掉即可。

再重新启动httpd

然后可以通过浏览器访问http://localhost:80,如果页面显示“It works!”,即表示apache已安装并启动成功。

 

 

 

 

如果启动还是失败,并且没有报任何异常,那就要看一下日志,如果有下列字样

曾经遇到同样的问题,试试如下解决方法:

已经找到原因,是mod_nss证书过期导致,修复方法如下:

首先检查apache的error_log,我在/var/log/httpd/nss_error_log文件中看到如下错误。

[Fri May 31 20:33:04 2013] [notice] suEXEC mechanism enabled (wrapper: /usr/sbin/suexec)
[Fri May 31 20:38:02 2013] [notice] suEXEC mechanism enabled (wrapper: /usr/sbin/suexec)
[Fri May 31 20:41:58 2013] [notice] suEXEC mechanism enabled (wrapper: /usr/sbin/suexec)
[Fri May 31 20:50:02 2013] [notice] suEXEC mechanism enabled (wrapper: /usr/sbin/suexec)
[Fri May 31 20:51:47 2013] [notice] suEXEC mechanism enabled (wrapper: /usr/sbin/suexec)
[Fri May 31 20:56:20 2013] [notice] suEXEC mechanism enabled (wrapper: /usr/sbin/suexec)
[Fri May 31 20:57:18 2013] [notice] suEXEC mechanism enabled (wrapper: /usr/sbin/suexec)
[Fri May 31 20:57:45 2013] [notice] suEXEC mechanism enabled (wrapper: /usr/sbin/suexec)
[Fri May 31 21:07:35 2013] [notice] suEXEC mechanism enabled (wrapper: /usr/sbin/suexec)



找到/etc/httpd/conf.d/nss.conf文件,配置文件中有个如下配置,其实需要将 SSLEngine 置为”off”就行了。









 

2
0
分享到:
评论

相关推荐

Global site tag (gtag.js) - Google Analytics