[Mapserver-users] running in cgi-bin

Kralidis,Tom [Burlington] Tom.Kralidis at ec.gc.ca
Tue Mar 16 15:10:43 EST 2004



> -----Original Message-----
> From: Saurabh Data [mailto:saurabhdata at hotmail.com] 
> Sent: Tuesday, March 16, 2004 2:59 PM
> To: mapserver-users at lists.gis.umn.edu
> Subject: [Mapserver-users] running in cgi-bin
> 
> 
> Dear readers,
> 
> hi, I am running my mapserv file from a cgi-bin directory on 
> apacahe server. But when I try to access it online through 
> internet explorer, it downloads 
> the file rahter than running. As per the documentation I 
> think I should 
> expect the output to be :
> 
> "No query information to decode. QUERY_STRING is set, but empty."
> 
> why does it download it ? I think it might be something to do with 
> permisission . It so can someone tell me the permission set 
> for this file. I 
> currently have :
> 
> -rwxr-xr--    1 ctzsd1   ctz        398342 Mar 16 06:48 mapserv
> 
> any ideas ?
>

Does anything else work in cgi-bin/ on the server?  Also, you may want to
make the mapserv executable 755 for privs, depending on the user set for
httpd and the ownership of the file itself.

Also, make sure this is in your conf/httpd.conf file:

ScriptAlias /cgi-bin/ "/path/to/cgi-bin/"

<Directory "/path/to/cgi-bin">
    AllowOverride None
    Options None
    Order allow,deny
    Allow from all
</Directory>

As a double check, what does running mapserv on the command give you?

..Tom

=========================
Tom Kralidis
Systems Scientist
Environment Canada
Tel: +01-905-336-4409
http://www.ec.gc.ca/cise/



More information about the mapserver-users mailing list