解决方案:
进入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”就行了。
相关推荐
httpd: Could not reliably determine the server's fully qualified domain name, using 127.0.0.1 for ServerName
httpd: Could not reliably determine the server's fully qualified domain name, using 192.168.2.116 for ServerName错误 在#ServerName www.example.com:80 添加 ServerName www.example.com:80
重启 Apache 后,可能会弹出警告:AH00558: httpd: Could not reliably determine the server's fully qualified domain name, using 192.168.0.64. Set the 'ServerName' directive globally to suppress this ...
httpd: Could not reliably determine the server's fully qualified domain name, using ::1 for ServerName ``` 可以通过修改`httpd.conf`文件来解决该问题: ```bash vi /etc/httpd/conf/httpd.conf ``` 找到如下...
若启动时遇到“Could not reliably determine the server's fully qualified domain name”错误,需编辑`/etc/httpd/conf/httpd.conf`,将`ServerName www.example.com:80`改为`ServerName localhost:80`或你的实际...
如果出现“Could not reliably determine the server's fully qualified domain name”错误,需要编辑`/etc/httpd/conf/httpd.conf`文件,将`ServerName`行修改为实际的域名或IP地址,并设为开机启动。 然后,我们...
如果在重启Apache时遇到“Could not reliably determine the server's fully qualified domain name”的警告,可以在`/etc/apache2/apache2.conf`文件末尾添加: ``` ServerName 127.0.0.1 ``` 6. 重启Apache服务:...
注意,在启动Apache时,如果出现“Could not reliably determine the server's fully qualified domain name”警告,可以在Apache配置文件(如 `/usr/local/apache/conf/httpd.conf`)中添加或修改ServerName配置,...
解决启动时可能出现的`Could not reliably determine the server's fully qualified domain name`错误,编辑httpd.conf配置文件: ```bash vi /etc/httpd/conf/httpd.conf ``` 将`#ServerName www.example.com:80`改...
当遇到类似“Could not reliably determine the server's fully qualified domain name”这样的错误时,通常是因为Apache服务器在启动时无法确定其完全限定域名(FQDN),这可能会影响到HTTPS证书的绑定或其他基于域名...
sockaddr_info_get() failed”和“Could not reliably determine the server's fully qualified domain name”的错误,可以通过编辑 /etc/hosts、/etc/sysconfig/network 和 /usr/local/apache/conf/httpd.conf 文件...
若出现“Could not reliably determine the server's fully qualified domain name”错误,需要修改`/etc/httpd/conf/httpd.conf`文件中的`ServerName`配置: ```bash # 找到 ServerName 行 ServerName localhost #...
当执行重启操作时可能会遇到 “Could not reliably determine the server’s fully qualified domain name” 错误提示。这通常是因为 ServerName 未正确配置导致。解决方法是在 `/etc/apache2/apache2.conf` 文件中...
如果出现"Could not reliably determine the server's fully qualified domain name"错误,编辑`/usr/local/apache/conf/httpd.conf`,将ServerName设置为127.0.0.1:80,并重启Apache。 接下来是MySQL的安装。MySQL...
如果遇到"Could not reliably determine the server's fully qualified domain name, using 192.168.1.111 for ServerName"的错误,这表示Apache需要服务器的FQDN(完全限定域名)。你可以通过以下方式解决: 1. 在...
在启动或重启过程中,你可能会遇到"Could not reliably determine the server's fully qualified domainname"的错误。这个问题可以通过在配置文件中设置`ServerName`来解决。打开`httpd.conf`文件(位于`/etc/apache...