trying to get demo to run

Douglass Davis douglass_davis at EARTHLINK.NET
Wed Jul 27 11:58:29 EDT 2005


I am a new user, and I have been having troubles trying to get Mapserver 
to do anything meaningful, so I am now just trying to get a simple demo 
to work.

The Demo is located here:
http://ms.gis.umn.edu/new_users/index_html#mapserver-overview

Whenever I run it, I get a 500 error.  In my error log I get this:
[Wed Jul 27 10:49:22 2005] [error] [client 127.0.0.1] Premature end of 
script headers: c:/program files/apache group/apache/cgi-bin/mapserv.exe

I am using the Windows XP version of mapscript:

C:\Documents and Settings\Douglass Davis>mapserv -v
MapServer version 4.4.1 OUTPUT=GIF OUTPUT=PNG OUTPUT=JPEG OUTPUT=WBMP 
OUTPUT=PDF
 OUTPUT=SWF SUPPORTS=PROJ SUPPORTS=FREETYPE SUPPORTS=WMS_SERVER 
SUPPORTS=WMS_CLI
ENT SUPPORTS=WFS_SERVER SUPPORTS=WFS_CLIENT SUPPORTS=WCS_SERVER 
INPUT=EPPL7 INPU
T=POSTGIS INPUT=OGR INPUT=GDAL INPUT=SHAPEFILE DEBUG=MSDEBUG

C:\Documents and Settings\Douglass Davis>php --version

PHP 4.4.0 (cgi-fcgi) (built: Jul 11 2005 16:13:04)

Here is the first part of the mapfile

#
# Start of map file
#
NAME DEMO
STATUS ON
SIZE 600 600
EXTENT 388107.634400379 5203120.88405952 500896.339019834 5310243.30613897
UNITS METERS
SHAPEPATH "data"
IMAGECOLOR 255 255 255

# you may need to change this to match your MapServer build
IMAGETYPE PNG

#
# Projection definition, consult the PROJ.4 documentation for parameter 
discussion
#
PROJECTION
#  "proj=utm"
#  "ellps=GRS80"
#  "zone=15"
#  "north"
#  "no_defs"
#
#  OR:
#
#  "init=epsg:26915"
#END

#
# Start of web interface definition (including WMS enabling metadata)
#
WEB
  HEADER demo_header.html
  TEMPLATE demo.html
  FOOTER demo_footer.html
  MINSCALE 1000
  MAXSCALE 1550000
  IMAGEPATH "C:/tmp/ms_tmp/"
  IMAGEURL "http://127.0.0.1/ms_tmp/"
  METADATA
    WMS_TITLE "UMN MapServer Itasca Demo"
    WMS_ABSTRACT "This is the UMN MapServer demonstration application 
for Itasca County located in north central Minnesota."
    WMS_ACCESSCONSTRAINTS none

    # change this value to match your setup
    WMS_ONLINERESOURCE "http://127.0.0.1/mapserver/itasca/demo_init.html"

    WMS_SRS "EPSG:26915"
  END
END
...

I changed everything that the demo said needed to be changed.

Here's part of the index file (the only part that it said needs changing):

<!-- If you renamed the MapServer CGI program, or if your CGI directory 
is different from /cgi-bin, update the value of "action" below.  This 
could be "/scripts/mapserv.exe" for Windows and IIS users. -->
<form method=GET action="/cgi-bin/mapserv">

<!-- Change the "value" of map to the full path and name of your 
mapfile.  For Windows users, add the drive letter in front of the path.  
ex: "c:/inetpub/wwwroot/itasca/demo.map" -->
<input type="hidden" name="map" value="C:/Program Files/Apache 
Group/Apache/htdocs/mapserver/itasca/demo.map">

<input type="hidden" name="layer" value="lakespy2">
<input type="hidden" name="layer" value="dlgstln2">
<input type="hidden" name="zoomsize" value=2>

<!-- The value of the parameter below should be the same as the form 
action above -->
<input type="hidden" name="program" value="/cgi-bin/mapserv">

<! -- Replace the value of the parameter below to the full path to the 
temporary directory where MapServer will write temporary files.  Make 
sure the web user account can write to this directory.-->
<input type="hidden" name="map_web_imagepath" value="C:/tmp/ms_tmp/">

<!-- Replace the value of the parameter below with the virtual directory 
path (in Apache parlance, the Alias) of your imagepath.  If your 
imagepath was created under the htdocs or wwwroot directories, the value 
shouldn't have to be changed. -->
<input type="hidden" name="map_web_imageurl" value="/ms_tmp/">


Does any one know why this is not working?



More information about the mapserver-users mailing list