Windows 2003 Standard IIS 6.0 trouble

Ed McNierney ed at TOPOZONE.COM
Fri Jan 14 16:32:46 EST 2005


Zach -
 
On the virtual directory properties tab (where you're changing the Read
and Read/Write permissions), check to make sure the "Execute
permissions" setting (near the bottom) reads "Scripts and Executables".
 
If you look at the behavior you're getting, it is perfectly consistent
and reasonable if you understand what's going on.  When you pass a URL
to IIS that points to a file, IIS needs to determine whether you would
like to retrieve the contents of that file or whether the file should be
passed to a script interpreter, or whether the file should be executed
like a CGI program.  When you changed the permissions to Read and Write,
you may have disabled Execute permission.  When the next request was
made specifying the file, IIS (having been told not to execute it)
returned its contents.
 
I don't want you to be using your index.html right now.  I am simply
trying to get you to successfully execute MapServer as a CGI binary.
For example, if you click on the URL below:
 
http://www.geozone.com/cgi-bin/mapserv.exe
 
you will get an error message that's obviously from MapServer.  This
will demonstrate that MapServer is being found by IIS and executed
properly as a CGI program.  Once we get to that point things will get
much simpler.  You don't need any templates or map files to do this -
simply make sure that mapserv.exe is in the right place and set up
properly.
 
When you replace the URL above with the path to your mapserv.exe, what
message do you get?  If your IIS server is externally accessible, please
post the URL to your server; otherwise, just let us know what happens
when you use a URL exactly like the www.geozone.com URL above.
 
     - Ed
Ed McNierney
President and Chief Mapmaker
TopoZone.com / Maps a la carte, Inc.
73 Princeton Street, Suite 305
North Chelmsford, MA  01863
ed at topozone.com
(978) 251-4242 


________________________________

From: Zachary Stauber [mailto:zstauber at bhinc.com] 
Sent: Friday, January 14, 2005 2:54 PM
To: Ed McNierney; MAPSERVER-USERS at LISTS.UMN.EDU
Subject: RE: [UMN_MAPSERVER-USERS] Windows 2003 Standard IIS 6.0 trouble



Yes, I do have a virtual directory set up, which I learned from Win2k
IIS 6.0.  It wouldn't find mapserv.exe until I made the actual directory
a "virtual" directory as well of the exact same path, but I learned it
by trying random things.  Win 2003's IIS 6.0 apparently works entirely
differently.  IIS does find mapserv.exe and won't let it be found,
because if I change the permissions on that directory from read to read
and write, it lists the contents of the mapserve.exe to the web browser
as binary junk.  Nice, huh?  It's some kind of permissions thing, but
without feedback from the web page or a log file, I don't know what's
denying it.  Greenwood says that Mozilla suppresses less error info, and
I can try that from home (unfortunately IE is mandated at the office),
and that the user has to have extra permissions for starting up the
executable, which is believable.  I'm running it from the command prompt
as admin, which works fine, but through CGI it runs as WebAdmin, which
is much more restricted.

 

The path in the index.html is as follows:

 

 

            -Zack

 

________________________________

From: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] On
Behalf Of Ed McNierney
Sent: Thursday, January 13, 2005 6:44 PM
To: MAPSERVER-USERS at LISTS.UMN.EDU
Subject: Re: [UMN_MAPSERVER-USERS] Windows 2003 Standard IIS 6.0 trouble

 

Zach -

 

IIS doesn't "let the file not be found" - it can't find it.  What is the
URL you are using to refer to your MapServer executable?  Do you have a
virtual directory (if necessary) set up there?  If you use the IIS
administration tool, can you browse to the mapserv.exe file and find it
along the path you expect?

 

What is the URL you are using that triggers that error?

 

And please ALWAYS reply to the entire list....

 

-          Ed

 

________________________________

From: Zachary Stauber [mailto:zstauber at bhinc.com] 
Sent: Thursday, January 13, 2005 5:09 PM
To: Ed McNierney
Subject: RE: [UMN_MAPSERVER-USERS] Windows 2003 Standard IIS 6.0 trouble

 

Well, I'm just trying to display the basic Itasca map they offer up on
the Mapserver site http://mapserver.gis.umn.edu/dload.html, I get the
standard message which tells me nothing I can use to find the source of
the problem (the general check engine light of the web server world):

 


I.                    The page cannot be found


The page you are looking for might have been removed, had its name
changed, or is temporarily unavailable. 

________________________________

Please try the following:

*       Make sure that the Web site address displayed in the address bar
of your browser is spelled and formatted correctly. 
*       If you reached this page by clicking a link, contact the Web
site administrator to alert them that the link is incorrectly formatted.

*       Click the Back <javascript:history.back(1)>  button to try
another link. 


A.             HTTP Error 404 - File or directory not found.
Internet Information Services (IIS)

________________________________


Technical Information (for support personnel)

*       Go to Microsoft Product Support Services
<http://go.microsoft.com/fwlink/?linkid=8180>  and perform a title
search for the words HTTP and 404. 

*                     Open IIS Help, which is accessible in IIS Manager
(inetmgr), and search for topics titled Web Site Setup, Common
Administrative Tasks, and About Custom Error Messages. 

 

So based on this one would think that the mapserv.exe is in the wrong
place or misspelled, but it's in the exact same place as I have it on a
Windows 2000 install that works fine, and the .map and .html files are
exact copies of those.  So what this error is really telling me is that
IIS 6.0 is not letting the mapserv.exe be found or run.

 

      -Zack

 

-----Original Message-----
From: Ed McNierney [mailto:ed at topozone.com] 
Sent: Thursday, January 13, 2005 2:56 PM
To: Zachary Stauber; MAPSERVER-USERS at LISTS.UMN.EDU
Subject: RE: [UMN_MAPSERVER-USERS] Windows 2003 Standard IIS 6.0 trouble

 

Zack -

 

MapServer works just fine under Windows 2003 Standard and IIS 6.0, and

there's plenty of "proof" of that!

 

But you do need to take the time to understand how your new tools work

rather than blaming them (or MapServer).  You gave us a lot of

information in your email (thanks) but you didn't say what didn't work!

What is the symptom you're seeing?  What are you doing, and what is the

(unexpected) result you're getting?

 

     - Ed

 

Ed McNierney

President and Chief Mapmaker

TopoZone.com / Maps a la carte, Inc.

73 Princeton Street, Suite 305

North Chelmsford, MA  01863

ed at topozone.com

(978) 251-4242  

 

-----Original Message-----

From: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] On

Behalf Of Zachary L. Stauber

Sent: Thursday, January 13, 2005 4:21 PM

To: MAPSERVER-USERS at LISTS.UMN.EDU

Subject: [UMN_MAPSERVER-USERS] Windows 2003 Standard IIS 6.0 trouble

 

Hi, I'm using Windows 2003 Standard, and I'm trying to get MapServ.exe

to work on it.  Right now I'm just trying out the Itasca dataset.  It's

a permissions problem.  Does anyone have a vaguely detailed process for

setting the permissions or configuring Web Access Extensions or

Application Extensions (or whatever hates MapServer so much) so it gets

past the top level security junk in IIS 6.0?

 

I have the same version, 4.4.0-beta3 working fine on a Windows XP SP2

machine, with all the files in exactly the same places.  The EXE and all

DLL's are in C:\InetPub\scripts\MapServer\ the C:\Proj data has a copy

of everything it's supposed to, and the Itasca data starts in

C:\InetPub\wwwroot\MapServer\NCTCOG\mapserver_demos\workshop

 

Before you ask, I set all the directories mentioned above to give

WebAdmin all rights (except full control), I changed all the paths to

the correct places in the "index.html" file, which shows the Itasca map

fine under Windows XP SP2, and I added a "MapServer" entry to the Web

Service Extensions and added every EXE and DLL that it uses with

"Allow."  I also set the Web Service Extensions to "Allow" "All Unknown

CGI Extensions" by default (actually that was set when I got here).

 

I also made the NCTCOG directory in wwwroot a virtual directory and set

"read" permission, set execute permissions to "Script and Executables,"

and created an application extension for ".map" files and set it to the

mapserv.exe executable.  I also did all this for the

C:\InetPub\scripts\Mapserver directory just in case.

 

What else can I do to loosen this thing up?  Does anyone actually have

it working under Windows 2003 Standard?  I haven't found proof of this

in over a year of back archives on this mailing list.

 

     -Zack Stauber

      Systems Analyst

      Bohannan-Huston, Inc.

      Albuquerque, NM

      USA

 

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.osgeo.org/pipermail/mapserver-users/attachments/20050114/b33c1852/attachment.html


More information about the mapserver-users mailing list