<html><head></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; ">Did you try just "<a href="http://localhost/cgi-bin/mapserv">http://localhost/cgi-bin/mapserv</a>" &nbsp;?<div><br></div><div>--john</div><div><br><div><div>On Jan 16, 2012, at 1:11 PM, M Badar wrote:</div><br class="Apple-interchange-newline"><blockquote type="cite"><font class="Apple-style-span" face="'courier new', monospace">Greetings,<br><br>New user to the list. &nbsp;I am installing mapserver on my MacBook Pro. &nbsp;The installation has progressed without error until I attempt to call the 'mapserv' cgi executable from safari; it returns the following error after running the final check as described in the documentation:<br>
<br># Page 40, MapServer Documentation, Release 6.0.1; 4.1.8 Installation - The basic install.<br><br># This is the final test to ensure mapserver is installed and functioning correctly.<br># When attempting to access the test URL, safari returns the following error:<br>
<br># Test URL: <a href="http://localhost.com/cgi-bin/mapserv">http://localhost.com/cgi-bin/mapserv</a><br><br># Safari error:<br><br># safari can't open the page "<a href="http://localhost.com/cgi-bin/mapserv">http://localhost.com/cgi-bin/mapserv</a>" because the server<br>
# unexpectedly dropped the connection.<br><br>Mapserver version: 6.0.1<br>Mac OS X version: 10.6.8<br>Safari version: 5.1.2<br><br>My suspicion is the error is related to how mapserver and apache are communicating; however, not being apache literate, I don't know where to begin diagnosing the connection problem. &nbsp;I ran a syntax check on the httpd.conf file and it returned the following:<br>
<br>Michael-Badars-MacBook-Pro:bin bobby$ apachectl -t<br>httpd: Could not reliably determine the server's fully qualified domain name, using<br>Michael-Badars-MacBook-Pro.local for ServerName<br>Syntax OK<br>Michael-Badars-MacBook-Pro:bin bobby$<br>
<br>The above error is returned regardless if I am connected to the internet via a wireless or hardwired connection.<br><br>Listed below are details regarding my installation.<br><br>Thanks in advance for any help you can provide.<br>
<br>Mike Badar<br><br>#<br># Map Server 6.0.1 "configure" script.<br>#<br><br># Author: Mike Badar<br># Date: 29 December, 2011<br># Version: 3<br><br>./configure &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; \<br>
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;--with-curl-config=/usr/local/bin/curl-config &nbsp; &nbsp; \<br>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;--with-gdal=/usr/local/bin/gdal-config &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;\<br>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;--with-geos=/usr/local/bin/geos-config &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;\<br>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;--with-ogr=/usr/local/bin/gdal-config &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; \<br>
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;--with-postgis=/usr/local/pgsql/bin/pg_config &nbsp; &nbsp; \<br>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;--with-xml2-config=/usr/local/bin/xml2-config &nbsp; &nbsp; \<br>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;\<br>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;--with-agg=/usr/local &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; \<br>
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;--with-freetype=/usr/local &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;\<br>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;--with-gd=/usr/local &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;\<br>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;--with-httpd=/usr/local/apache2/bin/httpd &nbsp; &nbsp; &nbsp; &nbsp; \<br>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;--with-jpeg=/usr/local &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;\<br>
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;--with-proj=/usr/local &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;\<br>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;--with-tiff=/usr/local &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;\<br>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;\<br>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;--with-wfsclient &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;\<br>
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;--with-wmsclient &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;\<br>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;--with-threads &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;\<br>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;--with-wcs &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;\<br>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;\<br>
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;--enable-debug<br><br>#<br># Mapserver version.<br>#<br>Michael-Badars-MacBook-Pro:cgi-bin bobby$ ./mapserv -v<br>MapServer version 6.0.1 \<br><br>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;OUTPUT=GIF \<br>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;OUTPUT=PNG \<br>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;OUTPUT=JPEG \<br>
<br>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;SUPPORTS=PROJ \<br>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;SUPPORTS=AGG \<br>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;SUPPORTS=FREETYPE \<br>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;SUPPORTS=ICONV \<br>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;SUPPORTS=WMS_SERVER \<br>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;SUPPORTS=WMS_CLIENT \<br>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;SUPPORTS=WFS_CLIENT \<br>
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;SUPPORTS=WCS_SERVER \<br>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;SUPPORTS=THREADS \<br>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;SUPPORTS=GEOS \<br><br>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;INPUT=OGR \<br>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;INPUT=GDAL \<br>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;INPUT=SHAPEFILE<br><br>#<br># Page 39, MapServer Documentation, Release 6.0.1; Step 9 test.<br>
#<br>Michael-Badars-MacBook-Pro:cgi-bin bobby$ ./mapserv<br>This script can only be used to decode form results and<br>should be initiated as a CGI process via a httpd server.<br>Michael-Badars-MacBook-Pro:cgi-bin bobby$<br>
<br>#<br># Apache version.<br>#<br>Michael-Badars-MacBook-Pro:bin bobby$ apachectl -v<br>Server version: Apache/2.2.20 (Unix)<br>Server built: &nbsp; Sep 12 2011 17:42:56<br>Michael-Badars-MacBook-Pro:bin bobby$<br><br>#<br># /usr/local/apache2/conf/httpd.conf; mapserver additions.<br>
#<br><br># ServerRoot<br>ServerRoot "/usr/local/apache2"<br><br># Apache port.<br>Listen 80<br><br># Cgi directory; ScriptAlias; Log file.<br>&lt;Directory /usr/local/apache2/cgi-bin&gt;<br>Options +ExecCGI +FollowSymLinks<br>
&lt;/Directory&gt;<br><br>ScriptAlias /cgi-bin/ /usr/local/apache2/cgi-bin/<br><br>#<br># Log file.<br>#<br>ScriptLog logs/cgi_log<br>ErrorLog "logs/error_log"<br><br># Display user 'www'<br><br>Michael-Badars-MacBook-Pro:~ root# dscl . -read /Users/www<br>
AppleMetaNodeLocation: /Local/Default<br>AuthenticationAuthority: ;ShadowHash;<br>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;;Kerberosv5;<br>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;;_www@LKDC:SHA1.458017A5A4386C409A25B49470E08467DC7022AF<br>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;;LKDC:SHA1.458017A5A4386C409A25B49470E08467DC7022AF;<br>
GeneratedUID: FFFFEEEE-DDDD-CCCC-BBBB-AAAA00000046<br>NFSHomeDirectory: /Library/WebServer<br>Password: ********<br>PrimaryGroupID: 70<br>RealName:<br>World Wide Web Server<br>RecordName: _www www<br>RecordType: dsRecTypeStandard:Users<br>
UniqueID: 70<br>UserShell: /usr/bin/false<br>Michael-Badars-MacBook-Pro:~ root#<br><br># Check /usr/local/apache2/conf/httpd.conf for syntax errors.<br><br>Michael-Badars-MacBook-Pro:bin bobby$ apachectl -t<br>httpd: Could not reliably determine the server's fully qualified domain name, using<br>
Michael-Badars-MacBook-Pro.local for ServerName<br>Syntax OK<br>Michael-Badars-MacBook-Pro:bin bobby$<br><br># Start apache and check for the existence of the httpd process.<br><br>Michael-Badars-MacBook-Pro:logs root# apachectl start<br>
Michael-Badars-MacBook-Pro:logs root# ps -ajx|grep httpd<br>root &nbsp; &nbsp; &nbsp; 526 &nbsp; &nbsp; 1 &nbsp; 526 59ff000 &nbsp; &nbsp;0 Ss &nbsp; &nbsp; ?? &nbsp; &nbsp;0:00.18 /usr/sbin/httpd -D FOREGROUND<br>_www &nbsp; &nbsp; &nbsp; 527 &nbsp; 526 &nbsp; 526 59ff000 &nbsp; &nbsp;0 S &nbsp; &nbsp; &nbsp;?? &nbsp; &nbsp;0:00.00 /usr/sbin/httpd -D FOREGROUND<br>
root &nbsp; &nbsp; &nbsp; 529 &nbsp; 391 &nbsp; 528 5a00110 &nbsp; &nbsp;2 S+ &nbsp; s001 &nbsp; &nbsp;0:00.00 grep httpd<br>Michael-Badars-MacBook-Pro:logs root#<br><br># Page 40, MapServer Documentation, Release 6.0.1; 4.1.8 Installation - The basic install.<br># This is the final test to ensure mapserver is installed and functioning correctly.<br>
# When attempting to access the test URL, safari returns the following error:<br><br># Test URL: <a href="http://localhost.com/cgi-bin/mapserv">http://localhost.com/cgi-bin/mapserv</a><br><br># Safari error:<br><br># safari can't open the page "<a href="http://localhost.com/cgi-bin/mapserv">http://localhost.com/cgi-bin/mapserv</a>" because the server<br>
# unexpectedly dropped the connection.<br><br># Port 80 /etc/services<br><br>http &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; 80/udp &nbsp; &nbsp; www www-http # World Wide Web HTTP<br>http &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; 80/tcp &nbsp; &nbsp; www www-http # World Wide Web HTTP<br><br># /etc/services<br>
<br>Michael-Badars-MacBook-Pro:~ bobby$ cat /etc/hosts<br>##<br># Host Database<br>#<br># localhost is used to configure the loopback interface<br># when the system is booting. &nbsp;Do not change this entry.<br>##<br># 127.0.0.1 localhost<br>
#<br># This line was added in an attempt to diagnose why apache is dropping connections<br># to mapserver.<br>#<br>127.0.0.1 &nbsp; &nbsp; &nbsp; localhost.localdomain &nbsp; localhost # Mapserver diagnostic line.<br><br><br>255.255.255.255 broadcasthost<br>
::1 &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; localhost<br>fe80::1%lo0 localhost<br>Michael-Badars-MacBook-Pro:~ bobby$</font>
_______________________________________________<br>mapserver-users mailing list<br><a href="mailto:mapserver-users@lists.osgeo.org">mapserver-users@lists.osgeo.org</a><br>http://lists.osgeo.org/mailman/listinfo/mapserver-users<br></blockquote></div><br></div></body></html>