[mapserver-users] problems with 'MapServer Itasca Application (ms v5.0)'

Andre Steenveld sr a.steenveld at vista-online.nl
Wed May 27 14:56:21 PDT 2009


Hi,

I try to install mapserver and to get it going but I run into some
problems.
Can someone advise me on what I'm doing wrong?

This is what I have (and have done).

Systems: 
1) Windows Vista, dutch version.
2) Windows XP, dutch version.

Installed mapserver as suggested in
http://www.mapserver.org/introduction.html#introduction
Om 1) in E:\usr\local\OSGeo4W
On 2) in c:\OSGeo4W

On both systems 'MapServer v. 5.0'

Testing mapserver with http://127.0.0.1/cgi-bin/mapserv.exe and I get
the expected result 
'No query information to decode. QUERY_STRING is set, but empty.' (on
both systems)

Installed 'mapserver demo', added an alias in the apache configuration
file, added another section with access rights for /workshop/ (was
undocumented), restarted apache and changed the index.html file.

The two aliasses in the apache configuration and the section on rights
are:
    Alias /ms_tmp/     "E:\usr\local\OSGeo4W/tmp/ms_tmp/"
    Alias /workshop/   "E:\usr\local\OSGeo4W/apps/workshop-5.0/"
...
<Directory "E:\usr\local\OSGeo4W/apps/workshop-5.0/">
    AllowOverride None
    Options None
    Order allow,deny
    Allow from all
</Directory>

When I open http://127.0.0.1/workshop/ I get a page with a form which
looks normal.
In that form I select 'Basic Application' and click on the [Initialize]
button. The result is an error message. (on both systems)

Content-type: text/html isValidTemplate(): Web application error.
Missing magic string, itasca_basic.html doesn't look like a MapServer
template.

I have no idea what is going wrong. Tried to find it in the
documentation and archive of this list but nothing came up. 
The problems might have to do with the changes needed in index.html, it
is not completely clear to me what kind of information is needed. This
is what I have filled in.

...
08: // EDIT THE NEXT 2 LINES TO MATCH YOUR SETUP
09: var snippet = "IMAGEPATH 'E:/usr/local/OSGeo4W/tmp'"; // "IMAGEPATH
'/usr/local/www/docs_maps/tmp/'";
10: snippet += " IMAGEURL '/tmp/'";

Assuming that on line 09 an absolute path on the server is needed and on
line 10 an absolute URL.
Note that in the apache configuration there is no alias for /tmp/.
Changing line 10 to '/ms_tmp/ does not make any difference.

...
33: <!-- EDIT THE FORM ACTION -->
34: <form name="demo" method="GET" action="/cgi-bin/mapserv.exe"
onSubmit="configure()">
35:	                      <!-- action="/cgi-bin/mapserv50" -->

Assuming that on line 35 an absolute URL is needed.

...
42:   <!-- EDIT THESE HIDDEN VARIABLES -->
43:   <input type="hidden" name="map"
value="E:/usr/local/OSGeo4W/apps/workshop-5.0/itasca.map">
44:                              <!--
value="/usr/local/www/docs_maps/mapserver_demos/workshop-5.0/itasca.map"
-->
45:   <input type="hidden" name="program" value="/cgi-bin/mapserv.exe">
46:	                             <!-- value="/cgi-bin/mapserv50" -->
47:   <input type="hidden" name="root" value="/workshop">
48:	                          <!--
value="/mapserver_demos/workshop-5.0 -->

Assuming that on line 43 an absolute path on the server is needed and on
lines 45 and 47 an absolute URL.

Can somebody point out to me what is wrong?

Kind regards,

Andre Steenveld.





More information about the MapServer-users mailing list