<div>Thanks again to everyone who provided input.  The gist of the problem was related to a conflict between the version of apache I had installed and the version which is shipped with OS X.  Listed below are the steps I followed to eliminate the problem:</div>
<div><br></div><div>1. Completely uninstall the apache version shipped with OS X;</div><div>2. Ran &#39;find&#39; to search for http occurrences on the filesystem: find / -name &#39;*http*&#39; -print;</div><div>3. Deleted the following file to stop OS X from starting apache automatically:</div>
<div><br></div><div>     /System/Library/LaunchDaemons/org.apache.httpd.plist</div><div><br></div><div>4. Start apache manually with &#39;apachectl&#39;</div><div><br></div><div>     /usr/local/apache2/bin/apachectl start</div>
<div><br></div><div>5. Access the mapserver URL as follows:</div><div><br></div><div>     <a href="http://localhost/cgi-bin/mapserv">http://localhost/cgi-bin/mapserv</a></div><div><br></div><div>6. Success - the following was displayed by Safari:</div>
<div><br></div><div>    <font class="Apple-style-span" face="&#39;courier new&#39;, monospace"> </font><font class="Apple-style-span" face="arial, helvetica, sans-serif">No query information to decode. QUERY_STRING is set, but empty.</font></div>
<div><font class="Apple-style-span" face="arial, helvetica, sans-serif" size="3"><br></font></div><div><font class="Apple-style-span" face="arial, helvetica, sans-serif">7. Let the fun begin!</font></div><div><font class="Apple-style-span" face="arial, helvetica, sans-serif"><br>
</font></div><div><font class="Apple-style-span" face="arial, helvetica, sans-serif">Although I&#39;m not sure which of the steps above actually fixed the problem, I believe it was steps 1 and 3 which were the critical parts of the solution.</font></div>
<div><font class="Apple-style-span" face="arial, helvetica, sans-serif"><br></font></div><div><font class="Apple-style-span" face="arial, helvetica, sans-serif">Take care,</font></div><div><font class="Apple-style-span" face="arial, helvetica, sans-serif"><br>
</font></div><div><font class="Apple-style-span" face="arial, helvetica, sans-serif">Mike Badar</font></div><div><font class="Apple-style-span" face="arial, helvetica, sans-serif"><br></font></div><div><font class="Apple-style-span" face="arial, helvetica, sans-serif">#</font></div>
<div><font class="Apple-style-span" face="arial, helvetica, sans-serif"># Original post.</font></div><div><font class="Apple-style-span" face="arial, helvetica, sans-serif">#</font></div><div><br></div><div>Thanks, everyone.</div>
<div><br></div><div>With /etc/hosts set to:</div><div><br></div><div>127.0.0.1       localhost   localhost </div><div><br></div><div>and accessing the URL:</div><div><br></div><div><a href="http://localhost.com/cgi-bin/mapserv">http://localhost.com/cgi-bin/mapserv</a></div>
<div><br></div><div>I get the error:</div><div><br></div><div># safari can&#39;t open the page &quot;<a href="http://localhost.com/cgi-bin/mapserv">http://localhost.com/cgi-bin/mapserv</a>&quot; because the server</div><div>
# unexpectedly dropped the connection.</div><div><br></div><div>and when the URL is accessed this way (leaving /etc/hosts as shown above):</div><div><br></div><div><a href="http://localhost/cgi-bin/mapserv">http://localhost/cgi-bin/mapserv</a></div>
<div><br></div><div>I get the error:</div><div><br></div><div>Not Found</div><div><br></div><div>The requested URL /cgi-bin/mapserv was not found on this server.</div><div><br></div><div>At this point I&#39;m 90% sure the problem lies between safari and apache.  Maybe it&#39;s time for a reference manual on apache.  Does anyone have any titles they would like to recommend?</div>
<div><br></div><div>Mike</div><div><br></div><div>Greetings,</div><div><br></div><div>New user to the list. I am installing mapserver </div><div>on my MacBook Pro. The installation has progressed without error until I attempt</div>
<div>to call the &#39;mapserv&#39; cgi executable from safari; it returns the following error</div><div>after running the final check as described in the documentation:</div><div><br></div><div># Page 40, MapServer Documentation, Release 6.0.1; 4.1.8 Installation - The basic install.</div>
<div><br></div><div># This is the final test to ensure mapserver is installed and functioning correctly.</div><div># When attempting to access the test URL, safari returns the following error:</div><div><br></div><div># Test URL: <a href="http://localhost.com/cgi-bin/mapserv">http://localhost.com/cgi-bin/mapserv</a></div>
<div><br></div><div># Safari error:</div><div><br></div><div># safari can&#39;t open the page &quot;<a href="http://localhost.com/cgi-bin/mapserv">http://localhost.com/cgi-bin/mapserv</a>&quot; because the server</div><div>
# unexpectedly dropped the connection.</div><div><br></div><div>Mapserver version: 6.0.1</div><div>Mac OS X version: 10.6.8</div><div>Safari version: 5.1.2</div><div><br></div><div>My suspicion is the error is related to how mapserver and apache are communicating; however,</div>
<div>not being apache literate, I don&#39;t know where to begin diagnosing the connection problem. I</div><div>ran a syntax check on the httpd.conf file and it returned the following:</div><div><br></div><div>Michael-Badars-MacBook-Pro:bin bobby$ apachectl -t</div>
<div>httpd: Could not reliably determine the server&#39;s fully qualified domain name, using</div><div>Michael-Badars-MacBook-Pro.local for ServerName</div><div>Syntax OK</div><div>Michael-Badars-MacBook-Pro:bin bobby$</div>
<div><br></div><div>Listed below are details regarding my installation.</div><div><br></div><div>Thanks in advance for any help you can provide.</div><div><br></div><div>Mike Badar</div><div><br></div><div><br></div><div>
<br></div><div><br></div><div>#</div><div># Map Server 6.0.1 &quot;configure&quot; script.</div><div>#</div><div><br></div><div># Author: Mike Badar</div><div># Date: 29 December, 2011</div><div># Version: 3</div><div><br>
</div><div>./configure                                                       \</div><div>                --with-curl-config=/usr/local/bin/curl-config     \</div><div>                --with-gdal=/usr/local/bin/gdal-config            \</div>
<div>                --with-geos=/usr/local/bin/geos-config            \</div><div>                --with-ogr=/usr/local/bin/gdal-config             \</div><div>                --with-postgis=/usr/local/pgsql/bin/pg_config     \</div>
<div>                --with-xml2-config=/usr/local/bin/xml2-config     \</div><div>                                                                  \</div><div>                --with-agg=/usr/local                             \</div>
<div>                --with-freetype=/usr/local                        \</div><div>                --with-gd=/usr/local                              \</div><div>                --with-httpd=/usr/local/apache2/bin/httpd         \</div>
<div>                --with-jpeg=/usr/local                            \</div><div>                --with-proj=/usr/local                            \</div><div>                --with-tiff=/usr/local                            \</div>
<div>                                                                  \</div><div>                --with-wfsclient                                  \</div><div>                --with-wmsclient                                  \</div>
<div>                --with-threads                                    \</div><div>                --with-wcs                                        \</div><div>                                                                  \</div>
<div>                --enable-debug</div><div><br></div><div>#</div><div># Mapserver version.</div><div>#</div><div>Michael-Badars-MacBook-Pro:cgi-bin bobby$ ./mapserv -v</div><div>MapServer version 6.0.1 \</div><div><br>
</div><div>          OUTPUT=GIF \</div><div>          OUTPUT=PNG \</div><div>          OUTPUT=JPEG \</div><div><br></div><div>          SUPPORTS=PROJ \</div><div>          SUPPORTS=AGG \</div><div>          SUPPORTS=FREETYPE \</div>
<div>          SUPPORTS=ICONV \</div><div>          SUPPORTS=WMS_SERVER \</div><div>          SUPPORTS=WMS_CLIENT \</div><div>          SUPPORTS=WFS_CLIENT \</div><div>          SUPPORTS=WCS_SERVER \</div><div>          SUPPORTS=THREADS \</div>
<div>          SUPPORTS=GEOS \</div><div><br></div><div>          INPUT=OGR \</div><div>          INPUT=GDAL \</div><div>          INPUT=SHAPEFILE</div><div><br></div><div>#</div><div># Page 39, MapServer Documentation, Release 6.0.1; Step 9 test.</div>
<div>#</div><div>Michael-Badars-MacBook-Pro:cgi-bin bobby$ ./mapserv</div><div>This script can only be used to decode form results and </div><div>should be initiated as a CGI process via a httpd server.</div><div>Michael-Badars-MacBook-Pro:cgi-bin bobby$</div>
<div><br></div><div>#</div><div># Apache version.</div><div>#</div><div>Michael-Badars-MacBook-Pro:bin bobby$ apachectl -v</div><div>Server version: Apache/2.2.20 (Unix)</div><div>Server built:   Sep 12 2011 17:42:56</div>
<div>Michael-Badars-MacBook-Pro:bin bobby$</div><div><br></div><div>#</div><div># /usr/local/apache2/conf/httpd.conf; mapserver additions.</div><div>#</div><div><br></div><div># ServerRoot</div><div>ServerRoot &quot;/usr/local/apache2&quot;</div>
<div><br></div><div># Apache port.</div><div>Listen 80</div><div><br></div><div># Cgi directory; ScriptAlias; Log file.</div><div>&lt;Directory /usr/local/apache2/cgi-bin&gt;</div><div>Options +ExecCGI +FollowSymLinks</div>
<div>&lt;/Directory&gt;</div><div><br></div><div>ScriptAlias /cgi-bin/ /usr/local/apache2/cgi-bin/</div><div><br></div><div>#</div><div># Log file.</div><div>#</div><div>ScriptLog logs/cgi_log</div><div>ErrorLog &quot;logs/error_log&quot;</div>
<div><br></div><div># Display user &#39;www&#39;</div><div><br></div><div>Michael-Badars-MacBook-Pro:~ root# dscl . -read /Users/www</div><div>AppleMetaNodeLocation: /Local/Default</div><div>AuthenticationAuthority: ;ShadowHash; </div>
<div>                         ;Kerberosv5;</div><div>                         ;_www@LKDC:SHA1.458017A5A4386C409A25B49470E08467DC7022AF</div><div>                         ;LKDC:SHA1.458017A5A4386C409A25B49470E08467DC7022AF;</div>
<div>GeneratedUID: FFFFEEEE-DDDD-CCCC-BBBB-AAAA00000046</div><div>NFSHomeDirectory: /Library/WebServer</div><div>Password: ********</div><div>PrimaryGroupID: 70</div><div>RealName:</div><div> World Wide Web Server</div><div>
RecordName: _www www</div><div>RecordType: dsRecTypeStandard:Users</div><div>UniqueID: 70</div><div>UserShell: /usr/bin/false</div><div>Michael-Badars-MacBook-Pro:~ root#</div><div><br></div><div># Check /usr/local/apache2/conf/httpd.conf for syntax errors.</div>
<div><br></div><div>Michael-Badars-MacBook-Pro:bin bobby$ apachectl -t</div><div>httpd: Could not reliably determine the server&#39;s fully qualified domain name, using</div><div>Michael-Badars-MacBook-Pro.local for ServerName</div>
<div>Syntax OK</div><div>Michael-Badars-MacBook-Pro:bin bobby$</div><div><br></div><div># Start apache and check for the existence of the httpd process.</div><div><br></div><div>Michael-Badars-MacBook-Pro:logs root# apachectl start</div>
<div>Michael-Badars-MacBook-Pro:logs root# ps -ajx|grep httpd</div><div>root       526     1   526 59ff000    0 Ss     ??    0:00.18 /usr/sbin/httpd -D FOREGROUND</div><div>_www       527   526   526 59ff000    0 S      ??    0:00.00 /usr/sbin/httpd -D FOREGROUND</div>
<div>root       529   391   528 5a00110    2 S+   s001    0:00.00 grep httpd</div><div>Michael-Badars-MacBook-Pro:logs root#</div><div><br></div><div># Page 40, MapServer Documentation, Release 6.0.1; 4.1.8 Installation - The basic install.</div>
<div># This is the final test to ensure mapserver is installed and functioning correctly.</div><div># When attempting to access the test URL, safari returns the following error:</div><div><br></div><div># Test URL: <a href="http://localhost.com/cgi-bin/mapserv">http://localhost.com/cgi-bin/mapserv</a></div>
<div><br></div><div># Safari error:</div><div><br></div><div># safari can&#39;t open the page &quot;<a href="http://localhost.com/cgi-bin/mapserv">http://localhost.com/cgi-bin/mapserv</a>&quot; because the server</div><div>
# unexpectedly dropped the connection.</div><div><br></div><div># Port 80 /etc/services</div><div><br></div><div>http             80/udp     www www-http # World Wide Web HTTP</div><div>http             80/tcp     www www-http # World Wide Web HTTP</div>
<div><br></div><div># /etc/services</div><div><br></div><div>Michael-Badars-MacBook-Pro:~ bobby$ cat /etc/hosts</div><div>##</div><div># Host Database</div><div>#</div><div># localhost is used to configure the loopback interface</div>
<div># when the system is booting.  Do not change this entry.</div><div>##</div><div># 127.0.0.1<span class="Apple-tab-span" style="white-space:pre">        </span>localhost</div><div>#</div><div># This line was added in an attempt to diagnose why apache is dropping connections</div>
<div># to mapserver.</div><div>#</div><div>127.0.0.1       localhost.localdomain   localhost # Mapserver diagnostic line.</div><div><br></div><div><br></div><div>255.255.255.255<span class="Apple-tab-span" style="white-space:pre">        </span>broadcasthost</div>
<div>::1             localhost </div><div>fe80::1%lo0<span class="Apple-tab-span" style="white-space:pre">        </span>localhost</div><div>Michael-Badars-MacBook-Pro:~ bobby$</div><div><br></div><div>Not Found</div><div><br></div>
<div>The requested URL /cgi-bin/mapserv was not found on this server.</div><div><br></div>