[MS4W-Users] MS4W under IIS?
Evans, James R Civ USAF ACC 84 RADES/SCZE
James.Evans at hill.af.mil
Wed Apr 24 13:03:36 EST 2013
So, we've made a little progress getting MS4W running under IIS. If I send
a URL directly to the server, I can get back an image. If I include the
map=servemap.map tag in the URL. Is there some way to get the same
redirection I was previously using in the httpd.conf file for Apache to work
under IIS? I had put in lines like:
SetEnvIf Request_URI "/cgi-bin/radeswms"
MS_MAPFILE=d:/ms4w/apache/cgi-bin/servemap.map
Having to include this "map=servemap.map" tag is a problem in one of my
client apps. For some reason it just refuses to put this tag in the URL
when requesting an image. It works fine for GetCapabilities, but not for he
getmap.
Also, I don't seem to be able to get the php stuff to work. Quickmap.php
will not run. Niether will the Beeldblad.html demo client for some reason.
Any help on figuring out the URL redirection, or how to get php working
would be appreciated.
Thanks,
James
-----Original Message-----
From: Evans, James R Civ USAF ACC 84 RADES/SCZE
Sent: Tuesday, April 23, 2013 6:10 AM
Cc: ms4w-users at lists.maptools.org
Subject: RE: [MS4W-Users] MS4W under IIS?
We've double checked all the permissions we can think of. Everything seems
to be correct, yet we still get the errors below when we try quickmap.php,
and similar errors when we try to hit getcapabilities or a map request. Any
other thoughts on why this wouldn't work? We are running IIS version 6, and
I think this is a Server 2008 box. This was all working great under Apache,
so I don't suspect a syntax error.
Thanks,
James
-----Original Message-----
From: Evans, James R Civ USAF ACC 84 RADES/SCZE
Sent: Mon 4/22/2013 11:39 AM
To: Brent Fraser
Cc: ms4w-users at lists.maptools.org
Subject: RE: [MS4W-Users] MS4W under IIS?
Hi Brent,
Thanks for the response. Here is the error we are getting:
Warning: ms_newMapObj(): [MapServer Error]: msLoadMap(): Parsing error near
(IMAGEPATH):(line 8) in D:\ms4w\Apache\htdocs\quickmap.php on line 21
Fatal error: Uncaught exception 'MapScriptException' with message 'Failed to
open map file "d:/ms4w/Apache/cgi-bin/servemap.map"' in
D:\ms4w\Apache\htdocs\quickmap.php:21 Stack trace: #0
D:\ms4w\Apache\htdocs\quickmap.php(21): ms_newMapObj('d:/ms4w/Apache/...')
#1 {main} thrown in D:\ms4w\Apache\htdocs\quickmap.php on line 21
PHP Warning: ms_newMapObj(): [MapServer Error]: msLoadMap(): Parsing error
near (IMAGEPATH):(line 8) in D:\ms4w\Apache\htdocs\quickmap.php on line 21
PHP Fatal error: Uncaught exception 'MapScriptException' with message
'Failed to open map file "d:/ms4w/Apache/cgi-bin/servemap.map"' in
D:\ms4w\Apache\htdocs\quickmap.php:21 Stack trace: #0
D:\ms4w\Apache\htdocs\quickmap.php(21): ms_newMapObj('d:/ms4w/Apache/...')
#1 {main} thrown in D:\ms4w\Apache\htdocs\quickmap.php on line 21
We'll be taking a look through the permissions you mentioned.
Thanks,
James
-----Original Message-----
From: Brent Fraser [mailto:bfraser at geoanalytic.com]
Sent: Friday, April 19, 2013 9:01 PM
To: Evans, James R Civ USAF ACC 84 RADES/SCZE
Cc: ms4w-users at lists.maptools.org
Subject: Re: [MS4W-Users] MS4W under IIS?
James,
I see that the GeoMoose instructions don't mention permissions on the
file system. You need to set read access on the folder security where you
have your map file stored, and write permissions on the "MS4W/tmp/ms_tmp".
These would be for the IUSER_<machine_name> account.
Best Regards,
Brent Fraser
On 4/19/2013 6:21 PM, James_in_Utah wrote:
> Well, we took our first stab at getting this running under IIS today.
> Everything seems to be configured correctly, but still can't get
> quickmap.php to run. We get an error saying it can't access the
> servemap.map. Probably a permission thing. When I try accessing the
> getcapabilities from another machine, it also complains about not
> being able to read the servemap.map. We'll have to pick up there on
> monday. Any hints on what we might have missed?
> Thanks,
> James
>
>
>
>
> --
> View this message in context:
> http://osgeo-org.1560.x6.nabble.com/MS4W-under-IIS-tp5047438p5048378.h
> tml Sent from the ms4w-users mailing list archive at Nabble.com.
> _______________________________________________
> MS4W-Users mailing list
> MS4W-Users at lists.maptools.org
> http://lists.maptools.org/mailman/listinfo/ms4w-users
>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/pkcs7-signature
Size: 6912 bytes
Desc: not available
Url : http://lists.maptools.org/pipermail/ms4w-users/attachments/20130424/ffe574a6/attachment.bin
More information about the MS4W-Users
mailing list