Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.Sign up
Installing Mapserver under IIS 7.n with FastCGI
Clone this wiki locally
Notes shared on the mapserver-users mailing list by donald.kerr_at_dkerr.co.uk and copied here for the benefit of all.
Also covers setting up Classic ASP.
- Click Start, Control Panel, Programs, Turn Windows features on or off.
- Select Internet Information Services.
- Select Web Management Tools then select IIS Management Console.
- Select World Wide Web Services
- In Application development Features, select ASP, CGI, ISAPI Extensions, ISAPI Filters and Server-Side Includes.
- In Common HTTP Features, select Default Document, HTTP Errors, HTTP Redirection and Static Content.
- In Health and Diagnostics, select HTTP Logging and Request Monitor.
- In Performance Features, select Static Content Compression.
- In Security, select Request Filtering.
- Navigate to http://localhost – An IIS welcome page should be shown confirming set up so far.
- Run inetmgr.
- Highlight Default Web Site under Sites the right-click, Manage Web Site then click Advanced Settings. Change the physical path to one specific to your needs, example: d:\mymapsite\web.
- Double-click ASP in the centre panel of IIS Manager and ensure the following are set:
- Enable Parent Paths
- Click on Application Pools in the left hand panel of IIS Manager, click DefaultAppPool in the centre panel then click advanced settings in the right hand panel. Ensure that Enable 32-Bit Applications is set to True.
- Create the following virtual directories in IIS:
- cgi-bin d:\mapserver\cgi-bin (This will probably be MS4W's cgi-bin)
- mapserver d:\mapserver\wwwroot (You might not require this)
- Click on Default Web Site then double-click Handler Mappings in the centre panel.
- In the Actions Pane, click Add Module Mapping then set the following:
- Request path: *.exe
- Module: FastCgiModule
- Executable: d:\mapserver\cgi-bin\mapserv.exe
- Name: Mapserver via FastCGI
- Click on Request Restrictions and set the following:
- Mapping Tab: Check “Invoke handler … “, then set for “File”.
- Verbs Tab: “One of the following …”, enter “GET,HEAD,POST”.
- Access Tab: Check “Execute”.
- Whilst the “MapServer via FastCGI” handler mapping is highlighted, click on Edit feature permissions in the right hand panel then ensure that read, script and execute are checked.
For 64 bit MapServer:
- MapServer x64
- Download x64 version of MapServer from http://www.gisinternals.com/sdk/ Alternatively, there are the 32 bit MapServer files from MS4W (http://ms4w.com) - please contact Gateway Geomatics, the developers of MS4W, directly if you need custom x64 builds.
- Delete all existing files in d:\mapserver\cgi-bin.
- From the above download, copy all dlls from /bin/ to d:\MapServer\cgi-bin.
- Copy Mapserv.exe from /bin/ms/apps/ to d:\mapserver\cgi-bin