Instalar MapGuide 2.4 on IIS
Instruções passo a passo para instalar MapGuide 2.4 no IIS.
Estas instruções devem também trabalhar com MapGuide 2.5 / 2.6. Renomeie ocorrências de "2.4" e "24", com o correspondente MapGuide versão.
Prerequisite: Microsoft .NET Framework 4
If Microsoft .NET Framework 4 or 4.5 is not installed, install Microsoft .NET Framework 4 (Web Installer).
Pré-requisitos: IIS
Windows Server 2008
- Open Start -> Server Manager -> Roles
- Roles Summary -> If "Web Server (IIS)" is not installed, Add Role
- Web Server (IIS) -> Add Role Services
- Install
Windows 7 e 10
- Open Start -> Control Panel -> Programs -> Programs and Features -> Turn Windows features on or off
- Install
- Internet Information Services, which also installs several default features
- Internet Information Services -> World Wide Web Services -> Application Development Features -> ASP.NET, which also installs .NET Extensibility, ISAPI Extensions and ISAPI Filters
- Internet Information Services -> World Wide Web Services -> Application Development Features -> CGI, which also enables FastCGI in IIS7 and above
Manual configuration: IIS
If MapGuide has been installed with a manual configuration, IIS will need to be manually configured.
- For Windows 7, open Start -> Control Panel -> System and Security -> Administrative Tools -> Internet Information Services (IIS) Manager
- Open [root]\Application Pools -> Actions -> Add Application Pool...
- Name: MapGuide24AppPool
- .NET Framework version: .NET Framework v4.0.30319
- Managed pipeline mode: Integrated
- Tb podemos ter em alternativa para Mapguide 2.0
- .NET Framework version: .NET Framework v2.0.50727
- Managed pipeline mode: classic
Se não abrigarmos a corrermos o aplicativo em 32bits poderemos ter erros como no caso do fgci
Mais à frente vamos configurar no passo 6 vamos configurar o módulo ISAPI para correr mapagent\isapi_MapAgent.dll
Ao criarmos este módulo ele adiciona ao webconfig a primitiva preCondition="bitness32". Ou seja, o IIS só corre o módulo ISAPi caso corra em 32 bits.
Como está a correr a 64 bits ele ignora a configuração e tenta correr a aplicação como se de um ficheiro estático se tratasse.
Para ultrapassar isso devemos forçar a aplicação criada MapGuide24AppPool, a correr a 32bits.
- Open [root] -> FastCGI Settings (If there is no FastCGI Settings (ie. Windows Server 2008), install IIS 7.0 Administration Pack) -> Actions -> Add Application...
- Full Path: C:\Program Files\OSGeo\MapGuide\Web\Php\php-cgi.exe
- FastCGI Properties:
- Max Instances: 0
- Activity Timeout: 70
- Open [root] -> ISAPI and CGI Restrictions -> Actions -> Add...
- Open [root] -> MIME Types -> Actions -> Add...
- Open [root]\Sites\Default Web Site -> Actions -> View Applications -> Actions -> Add Application...
- Alias: mapguide
- Application pool: MapGuide24AppPool (or MapGuide25AppPool)
- Physical path: C:\Program Files\OSGeo\MapGuide\Web\www
- Open [root]\Sites\Default Web Site\mapguide -> Error Pages -> Select "401" -> Actions -> Remove
- Are you sure that you want to remove the selected custom error page? Yes
- Open [root]\Sites\Default Web Site\mapguide -> Handler Mappings -> Actions -> Add Module Mapping...
- Request path: *.php
- Module: FastCgiModule?
- Executable (optional): C:\Program Files\OSGeo\MapGuide\Web\Php\php-cgi.exe
- Name: MapGuide_2.4_PHP_via_FastCGI
- Do you want to create a FastCGI application for this executable? Yes
- Right-click [root]\Sites\Default Web Site\mapguide\mapagent -> Convert to Application
- Alias: mapagent
- Application pool: MapGuide24AppPool
- Physical path: C:\Program Files\OSGeo\MapGuide\Web\www\mapagent
- Open [root]\Sites\Default Web Site\mapguide\mapagent -> Handler Mappings -> Select "CGI-exe" -> Actions -> Edit Feature Permissions...
- Open [root]\Sites\Default Web Site\mapguide\mapagent -> Handler Mappings -> Actions -> Add Script Map...
- Right-click [root]\Sites\Default Web Site\mapguide\mapviewernet -> Convert to Application
- Alias: mapviewernet
- Application pool: MapGuide24AppPool (or MapGuide25AppPool)
- Physical path: C:\Program Files\OSGeo\MapGuide\Web\www\mapviewernet
- For .NET API: Right-click [root]\Sites\Default Web Site\mapguide -> Add Application...
- Alias: mapviewerajax
- Application pool: MapGuide24AppPool
- Physical path: C:\Program Files\OSGeo\MapGuide\Web\www\mapviewernet
- For .NET API: Open [root]\Sites\Default Web Site\mapguide\mapviewerajax -> Default Document -> Add...
- Name: ajaxviewer.aspx
Test
- Open http:
localhost\mapguide\mapagent\index.html -> Other -> Create Session -> Submit - Username: Administrator
- Password: admin
0 comentários :
Enviar um comentário