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

Jeff McKenna jmckenna at dmsolutions.ca
Fri Jul 7 23:37:36 EDT 2006


what i'm really trying to tell u is that the MS4W-itasca download package
requires NO configuration.  try a fresh system, unzip ms4w, extract that
itasca-ms4w package at the same drive root, and execute apache-install.bat
- with no editing.  then try the application in a browser (link will be on
localhost page) and let us know how that works.

jeff



> I've tried the Map Serv Itasca Demo on three (3) different systems.
>
>   All with failure results.
>
>   1) System # 1 Windows XP Home
>
>   2) My other older system # 2 which is running Windows 2000
>
>   3) My friends pc # 3 which is running Windows XP Home edition.
>
>   They all behave the same with the itasca demo.
>
>   A black cmd window is briefly displayed (flashes) and the error message
>   is displayed in the black cmd window which I believe it reads (it
> flashes by really
>   really fast!!)
>
>   "This script can only be used to decode form results and
> should be initiated as a CGI process via a httpd server."
>
>   But no actual map of lake Itasca is displayed.
>
>   Maybe (it's certainly possible!) am configuring something wrong the same
> way on
>   all three systems.  But I'm not doing much at all to configure.
>   Setting the correct paths in index.html so that they are
>   the correct location for the
>   1) mapserv.exe file and the
>   2) itasca.map file.
>   3) the document root which I set to the parent directory for the
> index.html
>   4) the imagepath and the url directories (temp directories)
>
>   Have downloaded and reinstalled the MS4W software several times,
>   including uninstalling apache and reinstalling apache.
>
>   Not being familiar with what this demo is supposed to do,
>   Is it supposed to bring up a map with topo-lines and lakes and roads
> etc?
>   Or am I misinterpreting something?
>   All I ever see is a red background where the map is supposed
>   to be and the html controls for ....pan,,. zoom,.... refresh.... etc.
>
>   This is what the paths were changed to in index.html which
>   corresponds to the directory structures in place on my systems.
>   ----------------------------------------------------------------------------------
>   <form name="demo" method="GET" action="/ms4w/apache/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="/ms4wdemo/apps/demo/itasca.map">
>   <input type="hidden" name="program"
> value="/ms4w/apache/cgi-bin/mapserv.exe">
>   <input type="hidden" name="root" value="/ms4wdemo/apps/demo">
>   <input type="hidden" name="map_web_imagepath" value="/ms4w/tmp/ms_tmp/">
>   <input type="hidden" name="map_web_imageurl" value="/ms_tmp/">
>
>   I'm not that familiar with all the tweakable objects on a windows
> system.
>   Could Norton internet security be playing havoc?
>   I've turned off several security features in Internet Explorer ...
>   allowing pop-ups, scripts to run....etc...  on the off chance they must
> be configured
>   properly for Mapserv to work?
>
>   Any other ideas?  Has anyone tried the Itasca Map server demo using
>   the latest version of MS4w_2.0   ????
>
>   Thanks in advcance for any ideas you may have.
>
>   Best Regards,
>   - John Rust
>   763-424-7973
>
>
> john rust <imgahn2u at yahoo.com> wrote:
>     Jeff,
>
>   Thanks for the additional tip.
>   I have tried various combinations that I could think of.
>
>   When the line is "....cgi-bin/mapserv"  then it displays the standard
> message
>   "The page cannot be displayed...."
>
>   When the line is "...cgi-bin/mapserv.exe" then get a query
>   as to whether to allow mapserv.exe to run? When I answer yRUN
>   then a black cmd window flashes by, but the window displayed by
>   internet explorer does not change.
>
>   So it looks like mapserv.exe is executing, may not recongnize
>   that it is being executed as a cgi with a query_string?
>
>   Normally does a black cmd window flash by when mapserv.exe
>   executes?
>
>   Thank you for your thoughts on this configuration problem.
>
>   Regards,
>   - John
>
>
> Jeff McKenna <jmckenna at dmsolutions.ca> wrote:
>   sometimes people are very quiet on this list...it might be worth your
> time to also try the main mapserver mailing list.
>
> the only line of your explanation that startles me is:
>
> "c:/ms4w/apache/cgi-bin/mapserv"
>
> You MUST specify "mapserv.exe" on Windows. And also, like I said
> earlier, NO tweaking of apache or this demo is required if u use MS4W
> and the Itasca-MS4W application (i.e. you don't have to modify that
> above line at all).
>
>
> jeff
>
>
>
> john rust wrote:
>> Yes some things in addition to consider... with this problem
>>
>> 1) Tomcat is installed (butshutdown)
>> 2) SQL Server is installed (but end-process in taskmanager was
>> performed)
>> 3) Oracle Express Edition is installed (but end-process in task manager
>> performed)
>> 4) Eclispe devlopment env. is installed but not up and running
>> 5) Derby embedded JDBC database installed (but no processes to
>> start/stop)
>>
>> A service for one of these might be conflicting
>> with the cgi call to Mapserv? I did an end-process on sqlserver, oracle
>> and shutdown of tomcat. But there are a bunch of svchost.exe process's
>> running - which I don't know what they are doing....
>> Tasklist does not appear to work on Xp-Home edition.
>> When I click on the itasca demo file "index.html" and select Basic
>> Application
>> the black cmd window flashes by and no map is displayed.
>>
>> I believe the message in the black cmd window is:
>>
>> "This script can only be used to decode form results and
>> should be initiated as a CGI process via a httpd server."
>>
>> When mapserv is executed on a windows system, isn't it supposed
>> to be minimized or in icon form? Or should one normally
>> see a black cmd window flash by while it does it's thing?
>>
>> If could glean a little more information from Windows/system
>> then understand what is going on and why mapserv thinks it
>> is not being invoked as a cgi? Any more insights form the Map Server
>> group would be greatly appreciated as to why the itasca demo is not
>> working on my Windows Xp-Home machine....Much Appreciate.
>> Some of the items mentioned above may be red-herrings.. but for
>> lack of any further direction to look for thought would at least mention
>> them.
>>
>> Regards,
>> John Rust
>> 763-424-7973
>>
>>
>> */Jeff McKenna /* wrote:
>>
>> (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...
>> >
>> >
>> >
>> >
>>
>> > onSubmit="submit_form()">
>> >
>> >
>> >
>> >
>> >
>> >
>> >
>> >
>> >
>> >
>> >
>> > */Jeff McKenna /* 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
> _______________________________________________
> ms4w-users mailing list
> ms4w-users at lists.maptools.org
> http://lists.maptools.org/mailman/listinfo/ms4w-users
>
>
> ---------------------------------
>   Do you Yahoo!?
> Get on board. You're invited to try the new Yahoo! Mail
> Beta._______________________________________________
> ms4w-users mailing list
> ms4w-users at lists.maptools.org
> http://lists.maptools.org/mailman/listinfo/ms4w-users
>
>
>
> ---------------------------------
> Want to be your own boss? Learn how on  Yahoo! Small Business.




More information about the ms4w-users mailing list