Apache HTTP Server 2.2.25执行Test Configuration时报错(Could not reliably determine the server's fully qualified domain name, using 192.168.0.103 for ServerName)

以httpd-2.2.25-win32-x86-openssl-0.9.8y.msi为例。

Apache HTTP Server 2.2.25执行Test Configuration时,实际上是直接运行了httpd.exe

Apache HTTP Server 2.2.25执行Test Configuration时报错(Could not reliably determine the server's fully qualified domain name, using 192.168.0.103 for ServerName)


C:Program Files (x86)Apache Software FoundationApache2.2in>httpd.exe
httpd.exe: Could not reliably determine the server's fully qualified domain name, using 192.168.0.103 for ServerName
(OS 10048)Only one usage of each socket address (protocol/network address/port) is normally permitted.  : make_sock: could not bind to address 0.0.0.0:80
no listening sockets available, shutting down
Unable to open logs

C:Program Files (x86)Apache Software FoundationApache2.2in>

打开httpd.conf,搜索ServerName

Apache HTTP Server 2.2.25执行Test Configuration时报错(Could not reliably determine the server's fully qualified domain name, using 192.168.0.103 for ServerName)

去掉注释即可。

Apache HTTP Server 2.2.25执行Test Configuration时报错(Could not reliably determine the server's fully qualified domain name, using 192.168.0.103 for ServerName)


C:Program Files (x86)Apache Software FoundationApache2.2in>httpd.exe
(OS 10048)Only one usage of each socket address (protocol/network address/port) is normally permitted.  : make_sock: could not bind to address 0.0.0.0:80
no listening sockets available, shutting down
Unable to open logs

C:Program Files (x86)Apache Software FoundationApache2.2in>