wiki:MGOS2onVistaIIS7

Version 13 (modified by davidwilhelmsson, 12 years ago) ( diff )

Added "PageOutline"

Installing MapGuide Open Source 2.0 Web Server Extensions on Vista / IIS 7

A PDF document of these instructions is attached below.

Starting from a fresh install of Windows Vista Enterprise, Internet Information Services 7 will not be installed by default. IIS will need to be installed before installing the Web Tier.

  1. Start -> Control Panel -> Programs and Features.
  2. Select Turn Windows feature on or off.
  3. Install IIS with the following options:
  4. Install MapGuide Web Server Extensions.
  5. Open IIS Manager from Start menu -> Administrative Tools -> IIS Manager.
  6. Select ISAPI and CGI Restrictions from the root level.
  7. Add the following as Allowed:
  8. Navigate to the mapguide virtual directory.
  9. Click Handler Mappings and add the following Script Map:
  10. Navigate to the mapagent virtual directory.
  11. Click Handler Mappings and add the following Script Map:
  12. Exit Internet Information Services Manager.
  13. Control Panel -> Folder Options -> View Tab – Change settings to show all hidden files and folders.
  14. Navigate to C:\Windows\ServiceProfiles\NetworkService\AppData\Local\Temp.
  15. Add permissions to Users accounts as follows:
  16. IIS 7 should now be setup for MapGuide OpenSource 2.0 Web Server Extension.

Installing MapGuide Open Source 2.0 Web Server Extensions on Windows Server 2008 / IIS 7

These steps do not require IIS 6 compatibility mode to be installed. (Sorry that there are no pictures, but perhaps someone could add them.)

  1. Install the web tier selecting "Manual Configuration".
  2. Start the "IIS Manager" applet
  3. On the "Default Web Site", right click and do an "Add Virtual Directory...". Then in the dialog:
    • Alias: mapguide
    • Physical path: C:\Program Files\!MapGuideOpenSource2.0\WebServerExtensions\www
  4. Select your newly added mapguide node, double click "Handler Mappings", select "Add Script Map..."
    • Request Path: *.php
    • Executable: C:\Program Files\!MapGuideOpenSource2.0\WebServerExtensions\Php\php5isapi.dll
    • Name: PHP
    • After clicking OK, press Yes on the "Add Script Map" dialog.
  5. Right click on "mapagent" and select "Convert to Application"
    • Use defaults and press OK
  6. Select "mapagent", double click "Handler Mapping", select CGI-exe, click "Edit Feature Permissions", check "Execute", press OK
  7. Continuing from above, select "Add Module Mapping..."
    • Request path: mapagent.fcgi
    • Module: IsapiModule
    • Executable: C:\Program Files\!MapGuideOpenSource2.0\WebServerExtensions\www\mapagent\isapi_MapAgent.dll
    • Name: MapGuide ISAPI agent
    • After pressing OK, press Yes in the subsequent dialog to enable the mapping
  8. Edit php.ini so that the extension_dir points to C:\Program Files\!MapGuideOpenSource2.0\WebServerExtensions\Php\ext
  9. Add PHP (C:\Program Files\!MapGuideOpenSource2.0\WebServerExtensions\Php) to the system path. Will need to restart Windows because of this.
  10. Select "mapguide", double click on error pages, select the 401 line, click "Remove".
  11. Right click on "mapguide" and select "Convert to Application"
  12. For using the PHP API:
    1. Right click on "mapguide" and select "Add Virtual Directory..."
      • Alias: mapviewerajax
      • Physical path: C:\Program Files\!MapGuideOpenSource2.0\WebServerExtensions\www\mapviewerphp
    2. Select "mapviewerajax", double click "Default Document", click "Add..."
      • Name: ajaxviewer.php
  13. For using the .NET API:
    1. Right click on "mapguide" and select "Add Virtual Directory..."
      • Alias: mapviewerajax
      • Physical path: C:\Program Files\!MapGuideOpenSource2.0\WebServerExtensions\www\mapviewernet
    2. Select "mapviewerajax", double click on "Default Document", click "Add..."
      • Name: ajaxviewer.aspx
    3. Right-click on "mapviewerajax" and select "Convert to Application"
    4. NOTE: Any other applications you create (e.g., Sheboygan sample) will also need to be converted to an application.

One final thing; you may get an "IIS worker process stopped" system dialog show up, this seems to be a PHP ISAPI agent problem: http://bugs.php.net/bug.php?id=44047.

Attachments (8)

Download all attachments as: .zip

Note: See TracWiki for help on using the wiki.