Problem in web template {Scanned}

Siki Zoltan siki at AGT.BME.HU
Wed Feb 7 03:08:35 PST 2007


Hi,

Try to add .exe to the action parameter of the form.
   <form method =POST action = "/cgi-bin/mapserv.exe">

bye
Zoltan

On Tue, 6 Feb 2007, Saif wrote:

> Hi,
> 
> I am a newbie in mapserver and have a problem in using web template
> 
> 
> <html>
>  <head> <title> GIS Application </title> </head>
>  <body>
>   <form method =POST action = "/cgi-bin/mapserv">
> 	<input type = "submit" value ="Click to Intialize">
> 	
> 	<input type = "hidden" name ="map" value 
> = "/ms4w/apps/MyApplic/htdocs/WSLT.map">
>   	<input type = "hidden" name ="mapext" value = "644939.974768 
> 5571028.735107 777118.073090 5711137.519287">
> 	<input type = "hidden" name ="zoomsize" size =2 value =2>
> <input type="hidden" name="program" value="/cgi-bin/mapserv">
> <input type="hidden" name="map_web_imageurl" value="/tmp/">
> 
>        </form>
>  </body>
> </html>
> 
> 
> When I run the web page and tried "Click to Intialize", it showed me
> 
> "No page can not be displayed"
> 
> and in address bar I got this line
> 
> C:\cgi-bin\mapserv
> 
> When I tried mapserv.exe instead mapserv in action = "/cgi-bin/mapserv.exe", 
> it asked me to save or run the mapserv.exe. I have checked ms4w folders. I 
> have read and write permissons. Environemnt variables are ok. When I tried to 
> check mapserv at command prompt, it gave me 
> 
> The script can only be used to decode from results and should be initiated as 
> a CGI process via a httpd server.
> 
> I tried mapserv -v as well and it showed me mapserv version 4.10.0 
> OUTPUT=GIF OUTPUT=GIF ....................................
> 
> in map file I have also described web template
> 
> #####################################################
> 
> # web Object
> #
> WEB
> 	TEMPLATE	"/ms4w/apps/MyApplic/templates/"
> 	IMAGEPATH	"/ms4w/apps/MyApplic/images/"
> 	IMAGEURL	"/tmp/"
> 	LOG		"/tmp/mapserver.log"
> END
> 
> #####################################################
> 
> I am wondering if anybody can help me with this problem.
> 
> Thanks
> 



More information about the MapServer-users mailing list