<html><head><style type="text/css"><!-- DIV {margin:0px;} --></style></head><body><div style="font-family:arial, helvetica, sans-serif;font-size:10pt"><div>I'm on 10.5 and never played with 10.4, but I'll see if I can help as it's all just UNIX, right? :-)</div><div><br></div><div>I'm also assuming that your directory definition was not copied, pasted and emailed correctly so the superfluous "\" are not really in that file.</div><div><br></div><div>Have you checked the permissions on the directory itself? &nbsp;It may not be possible for the apache user to cd into the directory where the cgi-bin directory resides.</div><div><br></div><blockquote style="border-left: 2px solid rgb(16, 16, 255); margin-left: 5px; padding-left: 5px;"><div style="font-family:arial, helvetica, sans-serif;font-size:10pt"><br><div style="font-family:times new roman, new york, times, serif;font-size:12pt"><font size="2" face="Tahoma"><b><span style="font-weight:
 bold;">From:</span></b> rmaurer &lt;jevoudrais0418@gmail.com&gt;<br><b><span style="font-weight: bold;">To:</span></b> mapserver-users@lists.osgeo.org<br><b><span style="font-weight: bold;">Sent:</span></b> Friday, July 10, 2009 11:28:03 AM<br><b><span style="font-weight: bold;">Subject:</span></b> [mapserver-users] access problems from cgi-bin on Mac OS X 10.4.11 / MAMP<br></font><br>

So I'm a first time MapServer user and have been trying to navigate the installation process. I think I almost have it, but I am having some last problems. When I access my executable mapserv file from the command line, I get this: 
<br>
<br>
<tt>This script can only be used to decode form results and should be initiated as a CGI process via a httpd server.</tt>
<br>
<br>
All sounds good, right? Well, I am using MAMP to host an Apache2.0 server. The httpd.conf file has the following in it:
<br>
<tt>Alias /cgi-bin/ "[rootfile]/cgi-bin/"</tt>
<br>
<br><tt> Directory "[rootfile]/cgi-bin/\&gt;
 <br>   AllowOverride None
 <br>   Options ExecCGI FollowSymLinks Indexes
 <br>   Order allow,deny
 <br>   Allow from all
<br> /Directory\&gt;</tt>
<br>
<br><tt> AddHandler cgi-script .cgi .py</tt>
<br>
<br>
I know that first line should probably be ScriptAlias, but I kept getting a "Permission Denied" message and read in a forum that this was a solution somebody had come up with, and indeed it worked for me as well. 
<br>
<br>
Anyways, the problem is that in this cgi-bin I have my <tt> mapserv </tt> executable (though one of the things I'm thinking is that maybe I need to add something else to AddHandler to make it think that this file is executable?). <b>But when I got to //localhost/cgi-bin/mapserv it tries to download the file as "Untyped Binary Data" and it doesn't execute anthing.  </b>
<br>
<br>
In case its of any help the <tt> ls -l </tt>for my cgi-bin gives the following information:
<tt>-rwxr-xr-x   1 Rebecca  Rebecca   51244 Jul  9 07:52 mapserv</tt>
<br>
<br>
Do I not have this installed correctly? Or is my server just not realizing that this is executable. I would be thrilled if I could just get to the point where //localhost/cgi-bin/mapserv just brought up a "No query information to decode" message, since I think I can handle it from there. 
<br>
<br>
Thank you very much,

Rebecca 
<br><hr align="left" width="300">
View this message in context: <a rel="nofollow" target="_blank" href="http://n2.nabble.com/access-problems-from-cgi-bin-on-Mac-OS-X-10.4.11---MAMP-tp3236919p3236919.html">access problems from cgi-bin on Mac OS X 10.4.11 / MAMP</a><br>
Sent from the <a rel="nofollow" target="_blank" href="http://n2.nabble.com/Mapserver---User-f1969211.html">Mapserver - User mailing list archive</a> at <a target="_blank" href="http://Nabble.com">Nabble.com</a>.<br>
</div></div></blockquote><div style="position:fixed"></div></div><br>

      </body></html>