MapServer 4.4.1 Demo

Ken Lord kenlord at GMAIL.COM
Wed Mar 9 12:32:31 EST 2005


Hi!

This problem has come up a few times in the last couple weeks for
several people. I worked through it myself.

It seems to be a problem with how the current windows binaries
available from the mapserver homepage were compiled.

Download mapserver 4.4.1 from www.maptools.org/dl

Use the mapserv.exe and the .dll'sthat are contained within the zip
files that are included in that package.

This version appears to have been compiled so that it is less
dependant on external dll's, using a larger exe and fewer dll's.

... and it works.

So, this is the 3rd or 4th time this has come up on the list.  Think
it's time to take down/replace the current windows binaries available
at the mapserver homepage?

Cheers,
Ken Lord
Vancouver BC

On Wed, 9 Mar 2005 12:03:01 -0500, Lisi, Christine
<lisi at mydelraybeach.com> wrote:
> 
> 
> I ran the following command at the command prompt:
> 
>  
> 
> 
> 
>  
> 
> When I pressed Enter it hesitated for about 5 seconds and returned me back
> to a command prompt.  If MapServer generated an html file, where would it
> put it?
> 
>  
> 
> I hadn't applied the WRITE access in IIS, but instead applied it in the NTFS
> file system.  I now have applied the WRITE access in IIS (see below):
> 
>  
> 
> 
> 
>  
> 
> I still get the same error.
> 
>  
> 
> 
> Christine Lisi
> Application Specialist
> 
> Management Information Systems • City of Delray Beach • 100 NW First Avenue,
> Delray Beach, FL 33444
> 
> Phone, 561-243-7142 • Fax, 561-243-7166 • eMail, Lisi at MyDelrayBeach.com
> ________________________________
> 
> 
> From: Brent Fraser [mailto:bfraser at geoanalytic.com] 
> Sent: Wednesday, March 09, 2005 11:47 AM
> To: Lisi, Christine; MAPSERVER-USERS at LISTS.UMN.EDU
> 
> Subject: Re: [UMN_MAPSERVER-USERS] MapServer 4.4.1 Demo
> 
> Subject: Re: [UMN_MAPSERVER-USERS] MapServer 4.4.1 Demo
> 
> 
> 
>  
> 
> 
> Christine,
> 
> 
>  
> 
> 
>   Did mapserv generate html when you executed it from the command prompt?
> 
> 
>  
> 
> 
> The fact that mapserver didn't crash leads me to believe the problem is with
> the IIS configuration of the workshop demo directory, likely write access to
> the tmp directory.  Did you set write access for the tmp directory using IIS
> Manager?
> 
> 
>  
> 
> 
> Brent
> 
> 
>  
> 
> 
> ----- Original Message ----- 
> 
> 
> From: Lisi, Christine 
> 
> 
> To: MAPSERVER-USERS at LISTS.UMN.EDU 
> 
> 
> Sent: Wednesday, March 09, 2005 9:31 AM
> 
> 
> Subject: Re: [UMN_MAPSERVER-USERS] MapServer 4.4.1 Demo
> 
> 
>  
> 
> I ran the mapserv QUERY_STRING and it returned to a command prompt with no
> errors.  I guess I can assume that no .dll's are missing.  Someone else on
> the list mentioned using forward slashes instead of backslashes in the html
> file variables.  I will try that.  If you have any input on that I would
> welcome it.
> 
>  
> 
> Thanks, Brent.
> 
> 
> Christine Lisi
> Application Specialist
> 
> Management Information Systems • City of Delray Beach • 100 NW First Avenue,
> Delray Beach, FL 33444
> 
> Phone, 561-243-7142 • Fax, 561-243-7166 • eMail, Lisi at MyDelrayBeach.com
> ________________________________
> 
> 
> From: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] On
> Behalf Of Brent Fraser
> Sent: Wednesday, March 09, 2005 11:16 AM
> To: MAPSERVER-USERS at LISTS.UMN.EDU
> Subject: Re: [UMN_MAPSERVER-USERS] MapServer 4.4.1 Demo
> 
>  
> 
> 
> Christine,
> 
> 
>  
> 
> 
>   In your first example it appears that mapserver was reading the map file
> but crashed for some reason.  In the second example it couldn't find the map
> file because it expects a file system path not a url.  So the first example
> is good, but the second is not (mapserver just handled the second case a lot
> better!).
> 
> 
>  
> 
> 
> The crash is likely due to a missing dll required by mapserver.  
> 
> 
>  
> 
> 
> You can run mapserv.exe from the command line to get messages about missing
> dlls.  Here are the steps:
> 
> 
>  
> 
> 
> 1. Open a command prompt window on your server
> 
> 
> 2. cd to the location of mapserv.exe
> 
> 
> 3. type in
> 
> 
>         mapserv QUERY_STRING="
> 
> 
>  
> 
> 
> 4. Copy the query string from the your browser address bar  and paste it
> into the command window.  The query string should look like:
> 
> 
>  
> 
> 
> layer=lakespy2&layer=dlgstln2&zoomsize=2&map=%2Finetpub%2Fwwwroot%2Fworkshop%2Fitasca.map&program=%2Fcgi-bin%2Fmapserv.exe&root=%2Fworkshop&map_web_imagepath=%2Finetpub%2Fwwwroot%2Ftmp%2F&map_web_imageurl=%2Ftmp%2F&map_web_template=itasca_basic.html
> 
> 
>  
> 
> 
> 5. Add a double quote to the end of the string and press return.
> 
> 
>  
> 
> 
> If a dll is missing, the operating system will show a dialog box giving the
> name of the dll.
> 
> 
>  
> 
> 
> Brent Fraser
> 
> 
>  
> 
> 
>  
> 
> 
>  
> 
> 
> ----- Original Message ----- 
> 
> 
> From: Lisi, Christine 
> 
> 
> To: MAPSERVER-USERS at LISTS.UMN.EDU 
> 
> 
> Sent: Wednesday, March 09, 2005 8:31 AM
> 
> 
> Subject: [UMN_MAPSERVER-USERS] MapServer 4.4.1 Demo
> 
> 
>  
> 
> I've installed MapServer and successfully received the "No query information
> to decode.  QUERY_STRING is set, but empty." message.  Now I am trying to
> get the MapServer 4.4.1 Demo to work.  (Windows Server 2003, IIS6, MapServer
> 4.4.1)
> 
>  
> 
> Here are the steps I have taken:
> 
>  
> 
> 1.       Copied the WORKSHOP folder to C:\Inetpub\wwwroot
> 
> 2.       Created a tmp folder inside C:\Inetpub\wwwroot\workshop and gave
> the IUSR account Read/Write/Execute permissions
> 
> 3.       Set default page to INDEX.HTML in IIS
> 
> 4.       Changed Execute Permissions in IIS to allow SCRIPTS and
> EXECUTABLES.
> 
> 5.       Edited INDEX.HTML file as follows (edits in bold):
> 
>  
> 
> <!-- EDIT THE FORM ACTION -->
> 
> <form name="demo" method="GET"
> action="http:\\esgisrv001\cgi-bin\mapserv.exe" onSubmit="submit_form()">
> 
>  
> 
>       <input type="hidden" name="layer" value="lakespy2">
> 
>       <input type="hidden" name="layer" value="dlgstln2">
> 
>       <input type="hidden" name="zoomsize" value=2>
> 
>  
> 
>       <!-- EDIT THESE HIDDEN VARIABLES -->
> 
>       <input type="hidden" name="map"
> value="C:\Inetpub\wwwroot\workshop\itasca.map">
> 
>       <input type="hidden" name="program"
> value="C:\Inetpub\wwwroot\cgi-bin/mapserv.exe">
> 
>       <input type="hidden" name="root" value="C:\Inetpub\wwwroot\workshop\">
> 
>       <input type="hidden" name="map_web_imagepath"
> value="C:\Inetpub\wwwroot\workshop\tmp\">
> 
>       <input type="hidden" name="map_web_imageurl"
> value="C:\Inetpub\wwwroot\workshop\tmp\">
> 
>  
> 
> I get the MapServer Itasca Application initial screen, but when I click to
> initialize the BASIC APPLICATION using these variables I receive the
> following error:
> 
> CGI Error
> 
> The specified CGI application misbehaved by not returning a complete set of
> HTTP headers.
> 
>  
> 
> 6.       Edited INDEX.HTML file as follows (edits in bold):
> 
>  
> 
> <!-- EDIT THE FORM ACTION -->
> 
>     <form name="demo" method="GET"
> action="http:\\esgisrv001\cgi-bin\mapserv.exe" onSubmit="submit_form()">
> 
>  
> 
>       <input type="hidden" name="layer" value="lakespy2">
> 
>       <input type="hidden" name="layer" value="dlgstln2">
> 
>       <input type="hidden" name="zoomsize" value=2>
> 
>  
> 
>       <!-- EDIT THESE HIDDEN VARIABLES -->
> 
>       <input type="hidden" name="map"
> value="http:\\esgisrv001\workshop\itasca.map">
> 
>       <input type="hidden" name="program"
> value="http:\\esgisrv001\cgi-bin\mapserv.exe">
> 
>       <input type="hidden" name="root" value="http:\\esgisrv001\workshop\">
> 
>       <input type="hidden" name="map_web_imagepath"
> value="http:\\esgisrv001\workshop\tmp\">
> 
>       <input type="hidden" name="map_web_imageurl"
> value="http:\\esgisrv001\workshop\tmp\">
> 
>  
> 
> I get the MapServer Itasca Application initial screen, but when I click to
> initialize the BASIC APPLICATION using these variables I receive the
> following error:
> 
>  
> 
> msLoadMap(): Unable to access file. (http:\\esgisrv001\workshop\itasca.map)
> 
>  
> 
> Can anyone help?
> 
>  
> 
> Thanks.
> 
> Christine Lisi
> Application Specialist
> 
> Management Information Systems • City of Delray Beach • 100 NW First Avenue,
> Delray Beach, FL 33444
> 
> Phone, 561-243-7142 • Fax, 561-243-7166 • eMail, Lisi at MyDelrayBeach.com
> 
>



More information about the mapserver-users mailing list