I am assuming that you have downloaded and installed Apache 2.x on your windows machine. Je suppose que vous avez téléchargé et installé Apache 2.x sur votre machine Windows. Use the latest version 2.2, if you do not have plans to run Subversion on it. Utilisez la dernière version 2,2, si vous n'avez pas à exécuter des plans sur la subversion. Otherwise choose Apache 2.0.x. Sinon, choisissez Apache 2.0.x. Install it with the defaults. Installez-le avec les paramètres par défaut. You may want to however changes the drive on which it is installed. Vous voulez mai modifications cependant le lecteur sur lequel il est installé. Anyway so you have it running. Quoi qu'il en soit si vous l'avez en cours d'exécution. Then you went to php.net and have downloaded and extracted the zip file to say c:\ or d:\. Puis vous êtes allé à php.net et avoir téléchargé et extrait le fichier zip à-dire c: \ ou d: \. I am assuming you have then changed the name of php.ini-recommended to php.ini. Je suis en supposant que vous avez ensuite changé le nom du fichier php.ini-a recommandé à votre php.ini. So far all the steps are straight forward and their install guide is good enough. Jusqu'à présent, toutes les étapes sont simples et leur guide d'installation est assez bonne. Now you are feeling happy about it and want to integrate PHP with Apache, right? Maintenant, vous vous sentez heureux à ce sujet et que vous voulez intégrer PHP avec Apache, non? That’s when the fun begins. C'est que ça commence.

To cut the long story short the instructions in PHP document doesn’t work and have obviously not been updated in a long while. Pour couper la longue histoire court les instructions dans le document PHP ne fonctionne pas et n'ont évidemment pas été mis à jour depuis longtemps. So I will give you a 2 minute guide to glory. Je vais donc vous donner à 2 minutes de guide à la gloire.

Open httpd.conf (in Drive:\Program Files\Apache Group\Apache2\conf) and search for LoadModule statements. Ouvert httpd.conf (dans le lecteur: \ Program Files \ Apache Group \ Apache2 \ conf) et la recherche de LoadModule. At the end add: À la fin, ajouter:
LoadModule php5_module "D:/php/php5apache2.dll" LoadModule php5_module "D: / php/php5apache2.dll"

Then search for Recherchez ensuite directives. directives. At the end add: À la fin, ajouter:

 AddType application/x-httpd-php .php  AddType application/x-httpd-php-source .phps AddType application / x-httpd-php. Php AddType application / x-httpd-php-source. Phps 

Note: The last AddType is a nicety. Note: Le dernier est un AddType nicety. It allows you to view .phps files (php files with extension renamed) in htmlized and colorful format from your browser. Il vous permet de visualiser. Phps fichiers (fichiers PHP avec l'extension renommé) dans htmlized et coloré le format de votre navigateur.

Now restart the server. Maintenant, redémarrez le serveur.
Did I say you are done? Ai-je dit vous avez terminé? Well, you are. Eh bien, vous êtes. So go out and enjoy. Alors, allez-y et apprécier.

Note: If you are a wimp and you don’t need Subversion you may take the easy way out and install Xampp instead. Note: Si vous êtes un wimp et vous n'avez pas besoin de vous Subversion mai prendre le moyen le plus simple à installer et plutôt xampp. It will do the dirty work for you. Il fera le sale boulot pour vous.