mapserver(ms4w版本)执行apache-install.bat后显示
*****************
Installing the Apache MS4W Web Server service
The Apache MS4W Web Server service is successfully installed.
Testing httpd.conf....
Errors reported here must be corrected before the service can be started.
httpd: Could not reliably determine the server's fully qualified domain name, using 192.168.1.101 for ServerName
(OS 10013)以一种访问权限不允许的方式做了一个访问套接字的尝试。 : make_sock: could not bind to address 0.0.0.0:80
no listening sockets available, shutting down
Unable to open logs
Apache MS4W Web Server 服务正在启动 .
Apache MS4W Web Server 服务无法启动。
发生服务特定错误: 1.
请键入 NET HELPMSG 3547 以获得更多的帮助。
******************************************
问题分析:一方面可以看到” make_sock: could not bind to address 0.0.0.0:80“,另一方面可以从install.bat中分析,有一行命令 net start "Apache MS4W Web Server",说明启动服务没成功,然后可以联想到tomcat端口可能不是80,此时到apache-install.bat同级目录的Apache\conf\httpd.conf修改其中的端口,从80端口修改为你的tomcat端口号,重新启动即可。
如果在浏览器中输入http://127.0.0.1/cgi-bin/mapserv.exe 显示如下,说明安装成功。
No query information to decode. QUERY_STRING is set, but empty.