[mapserver-users] RE: port from Apache to IIS

Mark Volz MarkVolz at co.lyon.mn.us
Wed Apr 8 06:23:07 PDT 2009


Hello,

I am also attempting to port from Apache to IIS.  In Apache everything works
well.  In IIS6 I have the following issues:  WMS services do not display, PHP
code does not seem to work - which run printing functions and the select by
buffer functions.  I noticed I am getting 404 and 405 errors.

I am running Geomoose over Mapserver 5.2.2 / MS4W 2.3.1

Mark Volz
GIS Specialist
Lyon County, MN


Message: 4
Date: Wed, 8 Apr 2009 10:12:03 +0200
From: Barend Kobben <kobben at itc.nl>
Subject: Re: [mapserver-users] port from Apache to IIS
To: Jessie Xu <t-zheqxu at microsoft.com>,
	"mapserver-users at lists.osgeo.org" <mapserver-users at lists.osgeo.org>
Message-ID: <C60228F3.9EB9%kobben at itc.nl>
Content-Type: text/plain; charset="ISO-8859-1"

Hi,

Thi worked last year  for me, but I run IIS6. If not much changed between 6
and 7, it might help you:

0) Get the latest binaries (eg. the MS4W installation or any other) and
install
1) Create a virtual directory in IIS pointing to the dir where mapserv.exe
resides (eg. when using ms4w it's C:\ms4w\Apache\cgi-bin) and give it an
appropriate alias name alias; for instance cgi-bin.
2) Set the execute permissions on this virtual directory to Scripts and
Executables
3) Accept the virtual directory
4) Go to Web Service Extensions in the IIS service manager
5) Select Add a new web service extension. On the required files tab, add
C:\YourMapserverInstalldir\mapserv.exe
6) Set it to allow
7) Through the security tab of the mapserver install directory, give IIS_WPG
(a standard system usergroup) read/write and execute permission on ALL the
underlying sub-directories
    7a) go to IIS manager
    7b) go to the server's "Web Server Extensions"
    7c) choose "add a new Web Service Extension..."
    7d) name it "mapserver_cgi" or similar, and press "Add.." near the
"required files" field.
    7e) find the mapserv.exe again (look for CGI's not for dll's!) and press
"OK"
    7f) set it's status to "Allowed".
8) Restart the "World Wide Web publishing service" in the services section
of the administrative tools
9) Test mapserv by running http:\\yourserver\yourmapservaliasdir\mapserv.exe
If you get the message "No query information to decode. QUERY_STRING is set,
but empty." Mapserver under IIS is ready to go!


-- 
Barend Köbben
International Institute for Geo-Information
Sciences and Earth Observation (ITC)
PO Box 6, 7500AA Enschede, The Netherlands
+31 (0)53 4874253


On 08-04-09 07:18, "Jessie Xu" <t-zheqxu at microsoft.com> wrote:

> I'd like to have mapserver running on IIS 7 and want to know how? I saw an
> article called 'IIS setup for Mapserver' but it is written in 2005 based on
> IIS 5. Could someone give me a hand to figure out how to port from Apache
to
> IIS 7? What changes should be made to config files, virtual directories and
> permissions, etc?
> 
> Thanks for help!
> 
> Jessie
> _______________________________________________



More information about the MapServer-users mailing list