[Geomoose-users] RE: Install GeoMOOSE using IIS 7

Johan Forsman Johan.Forsman at LA.GOV
Tue May 1 10:46:49 EDT 2012


Here is the Spartan version, sans screen shots.

This is a development server so I have very loose rules to follow and may well have done things outside the norm. This site does not face the public. Be warned.
There were many things going on and going wrong without useful error messages while I was setting this up thus I used the “all inclusive” approach to permissions and some of the permissions I assigned to the virtual directories may be unnecessary or undesirable. Someone with more IIS experience may wish to chime in on that topic.

I followed the GM instructions for IIS6, translating terms and interface dialogs as needed, using this very handy and thorough guide for MapServer under IIS7.5 first: http://mas-kono-tes.blogspot.com/2011/03/getting-mapserver-to-work-on-iis75.html.

The IIS6 instructions really do work but I had problems because the interface and some terminology have changed in IIS7.

First you must ensure that your IIS installation has been configured with CGI ability. This is not the default. The linked guide explains nicely.

I used the “default web site” in IIS Manager rather than set up a new site. I already had several other web-mapping sites running there as virtual directories.

I did not use the “ms4w” directory on “c:\” but rather a differently-named directory on “d:\”, excluding the “apache” directory. This changes nothing other than some paths.

Your site should have “Feature Permissions” (right-hand pane in IIS Manager) of Read and Script (default), but not Execute. Exceptions to specific directories as described above and below.

Once I had confirmed that MapServer responded to browser-based requests as described in the above guide I moved on to the GM config.

You need a handler for PHP. First I tried to define this just for the virtual directories that required it, but that did not work reliably. Instead I chose to define the handler for the entire site. This may introduce vulnerabilities but it is simpler to manage and it works.

With the default website highlighted start the Handler Mappings and Add Script Map. Use “*.php”’ for the Request path and point it to the php-cgi.exe in your MS4W cgi-bin. I called the handler “MapservPHP_Map”.

Confirm that you see entries for “CGI-exe”, “ISAPI-dll”, and “MapservPHP_Map” in the Handler Mappings for your cgi-bin directory.
Create a virtual directory for “geomoose2” and point it to the equivalent physical directories in your MS4W tree. Select the “geomoose2” virtual directory and open the Handler Mapping. Apply Read, Script, and Execute Feature Permissions. Confirm that you see entries entries for “CGI-exe”, “ISAPI-dll”, and “MapservPHP_Map” in the Handler Mappings for this directory. Execute may be superfluous.

Create a virtual directory for “ms_tmp” and point it to the equivalent physical directories in your MS4W tree. Select the “ms_tmp” virtual directory and open the Handler Mapping. Apply Read, Script, and Execute Feature Permissions. Confirm that you see entries entries for “CGI-exe”, “ISAPI-dll”, and “MapservPHP_Map” in the Handler Mappings for this directory. Execute may be superfluous.

Ensure that the IIS_IUSRS user has read/execute permission on the cgi-bin and geomoose2 physical directories, plus read/write permissions on the “ms_tmp” physical directory. It should have been taken care of automagically but you never know.

That’s about it. Unfortunately I used virtual notes at the time and it’s likely you will see some slight variation to the above.

Please let me know if I need to check something else.

Take care,
Johan.

From: Dan Little [mailto:danlittle at yahoo.com]
Sent: Tuesday, May 01, 2012 8:46 AM
To: Johan Forsman; Mark Volz; GeoMOOSE Users List
Subject: Re: [Geomoose-users] RE: Install GeoMOOSE using IIS 7

"No warranty explicit or implied."

Johan, if you were willing to write those instructions down, then maybe BrentF or BrainF could check them, or hell, even me.  I can spin up a Windows 2008 SP-whatever server on Amazon and test the instructions.

________________________________
From: Johan Forsman <Johan.Forsman at LA.GOV<mailto:Johan.Forsman at LA.GOV>>
To: Mark Volz <MarkVolz at co.lyon.mn.us<mailto:MarkVolz at co.lyon.mn.us>>; GeoMOOSE Users List <geomoose-users at lists.osgeo.org<mailto:geomoose-users at lists.osgeo.org>>
Sent: Tuesday, May 1, 2012 8:33 AM
Subject: [Geomoose-users] RE: Install GeoMOOSE using IIS 7

I have GM 2.2 and 2.6 within MS4W but using IIS7.5 rather than Apache. It was non-trivial to get going, but mostly because I needed to combine the instructions for using GM with IIS6 with instructions for running CGI and PHP under IIS7.5 that I found elsewhere. If you still need non-guaranteed guidance I can check my server config and try to recreate some rudimentary steps. It may help provided IIS7 and IIS7.5 don’t look different yet again.

Take care,
Johan Forsman
Geologist
Engineering Services
LDHH-OPH-CEHS
225.342.7309



From: geomoose-users-bounces at lists.osgeo.org<mailto:geomoose-users-bounces at lists.osgeo.org> [mailto:geomoose-users-bounces at lists.osgeo.org]<mailto:[mailto:geomoose-users-bounces at lists.osgeo.org]> On Behalf Of Mark Volz
Sent: Monday, April 30, 2012 3:26 PM
To: GeoMOOSE Users List
Subject: [Geomoose-users] Install GeoMOOSE using IIS 7

Hello,

Has anyone had any luck installing GeoMOOSE on IIS7?  We have a new server, and it appears that the interface for IIS7 is drastically different than IIS6.


Mark Volz
GIS Specialist




_______________________________________________
Geomoose-users mailing list
Geomoose-users at lists.osgeo.org<mailto:Geomoose-users at lists.osgeo.org>
http://lists.osgeo.org/mailman/listinfo/geomoose-users

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.osgeo.org/pipermail/geomoose-users/attachments/20120501/09256d87/attachment-0001.html


More information about the Geomoose-users mailing list