[Mapserver-users] demo config problem

Changqing Zhou czhou at cs.umn.edu
Fri Apr 16 20:38:08 PDT 2004


Hi, I am having some problem with the demo app - must be something simple
I overlooked. Please advise. I appreciate your help.

As I saw so many wonderful words on the list about mapserver, I am very
anxious to see nice map display in my browser! Good job, U of M GIS people! Go
gopher!

Changqing

The screen is blank. The url is:
http://localhost:8080/mapserver/cgi-bin/mapserver/mapserv.exe?layer=lakespy2&layer=dlgstln2&zoomsize=2&map=%2Fjakarta-tomcat-5.0.19%2Fwebapps%2Fmapserver%2Fworkshop%2Fitasca.map&program=%2Fmapserver%2Fcgi-bin%2Fmapserver%2Fmapserv.exe&root=%2Fmapserver%2Fworkshop&map_web_imagepath=%2Ftmp%2F&map_web_imageurl=%2Ftmp%2F&map_web_template=itasca_basic.html

Workshop is un-ziped in tomcat:

C:\jakarta-tomcat-5.0.19\webapps\mapserver\workshop>dir

mapserver4 is installed in cgi:

C:\jakarta-tomcat-5.0.19\webapps\mapserver\WEB-INF\cgi\mapserver\mapserv.exe

Seems my cgi-bin works fine with mapserv:

C:\jakarta-tomcat-5.0.19\webapps\mapserver\WEB-INF\cgi\mapserver>mapserv
This script can only be used to decode form results and
should be initiated as a CGI process via a httpd server.

Here is my workshop index.html config:

   <form name="demo" method="GET"
action="/mapserver/cgi-bin/mapserver/mapserv.exe"
onSubmit="submit_form()">

.....

      <!-- EDIT THESE HIDDEN VARIABLES -->
      <input type="hidden" name="map"
value="/jakarta-tomcat-5.0.19/webapps/mapserver/workshop/itasca.map">
      <input type="hidden" name="program"
value="/mapserver/cgi-bin/mapserver/mapserv.exe">
      <input type="hidden" name="root" value="/mapserver/workshop">
      <input type="hidden" name="map_web_imagepath" value="/tmp/">
      <input type="hidden" name="map_web_imageurl" value="/tmp/">



More information about the MapServer-users mailing list