Académique Documents
Professionnel Documents
Culture Documents
com/en-us/iis/application-frameworks/install-and-configure-php-on-iis/install-and-configure-
php
https://docs.microsoft.com/en-us/iis/application-frameworks/install-and-configure-php-applications-on-iis/using-
fastcgi-to-host-php-applications-on-iis
https://docs.microsoft.com/en-us/previous-versions/windows/it-pro/windows-server-2012-R2-and-
2012/hh994592(v=ws.11)
- Baixar zip da versão do php x86 ou x64 NTF - Non Thread Safe - http://www.php.net/downloads.php.
- Habilitar CGI/FAST-CGI no Windows server através do gerenciador de servidor > painel > adicionar funções e
recursos...
Windows Server 2012 or Windows Server 2012 R2
.
5. On the Select Features page, click Next.
6. On the Confirm installation selections page, click Install.
7. On the Results page, click Close.
- Adicionar caminho da pasta de cada versão do php instalado no servidor à variável path em variáveis de ambiente >
variáveis do sistema.
- Configurar IIS para gerenciar as requisições PHP, pelo IIS Manager > Handler Mappings > Add Module Mapping
- Configurar IIS para executar por padrão o arquivo index.php no IIS server manager selecionando o site e
documento padrão.
https://docs.microsoft.com/en-us/iis/configuration/system.webserver/defaultdocument/
4. If necessary, in the Actions pane, select a default document in the list, and then click Move Up or Move Down to define the
order in which IIS should search through the default document list.
5. In the Default Document alert box, click Yes to decline configuration inheritance from a parent configuration level, or
click Noor Cancel to cancel the change in default document order.
6. If necessary, click Remove in the Actions pane to remove any file names that you do not want to use as default documents.
https://www.iis.net/downloads/microsoft/url-rewrite
Instalar site
https://github.com/PKISharp/win-acme/releases
Demais configurações
- Para exibir erros configure no php.ini display_errors = on para desenvolvimento, mas pode ser melhor desabilitar
para produção devido às mensagens de erro que pode parar o sistema.
- Se alguma das extensões do PHP não estiver funcionando, verifique o caminho da propriedade extension_dir no
arquivo php.ini. A propriedade pode ter sido alterada pelo WPI.