[ms4w-users] New user to MS4W configuration problem with Itasca/Demo

Jeff McKenna jmckenna at dmsolutions.ca
Thu Jul 6 13:02:34 EDT 2006


(please always respond to the mailing list)

The itasca package for MS4W requires no 'tweaking' of Apache.  I'm not 
sure if your Tomcat installation is causing issues.

Maybe someone else has ideas (?)

jeff


john rust wrote:
> Jeff,
>  
> Thanks for the reply.
> Yes - I installed this demo also and get the same results as with the 
> workshop-demo.
> The controls display but no map is displayed.
>  
> When I correct the "action= " to be the correct path for my system
> to be "c:/ms4w/apache/cgi-bin/mapserv"
> Then, I get the black cmd window with the message below...flashes by...
>  
> This script can only be used to decode form results and
> should be initiated as a CGI process via a httpd server.
>  
> Isn't the cgi process supposed to be minimized, and *not* display a 
> black window. 
>  
> Hypothesis: For some reason in my config the cgi mapserv process thinks 
> its being executed not from an http server?  I think there is something 
> in my config that is not quite correct... but I tweaked most of the 
> things that I know about with windows and apache etc.  It is as 
> if apache is invoking mapserv not as a cgi process but just as an 
> executable or something?
>  
> Thanks for any pointers in this regards...
>  
> - John
>  
>  
> -------------------------------------------------
> Demo config below...
>  
>  
> <!-- EDIT THE FORM ACTION -->
> <form name="demo" method="GET" action="/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="/ms4w/apps/mapserv-demo/itasca.map">
> <input type="hidden" name="program" value="/cgi-bin/mapserv.exe">
> <input type="hidden" name="root" value="/mapserv-demo/">
> <input type="hidden" name="map_web_imagepath" value="/ms4w/tmp/ms_tmp/">
> <input type="hidden" name="map_web_imageurl" value="/ms_tmp/">
> 
> 
> */Jeff McKenna <jmckenna at dmsolutions.ca>/* wrote:
> 
>     Actually are you aware that there is a pre-configured Itasca demo
>     package available for download specifically for MS4W? Look for
>     "MapServer Itasca Demo Application" on
>     http://www.maptools.org/ms4w/index.phtml?page=downloads.html and use
>     that.
> 
>     jeff
> 
> 
>     john rust wrote:
>      > I installed mS4W on Windows XP Home with the following software
>     installed.
>      >
>      > Eclipse
>      > Tomcat
>      > Apache server
>      > Derby Plug in for Eclipse (java database)
>      > JRE 5.0
>      >
>      > New to the java scripting world, and decided to install the
>     Itasca demo.
>      >
>      > It is installed in C:/ms4w/apache/htdocs/workshop/index.html etc.
>      > This is what I have for index.html in the demo…
>      >
>      >
> 
>      > action="c:/ms4w/apache/cgi-bin/mapserv.exe" onSubmit="submit_form()">
>      >
>      >
>      >
>      >
>      >
>      >
>      >
>      > value="c:/ms4w/apps/workshop/itasca.map">
>      >
>      > value="c:/ms4w/apache/cgi-bin/mapserv.exe">
>      >
>      > value="c:/ms4w/apache/htdocs/workshop">
>      >
>      > value="c:/ms4w/apache/htdocs/workshop/temp/ms_temp">
>      >
>      > value="c:/ms4w/apache/htdocs/workshop/temp">
>      >
>      > These are values in the c:/ms4w/apache/conf/httpd.conf file
>      > ServerRoot "c:/ms4w/apache"
>      > Listen 80
>      > ServerAdmin admin at local.domain
>      > DocumentRoot "c:/ms4w/apache/htdocs"
>      >
>      >
>      >
>      > This is the value I put into the Itasca.map file:
>      > WMS_ONLINERESOURCE http://localhost/workshop/index.html
>      >
>      > Put cgi-bin onto the WINDOWS PATH statement.
>      > Also moved the workshop files around to various directories.
>      > Made various windows folders shareable on the network.
>      >
>      > When I click on the initialize (basic application) button am
>     queried if
>      > I want to run
>      > C:/ms4w/apache/cgi-bin/mapserv.exe ?
>      > I answer yes a coulpe times, but then **nothing** happens?
>      >
>      > What is wrong with my configuration?
>      >
>      > Regards,
>      >
>      > John Rust
>      > 763-424-7973
>      >


-- 
Jeff McKenna
DM Solutions Group Inc.
http://www.dmsolutions.ca


More information about the ms4w-users mailing list