mirror of
https://github.com/macintoshplus/doc-fr.git
synced 2026-03-25 17:32:07 +01:00
119 lines
4.7 KiB
XML
119 lines
4.7 KiB
XML
<?xml version="1.0" encoding="utf-8"?>
|
|
<!-- $Revision$ -->
|
|
<!-- EN-Revision: 8e732e84a1425cf0ab3a5b0da8fe113c7a6da85e Maintainer: yannick Status: ready -->
|
|
<!-- Reviewed: no Maintainer: yannick -->
|
|
|
|
<sect1 xml:id="install.windows.manual" xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink">
|
|
<title>Installation manuelle de PHP sous Windows</title>
|
|
<sect2>
|
|
<title>Choix du serveur Web</title>
|
|
<sect3>
|
|
<title>IIS</title>
|
|
<para>
|
|
IIS est fourni avec Windows.
|
|
Sur un serveur Windows, utilisez Server Manager pour ajouter le rôle IIS.
|
|
Assurez-vous d'inclure la fonctionnalité CGI Role.
|
|
Sur les bureaux Windows, utilisez le centre de contrôle d'ajout/suppression
|
|
de programmes pour ajouter IIS.
|
|
La documentaion de Microsoft a <link xlink:href="https://docs.microsoft.com/en-us/previous-versions/ms181052(v=vs.80)">des instructions détaillées</link>.
|
|
Pour les applications web bureau et web développement, vous pouvez aussi
|
|
utiliser IIS/Express ou PHP Bureau
|
|
<example>
|
|
<title>Ligne de commande pour configurer IIS et PHP</title>
|
|
<programlisting>
|
|
<![CDATA[
|
|
|
|
@echo off
|
|
|
|
REM download .ZIP file of PHP build from http://windows.php.net/downloads/
|
|
|
|
REM path to directory you decompressed PHP .ZIP file into (no trailing \)
|
|
set phppath=c:\php
|
|
|
|
|
|
REM Clear current PHP handlers
|
|
%windir%\system32\inetsrv\appcmd clear config /section:system.webServer/fastCGI
|
|
REM The following command will generate an error message if PHP is not installed. This can be ignored.
|
|
%windir%\system32\inetsrv\appcmd set config /section:system.webServer/handlers /-[name='PHP_via_FastCGI']
|
|
|
|
REM Set up the PHP handler
|
|
%windir%\system32\inetsrv\appcmd set config /section:system.webServer/fastCGI /+[fullPath='%phppath%\php-cgi.exe']
|
|
%windir%\system32\inetsrv\appcmd set config /section:system.webServer/handlers /+[name='PHP_via_FastCGI',path='*.php',verb='*',modules='FastCgiModule',scriptProcessor='%phppath%\php-cgi.exe',resourceType='Unspecified']
|
|
%windir%\system32\inetsrv\appcmd set config /section:system.webServer/handlers /accessPolicy:Read,Script
|
|
|
|
REM Configure FastCGI Variables
|
|
%windir%\system32\inetsrv\appcmd set config -section:system.webServer/fastCgi /[fullPath='%phppath%\php-cgi.exe'].instanceMaxRequests:10000
|
|
%windir%\system32\inetsrv\appcmd.exe set config -section:system.webServer/fastCgi /+"[fullPath='%phppath%\php-cgi.exe'].environmentVariables.[name='PHP_FCGI_MAX_REQUESTS',value='10000']"
|
|
%windir%\system32\inetsrv\appcmd.exe set config -section:system.webServer/fastCgi /+"[fullPath='%phppath%\php-cgi.exe'].environmentVariables.[name='PHPRC',value='%phppath%\php.ini']"
|
|
]]>
|
|
</programlisting>
|
|
</example>
|
|
</para>
|
|
</sect3>
|
|
|
|
<sect3>
|
|
<title>Apache</title>
|
|
<para>
|
|
Il y a plusieurs versions d'Apache2 pour Windows.
|
|
Nous supportons ApacheLounge, mais d'autres options incluent XAMPP,
|
|
WampServer et BitNami, qui fournissent des outils d'installation automatique.
|
|
Vous devriez utiliser mod_php ou mod_fastcgi pour charger PHP dans Apache.
|
|
Si vous utilisez mod_php, vous DEVEZ utiliser une version TS de Apache,
|
|
compilé avec la même version de Visual C et le même CPU (x86 ou x64).
|
|
</para>
|
|
</sect3>
|
|
</sect2>
|
|
|
|
<sect2>
|
|
<title>Choix de la version</title>
|
|
<para>
|
|
Téléchargez la version de production de PHP pour Windows depuis
|
|
<link xlink:href="http://windows.php.net/download/">http://windows.php.net/download/</link>.
|
|
Toutes les versions sont optimisées (<abbrev>PGO</abbrev>), et les versions
|
|
QA et GA sont minutieusement testées.
|
|
</para>
|
|
<para>
|
|
Il y a 4 types de versions de PHP :
|
|
<itemizedlist spacing="compact">
|
|
<listitem>
|
|
<para>
|
|
Thread-Safe(TS) - utilisé pour des serveurs web n'ayant qu'un seul processus, comme Apache avec mod_php
|
|
</para>
|
|
</listitem>
|
|
<listitem>
|
|
<para>
|
|
Non-Thread-Safe(NTS) - utilisé pour IIS et les autres serveurs web FastCGI
|
|
(Apache avec mod_fastcgi) et c'est la version recommandée pour les scripts en ligne de commande
|
|
</para>
|
|
</listitem>
|
|
<listitem>
|
|
<para>x86 - pour système 32-bits.</para>
|
|
</listitem>
|
|
<listitem>
|
|
<para>x64 - pour système 64-bits.</para>
|
|
</listitem>
|
|
</itemizedlist>
|
|
</para>
|
|
</sect2>
|
|
</sect1>
|
|
<!-- Keep this comment at the end of the file
|
|
Local variables:
|
|
mode: sgml
|
|
sgml-omittag:t
|
|
sgml-shorttag:t
|
|
sgml-minimize-attributes:nil
|
|
sgml-always-quote-attributes:t
|
|
sgml-indent-step:1
|
|
sgml-indent-data:t
|
|
indent-tabs-mode:nil
|
|
sgml-parent-document:nil
|
|
sgml-default-dtd-file:"~/.phpdoc/manual.ced"
|
|
sgml-exposed-tags:nil
|
|
sgml-local-catalogs:nil
|
|
sgml-local-ecat-files:nil
|
|
End:
|
|
vim600: syn=xml fen fdm=syntax fdl=2 si
|
|
vim: et tw=78 syn=sgml
|
|
vi: ts=1 sw=1
|
|
-->
|