[mapserver-users] Fwd: Getting error while running helloworld sample application in FGS in fedora 7

Dan Little danlittle at yahoo.com
Wed Jan 7 08:43:30 EST 2009


It's saying that because you haven't actually set any CGI parameters.  Try something more like this...

http:/localhost:9000/cgi-bin/mapserv?map=hello.map&mode=browse




________________________________
From: MOHAMMED SADIQUE SHADAB <sadiqueshadab at gmail.com>
To: mapserver-users at lists.osgeo.org
Sent: Wednesday, January 7, 2009 5:02:53 AM
Subject: [mapserver-users] Fwd: Getting error while running helloworld sample application in FGS in fedora 7

hi  all. 



First of all i  have installed the FGS mapserver in /opt/fgs in  9000  port . after that i
 checked in browser by loading this URL:http://localhost:9000/cgi-bin/mapserv

then  it displays the message as

No query information to decode. QUERY_STRING is set, but empty.


Then i have created one Sample Helloworld application .
For this i have created one hello.html file  and i have placed that file in /opt/fgs/www/htdocs/


my  Hello.html 

<html>
<head>
<title>MapServer Hello World11</title></head>
<body>
<form method=POST action="/cgi-bin/mapserv">
<input type="submit" value="Click Me">
<input type="hidden" name="map" value="/opt/fgs/www/cgi-bin/hello.map">
<input type="hidden" name="map_web_imagepath" value="/opt/fgs/www/htdocs/tmp/">
</form>
<IMG SRC="[img]" width=400 height=300 border=1>
</body>
</html>


Then i  have created one hello.map file and placed that file in /opt/fgs/www/cgi-bin/

my  hello.map

# This is our "Hello World" mapfile
NAME "Hello_World"
SIZE 400 300
IMAGECOLOR 249 245 186
IMAGETYPE png
EXTENT -1.00 -1.00 1.00 1.00
WEB
TEMPLATE "/opt/fgs/www/htdocs/hello.html"
IMAGEPATH "/opt/fgs/www/htdocs/tmp/"
IMAGEURL "/tmp/"
END
LAYER    
STATUS default
TYPE point
FEATURE
POINTS 0.0 0.0 
END
TEXT "HELLO WORLD"
END
CLASS
STYLE
COLOR 255 0 0
END
LABEL
TYPE bitmap
END
END
END
END


After that i run the HTML file (hello.html)  in browser as the 

URL:http://localhost:9000/hello.html

 
 It displays  one button "Click Me" and broken image 

If i press the "Click Me" button  it shows errors as 

loadWeb(): Unknown identifier. Parsing error near (/opt/fgs/www/htdocs/tmp/):(line 1)


Please help me out from this problem,because i am very newbee to this mapserver and FGS

Thanks in advance


regards
SHADAB


      
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.osgeo.org/pipermail/mapserver-users/attachments/20090107/44323c1a/attachment.html


More information about the mapserver-users mailing list