[Mapserver-users] running in cgi-bin {Scanned}

Siki Zoltan siki at agt.bme.hu
Tue Mar 16 19:48:52 EST 2004


Hi,

On Tue, 16 Mar 2004, Saurabh Data wrote:

> 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
> 
mapserv must be executable by the apache user, which is usually/default
apache:apache (user and group name are the same). Your mapserv is not
executable by apache, it is executable only by ctzsd1 user and ctz group.

1. solution 

chmod +x mapserv (executable by anybody)

2. solution

chown apache:apache mapserv

You sould check the user name what apache uses, check config 
file in /etc/httpd/

Bye
Zoltan




More information about the mapserver-users mailing list