How To Configure PHP 5 With Apache 2 On Windows in 2 Minutes Comment configurer PHP 5 avec Apache 2 sur Windows en 2 minutes
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
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.
Filed under Classé sous Headline News Headline News , How To Comment , Open Source Software Open Source Software , PHP , Tech Note Note technique , Web , Web Hosting Web Hosting , Web Services Services Web , Windows | |
| |
RSS 2.0 RSS 2,0 | |
Trackback this Article | cet article |
Email this Article Envoyer cet article
You may also like to read Vous mai également à lire |




September 22nd, 2007 at 4:16 am Septembre 22, 2007 at 4:16 am
Thank U very much.. U Merci beaucoup ..
October 14th, 2007 at 11:28 pm Octobre 14th, 2007 at 11:28 pm
hi Salut
does this config works on vista? Cette configuration ne fonctionne sur Vista?
i download the latest php, but font contian the php5apache2.dll but i have the php5ts, can any1 tell me what to do..please i télécharger la dernière version de php, mais font contian la php5apache2.dll mais j'ai l'php5ts, any1 peut me dire ce qu'il faut faire s’il vous plaît ..
December 18th, 2007 at 10:50 am Décembre 18, 2007 at 10:50 am
Awesome, thanks! Awesome, merci! this was the critical part I needed. c'était la partie critique dont j'avais besoin. Even book installation procedures were off base Même livre des procédures d'installation ont été l'extérieur de la base
February 24th, 2008 at 9:39 pm 24 février 2008 à 9:39 pm
Thanks, Merci,
That worked well. Cela a bien fonctionné.
Extra step to smooth things in Vista Étape supplémentaire pour faciliter les choses dans Vista
I would add that in the htdocs folder (for those lazy folks who don\’t change the root directory to be something else), that changing the permission ability for USER makes it really simple to add/edit files Je voudrais ajouter que, dans le dossier htdocs (pour les gens paresseux qui n \ 't changer le répertoire racine à être autre chose), que le fait de changer la permission capacité pour l'utilisateur, il est très simple d'ajouter / modifier des fichiers
go to htdocs directory aller à htdocs répertoire
right click and select \”Customize This Folder\” cliquez avec le bouton droit et sélectionnez \ "Personnaliser ce dossier \"
select \”Security\” tab. select \ "Sécurité \".
select \”Edit\” or \”Advanced\” to change the permissions for USER select \ "Edit \" ou \ "avancée \" pour changer les permissions pour l'utilisateur
May 31st, 2008 at 7:17 am 31 mai 2008 à 7:17 am
Hi Salut
Thanks for the info Merci pour l'info
Short and good. À court et bon.
Well done Well done
I have follow you instructions but I get an error: J'ai suivi les instructions vous mais j'obtiens une erreur:
The specified module could not be found. Le module spécifié n'a pas pu être trouvé.
My OS is Vista home premium. Mon OS est Vista Home Premium.
Must say that the file: php5apache2.dll Dois dire que le fichier: php5apache2.dll
was not part of the PHP package. ne faisait pas partie du paquet PHP.
instead, I have: php5ts.dll au lieu de cela, j'ai: php5ts.dll
(Here is a good link to find that missing php5apache2.dll (Voici un bon lien de constater que php5apache2.dll disparus
http://kromann.info/download.php?strFolder=php5_1-Release_TS&strIndex=PHP5_1
)
This is the code lines from my httpd.conf Il s'agit du code lignes de mon httpd.conf
I have placed the lines at the end of the LoadModule list. J'ai placé les lignes à la fin de la liste LoadModule.
This line is the last one on the list: Cette ligne est la dernière sur la liste:
#LoadModule vhost_alias_module modules/mod_vhost_alias.so # LoadModule vhost_alias_module modules / mod_vhost_alias.so
Then right bellow I have placed the 3 lines as you instructed: Puis à droite-dessous j'ai mis les 3 lignes que vous le chargé:
LoadModule php5_module “php/php5apache2.dll” LoadModule php5_module "php/php5apache2.dll"
AddType application/x-httpd-php .php AddType application / x-httpd-php. Php
AddType application/x-httpd-php-source .phps AddType application / x-httpd-php-source. Phps
Please advice S’il vous plaît conseils
Thanks for your help Merci pour votre aide
Amit C. Amit C.