Mapserver.exe not getting initiated as a cgi process

Graham Davis gdavis at REFRACTIONS.NET
Tue Jan 17 11:26:15 EST 2006


Krishna,

It sounds like you don't have Apache setup to execute files in the 
directory where mapserv.exe is located, so it is trying to make you 
download it by default.   Usually you would place the exe in your 
cgi-bin directory, because it is already setup to execute files.  Or you 
can configure Apache to execute files that are in the directory where 
you currently have mapserv.   Find your config.conf file (Apache config 
file, usually in /etc/httpd/conf/httpd.conf for Linux) and modify it so 
that it executes files in that directory.  The Apache documentation will 
show you how.  You also want to make sure the file has execute 
permissions on it if you are in a Linux environment.  But as I 
mentioned, the easiest way is probably just to put the mapserv file in 
your cgi-bin and try it from there.

-- 
Graham Davis
Refractions Research Inc.
gdavis at refractions.net



krishna S wrote:

>Hello, i have a question about mapserver.exe as a cgi process.
>I was succesfull in compiling mapserver and now my mapscript is also
>working. But i want to generate a map using mapserv.exe but not through
>phpmapscript. So i wrote a small html file which gives as input the mapfile
>to mapserv.exe. But when i call in from my local host instead to executing
>the mapserv.exe program a small dialouge box opened and it asks me to save
>mapserv.exe. I dont know the reason for this problem but i guess it could
>be a problem with permissions in Apache. I do not know how to set the
>permissions in Apache.
>
>Any lead please ........
>  
>



More information about the mapserver-users mailing list