| 88 | === IIS 7.x === |
| 89 | |
| 90 | 1. Install IIS 7.x to Windows 7 or Windows 2008 Server |
| 91 | |
| 92 | By default, IIS 7 under Windows 7 and Windows 2008 Server is a windows feature not turned on. Under Windows 7, to turn on this feature, go to Control Panel->Programs->Turn Windows Features On or Off, in the poped up Windows Features, expand Internet Information Services, check WWW Services, click OK to install the selected features. Under Windows 2008 Server, go to Control Panel->Administrative Tools->Server Manager, in the left panel of popped up window, select Role, in the right panel, click Add Roles->Server Roles->Web Server(IIS), click OK to add the selected Role, then in the left panel, select Feature, in the right panel, click Add Features, a window with available windows features should open. Find Web Server (IIS) Tools and check it, click OK to install this feature. |
| 93 | |
| 94 | 2. Create registry key IniFilePath. |
| 95 | |
| 96 | suppose PHP is installed under c:\php and with all mapguide related extensions copied to folder '''ext''' like what you've done with runing Apache as Web Server. If you've already configured Apache to run mapguide successfully, nothing needs to be done with your PHP installation. |
| 97 | |
| 98 | Create a registry key to HKEY_LOCAL_MACHINE->SOFTWARE->PHP->IniFilePath with string value '''c:\php\''', this is where '''php.ini''' is. |
| 99 | |
| 100 | Open a windows command prompt as Administrator, type |
| 101 | {{{ |
| 102 | regedit |
| 103 | }}} |
| 104 | |
| 105 | 3. Configure IIS 7. Open IIS Manager by going to Control Panel->Administrative Tools->IIS Manager. |
| 106 | |
| 107 | * Create Application Pool. Below only list the values for the fields in GUI |
| 108 | |
| 109 | Name: MapGuideAppPool |
| 110 | .NET Framework Version: (what ever version available in the drop down list) |
| 111 | Pipeline Mode: Integrated |
| 112 | Start Application Pool Immediately: true |
| 113 | |
| 114 | * IIS's configuration has several levels, the topmost levle is Server(or Host), then Sites, Virtual Directory. The configuration of lower layer can inherated from its parent layer. For this reason, we only configure at the Server layer. in the left panel, select what every your machine name is, there should be a list of configuration categories in the right panel. The important categories are Handler Mapping, ISAPI and CGI Restrictions, ISAPI Filter |
| 115 | |
| 116 | * Handler Mapping->Add Module Mappings, add the following module mappings |
| 117 | 1. FastCGIModule |
| 118 | {{{ |
| 119 | requiest path: *.php |
| 120 | module: FastCGIModule |
| 121 | executable: C:\php\php.exe |
| 122 | Name: PHP <version> |
| 123 | }}} |
| 124 | 2. ISAPIModule |
| 125 | {{{ |
| 126 | request path: *.php |
| 127 | module: IsapiModule |
| 128 | executable: c:\php\php5isapi.dll |
| 129 | name: PHP ISAPI Handler |
| 130 | }}} |
| 131 | |
| 132 | * ISAPI and CGI Restrictions. Add the following restrictions: |
| 133 | 1. Map Agent ISAPI Handler |
| 134 | {{{ |
| 135 | ISAPI or CGI Path: c:\mapguide-2.2-beta1\Web\www\mapagent\isapi_MapAgent.dll |
| 136 | Description: MapGuide MapAgent ISAPI Handler |
| 137 | }}} |
| 138 | 2. PHP ISAPI Handler |
| 139 | {{{ |
| 140 | ISAPI or CGI Path: c:\php\php5isapi.dll |
| 141 | Description: PHP ISAPI Handler |
| 142 | }}} |
| 143 | |
| 144 | * Add Applications to Default Web Site. Right-click Default Web Site->Add Application |
| 145 | {{{ |
| 146 | Alias: mapguide |
| 147 | Application Pool: MapGuideAppPool |
| 148 | Physical Path: c:\mapguide-2.2-beta1\Web\www |
| 149 | }}} |
| 150 | |