Install Web Server in Windows XP with Apache2, PHP5 and MySQL4 - Part 3 Installez le serveur Web dans Windows XP avec Apache 2, PHP5 et MySQL4 - Partie 3

Part 3 - Install PHP 5 Partie 3 - Installer PHP 5

Unzip the PHP zip package that downloaded in Décompressez le paquet PHP zip téléchargé que dans Part 1 Partie 1 to C:\PHP (Create a new folder named PHP at C:\ root level). à C: \ PHP (Créer un nouveau dossier nommé PHP et C: \ racine). Then shut down Apache server. Puis arrêtez le serveur Apache.

Open the Apache httpd.conf with a text editor and add two lines of code: Ouvrez le fichier httpd.conf d'Apache avec un éditeur de texte et d'ajouter deux lignes de code:

LoadModule php5_module C:/php/php5apache2.dll LoadModule php5_module C: / php/php5apache2.dll
AddType application/x-httpd-php .php AddType application / x-httpd-php. Php

Added .php extension to show how to parse .php files Ajoutée. Php extension de montrer comment analysez. Php

Note also the directory in load module points to where we installed PHP. Note également le répertoire module en charge de points où nous avons installé PHP. So if you install PHP at other location, change it accordingly. Donc, si vous installez PHP à un autre emplacement, modifiez-le en conséquence. The directory style should be / too instead of common DOS \. Le répertoire de style devrait être / trop commune au lieu de DOS \.

These two lines can be added to the bottom of the httpd.conf file. Ces deux lignes peuvent être ajoutées au bas du fichier httpd.conf. However, note that modules in the load list are in reverse-priority order; those that come later can override or pre-empt those listed earlier. Toutefois, notez que les modules de charge dans la liste sont dans l'ordre inverse-ordre de priorité; ceux qui viennent plus tard peut annuler ou de préjuger de celles qui sont énumérées plus tôt. Therefore, adding php_mod at the end of the list can have unexpected results, such as disabling mod_rewrite (and other modules) for any php files that exist (mod_rewrite will run fine if the file doesn’t exist). Par conséquent, en ajoutant php_mod à la fin de la liste peuvent avoir des résultats inattendus, tels que la désactivation de mod_rewrite (et d'autres modules) pour les fichiers PHP qui existent (mod_rewrite fonctionnera parfaitement si le fichier n'existe pas). The same error can disable mod_auth and other important modules. La même erreur peut désactiver mod_auth et d'autres modules. In summary, php_mod should be loaded before any modules you wish to run before your php code is executed. En résumé, php_mod devrait être chargé avant les modules que vous souhaitez avant d'exécuter votre code PHP est exécuté. See the note in the Voir la note dans la Apache AddModule documentation Apache AddModule documentation for how to find the recommended ordering. pour savoir comment trouver la commande recommandé.

Next, copy/paste “php.ini-recommended” to C:/Program Files/Apache Group/Apache2 (or your Apache installation path), and rename it to php.ini. Ensuite, copier / coller "php.ini-recommandé" à C: / Program Files / Apache Group/Apache2 (ou votre chemin d'installation de Apache), et renommez-le à votre php.ini. Restart the Apache server. Redémarrez le serveur Apache.

Testing php5 Installation Test de l'installation php5

Create a file with the following contents and save it to the root web folder (C:/Server/htdocs or default C:/Program Files/Apache Group/Apache2/htdocs/) as “php5info.php”. Créez un fichier avec le contenu suivant et enregistrez-le dans le répertoire web racine (C: / Server / htdocs ou par défaut C: / Program Files / Apache Group/Apache2/htdocs /) comme "php5info.php".

<?php <? php
phpinfo(); phpinfo ();
?>

Access the following url Accès l'URL suivante http://localhost/php5_info.php . The complete PHP setting should be displayed on the browser. Le réglage PHP doit être affiché dans le navigateur. If there is an error or nothing been shown, there is problem with installation. Si il ya une erreur ou rien été démontré, il ya problème avec l'installation. Try the installation procedures again. Essayez les procédures d'installation de nouveau.

Enable MySQL extension Activer l'extension MySQL

The php.ini that copied from php.ini-recommended already being set to optimum setting, so there is no special need to edit it. Le php.ini que copié à partir de php.ini recommandé déjà en cours de réglage optimale, il n'y a donc pas nécessité de la modifier. However, it still need to edit to enable mysql extension. Toutefois, il reste encore à modifier pour permettre l'extension MySQL.

Open php.ini in the Apache2 directory with text editor. Ouvrir le fichier php.ini dans le répertoire Apache2 avec éditeur de texte.

Search for the line of extension_dir = “./” . Recherche de la ligne de extension_dir = ". /". Change it to extension_dir = “C:\php5\ext” . Changement à extension_dir = "C: \ php5 \ ext". Also, uncomment the line of extension=php_mysql.dll . Aussi, décommentez la ligne extension = de php_mysql.dll.

Save the php.ini. Enregistrez le fichier php.ini. Restart the Apache server. Redémarrez le serveur Apache. Re-try to access Re-essayez d'accéder à http://localhost/php5_info.php . It should working fine. Il devrait fonctionner correctement. If not try to check what’s the cause of errors, which most likely due to wrong extension_dir or missing extension. Si ne pas essayer de vérifier quelle est la cause d'erreurs, qui très probablement dû à tort ou manquant extension_dir extension. Or you may try to copy all the needed extentions (with .dll extenstion) to Apache2 directory. Mai ou vous essayez de copier toutes les extensions (avec. Prolongation dll), répertoire d'Apache2.

IMPORTANT : This is a machine translated page which is provided "as is" without warranty. IMPORTANT: Il s'agit d'une machine qui traduit la page est fourni "tel quel" sans garantie. Machine translation may be difficult to understand. La traduction automatique mai être difficile à comprendre. Please refer to S'il vous plaît se référer à original English article article original en anglais whenever possible. chaque fois que possible.

Share and contribute or get technical support and help at Partager et de contribuer ou obtenir un appui technique et aider à My Digital Life Forums Ma vie numérique forums .



13 Responses to “Install Web Server in Windows XP with Apache2, PHP5 and MySQL4 - Part 3” 13 réponses à "Installez le serveur Web dans Windows XP avec Apache 2, PHP5 et MySQL4 - Partie 3"

  1. Todd
    May 20th, 2006 03:42 Mai 20th, 2006 03:42
    1

    well, I have followed your directions and everyone else’s before this, but no luck. bien, j'ai suivi vos instructions et tous les autres avant, mais pas de chance. After adding the module declaration in the httpd.conf file, when I restart apache i get - syntax error: cannot load specific module. Après l'ajout de la déclaration module dans le fichier httpd.conf, lorsque je redémarre apache i get - erreur de syntaxe: ne peut pas charger le module spécifique. all of my paths are correct what is the problem? tous mes chemins sont corrects quel est le problème?

  2. Administrator Administrateur
    May 20th, 2006 14:33 20 mai 2006 14:33
    2

    Hi Todd, the issue might be related to mod_perl (if you’re using it as ActivePerl). Salut Todd, la question pourrait être liée à mod_perl (si vous utilisez comme ActivePerl). If you install Apache/2.2, please use mod_perl that is compiled with Apache 2.2 and not Apache 2.0 for compatibility issue. Si vous installez Apache/2.2, s'il vous plaît utiliser mod_perl qui est compilé avec Apache 2.2 et non pas pour Apache 2.0 problème de compatibilité.

  3. greg
    July 12th, 2006 19:10 Juillet 12, 2006 19:10
    3

    I have the server set up and i can read a php file if i start it withhtml tags but it doesnt read the php script i put in. if i dont use the html tags i get a download box when i click on the link to test the php?? J'ai le serveur mis en place et je peux lire un fichier php si je commence il withhtml balises, mais il ne marche pas lire le script php je mets po si je me utiliser les balises HTML-je obtenir une boîte de télécharger quand je clique sur le lien pour tester le php? can u help me!! u peut m'aider!!

  4. Administrator Administrateur
    July 12th, 2006 19:46 Juillet 12, 2006 19:46
    4

    Looks like your web server doesn’t parse PHP file and treat it as text file, follow the steps carefully. On dirait que votre serveur Web n'est pas parse fichier PHP et de la traiter en tant que fichier texte, suivez les étapes attentivement.

  5. greg
    July 13th, 2006 07:32 Juillet 13, 2006 07:32
    5

    ok i reset it and now the server cannot find php5apache2.dll? ok je le réinitialiser et maintenant le serveur ne peut pas trouver php5apache2.dll? It is in the php folder. Il est dans le dossier de PHP. I am using php5.1.4 and apache2.2.2! Je suis en train d'utiliser php5.1.4 et apache2.2.2!

  6. greg
    July 13th, 2006 08:43 Juillet 13, 2006 08:43
    6

    I got it to work i uninstalled apache 2.2 and installed 2.0 and followed your steps again and now it is all working:) J'ai réussi à le faire fonctionner i désinstallé 2.2 et Apache 2.0 et installé ensuite sur vos pas nouveau et il est maintenant tous les travailleurs:)

    Thank you for the help! Je vous remercie pour l'aide!

  7. Tom
    September 10th, 2006 20:48 10 septembre 2006 20:48
    7

    There seems to be a problem with Apache 2.2 and the PHP dll modules (on Windows obviously, don’t know if there are any problems on unix). Il semble y avoir un problème avec Apache 2.2 et PHP dll modules (sur Windows évidemment, ne sais pas s'il ya des problèmes sur UNIX). I fixed it by going to Je fixe il en allant à http://www.apachelounge.com/download/ and downloading their version of the php4apache2.dll file. et de télécharger leur version du fichier php4apache2.dll. This also comes with another file which you have to put in your Apache/bin directory, and you will also need to download a MS Visual C++ Package if you don’t have the .NET framework installed. Cela vient aussi avec un autre fichier que vous avez à mettre dans votre Apache / bin, et vous aurez également besoin de télécharger un MS Visual C + + Package si vous n'avez pas le framework. NET installé. This is all explained in the readme file that comes with the DLL. Tout cela est expliqué dans le fichier README qui vient avec la DLL.

  8. cary Cary
    October 7th, 2006 07:18 Le 7 octobre 2006 07:18
    8

    With Apache 2.2, you will need PHP 5.2.x. Avec Apache 2.2, vous aurez besoin de PHP 5.2.x. It has the php5apache2_2.dll that is compiled for the new version. Il a le php5apache2_2.dll qui est établie pour la nouvelle version. You can download a stable build at Vous pouvez télécharger une version stable à http://snaps.php.net/

  9. JaD JAD
    February 19th, 2007 17:11 Février 19th, 2007 17:11
    9

    You said… Vous avez dit ...
    ...
    Search for the line of extension_dir = “./”. Recherche de la ligne de extension_dir = "./". Change it to extension_dir = “C:\php5\ext”. Changement à extension_dir = "C: \ php5 \ ext". Also, uncomment the line of extension=php_mysql.dll. Aussi, décommentez la ligne extension = de php_mysql.dll.

    Save the php.ini. Enregistrez le fichier php.ini. Restart the Apache server. Redémarrez le serveur Apache. Re-try to access Re-essayez d'accéder à http://localhost/php5_info.php . It should working fine. Il devrait fonctionner correctement. If not try to Si ne pas essayer de
    ….. ... ..
    ….. ... ..
    “C:\php5\ext”. "C: \ php5 \ ext". ?????? — the correct line is - La ligne est
    “C:\php\ext”. "C: \ php \ ext".

  10. JaD JAD
    February 19th, 2007 17:23 Février 19th, 2007 17:23
    10

    u forgot a thing, for the apache.. u oublié une chose, pour l'apache ..
    modify DirectoryIndex and put index.php modifier et mettre DirectoryIndex index.php
    in rest is a good tutorial dans le reste est un bon tutoriel : P

  11. Asokan
    February 25th, 2007 01:30 Février 25th, 2007 01:30
    11

    I am trying to connect mysql5 from apache2 but Je suis en train de se connecter à partir de mysql5 mais apache2
    browser showing an error Navigateur montrant une erreur
    "
    Warning: require(/config/db_config.php) [function.require]: failed to open stream: No such file or directory in C:\webroot\dbconnect.php on line 2 Warning: require (/ config / db_config.php) [function.require]: failed to open stream: Aucun fichier ou répertoire dans C: \ Webroot \ dbconnect.php sur la ligne 2

    Fatal error: require() [function.require]: Failed opening required ‘/config/db_config.php’ (include_path=’.;C:\php5\pear’) in C:\webroot\dbconnect.php on line 2 Fatal error: require () [function.require]: Failed opening required »/ config / db_config.php '(include_path ='.; C: \ php5 \ pear ') in C: \ Webroot \ dbconnect.php sur la ligne 2

    I am using,MySQL5, PHP5 and Apache2.2 running windows xp Je suis en train d'utiliser, MySQL5, PHP5 et Apache2.2 fonctionnant sous Windows XP
    Request your help Demande de votre aide
    Thanking you Je vous remercie
    ******

  12. Asokan
    February 25th, 2007 01:30 Février 25th, 2007 01:30
    12

    I am trying to connect mysql5 from apache2 but Je suis en train de se connecter à partir de mysql5 mais apache2
    browser showing an error Navigateur montrant une erreur
    "
    Warning: require(/config/db_config.php) [function.require]: failed to open stream: No such file or directory in C:\webroot\dbconnect.php on line 2 Warning: require (/ config / db_config.php) [function.require]: failed to open stream: Aucun fichier ou répertoire dans C: \ Webroot \ dbconnect.php sur la ligne 2

    Fatal error: require() [function.require]: Failed opening required ‘/config/db_config.php’ (include_path=’.;C:\php5\pear’) in C:\webroot\dbconnect.php on line 2 Fatal error: require () [function.require]: Failed opening required »/ config / db_config.php '(include_path ='.; C: \ php5 \ pear ') in C: \ Webroot \ dbconnect.php sur la ligne 2

    I am using,MySQL5, PHP5 and Apache2.2 running windows xp Je suis en train d'utiliser, MySQL5, PHP5 et Apache2.2 fonctionnant sous Windows XP
    Request your help Demande de votre aide
    Thanking you Je vous remercie
    Asokan

  13. Handril
    June 21st, 2007 13:10 21 juin 2007 13:10
    13

    I have succes install apache 2, php5 and MySQL 5. J'ai installer succès Apache 2, PHP5 et MySQL 5. I can display php info. Je peux afficher les informations sur php. But, why php script that I make can not run in the IE browser. Mais, pourquoi le script PHP que je fais ne peut pas être exécuté dans le navigateur IE. this simple script like this: ce simple script comme ceci:

    I use Windows XP. Je suis sur Windows XP.

    Thank you for your attention. Je vous remercie de votre attention.

Leave a Reply Laisser un commentaire

You can use these tags: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong> Vous pouvez utiliser ces balises: <a href="" title="fete_christel <abbr title="fete_christel <acronym title="fete_christel <b> <blockquote cite=""> <cite> <code> <del datetime = ""> <em> <i> <q Cite=""> <strike> <strong>

Subscribe without commenting S'abonner sans commentaires


Custom Search

New Articles Nouveaux articles

Incoming Search Terms for the Article Des termes de recherche utilisés pour l'article

error trying access httpd.conf file erreur lors de la tentative d'accès fichier httpd.conf - -- error trying to access httpd.conf file erreur lors de la tentative d'accès fichier httpd.conf - -- error trying to access httpd.conf erreur lors de la tentative d'accéder à httpd.conf - -- error trying access httpd.conf erreur lors de la tentative d'accès httpd.conf - -- error trying access httpd.conf file. erreur lors de la tentative d'accès fichier httpd.conf. you will need to manually configure the web server vous devrez configurer manuellement le serveur Web - -- php error trying access httpd.conf php erreur lors de la tentative d'accès httpd.conf - -- install php5 apache2.2 installer PHP5 apache2.2 - -- error trying to access httpd.conf file. erreur lors de la tentative d'accès fichier httpd.conf. you will need to manually configure the web server vous devrez configurer manuellement le serveur Web - -- error trying to access the httpd.conf file erreur lors de la tentative d'accès au fichier httpd.conf - -- apache2 windows php Windows apache2 php - -- php apache windows apache php Windows - -- error trying acces httpd.conf file erreur lors de la tentative d'accès fichier httpd.conf - -- Apache2.2 and PHP Apache2.2 et PHP - -- "Error trying to access httpd.conf" "Erreur lors de la tentative d'accès httpd.conf" - -- php5 apache windows php5 apache Windows - -- .;C:\php5\pear .; C: \ php5 \ pear - -- error accessing httpd.conf erreur lors de l'accès httpd.conf - -- Error trying access httpd.conf file. Erreur lors de la tentative d'accès fichier httpd.conf. You will need to manually configure the web server. Vous aurez besoin de configurer manuellement le serveur Web. - -- install php 5 and apache 2 on windows xp installer PHP 5 et Apache 2 sur Windows XP - -- php5 apache2.2 php5 apache2.2 - -- apache PHP5 xp apache PHP5 xp - -- install apache2.2 perl windows xp apache2.2 perl installer Windows XP - -- php5 apache2 php5 apache2 - -- using php5 and apache2 on windows en utilisant php5 et apache2 sur les fenêtres - -- apache php5 windows apache php5 Windows - -- how to config apache on Windows XP comment config apache sur Windows XP - -- php5 with apache 2 PHP5 avec Apache 2 - -- error trying access httpd.conf file. erreur lors de la tentative d'accès fichier httpd.conf. - -- install php 5 on apache2.2 installer PHP 5 sur apache2.2 - -- manually configure apache2.2 for php5 apache2.2 configurer manuellement pour php5 - -- php error trying to access httpd.conf php erreur lors de la tentative d'accéder à httpd.conf - -- php5 apache2 windows php5 apache2 Windows - -- "error trying access httpd.conf file. you will need to manually configure this web server." "erreur lors de la tentative d'accès fichier httpd.conf. vous aurez besoin de configurer manuellement ce serveur Web." - -- apache php5 module apache module php5 - -- configuring php on apache 2 on vista la configuration de PHP sur Apache 2 sur Vista - -- installing php5 on apache2 on windows l'installation de php5 sur apache2 sur les fenêtres - -- installing php module to apache windows Installer PHP module d'Apache Windows - -- "error trying access httpd.conf" "erreur lors de la tentative d'accès httpd.conf" - -- apache windows install php module Windows installer apache php module - -- apache2 php install windows apache2 php installation de Windows - -- apache windows php loadmodule apache php fenêtres LoadModule - -- apache web server windows xp serveur web apache Windows XP - -- error trying httpd.conf file.you need to manually erreur lors de la tentative httpd.conf file.you besoin de la main - -- how to run php using apache2 Comment faire pour exécuter PHP en utilisant apache2 - -- How to config Apache2.2 support PHP in windows Comment faire pour config Apache2.2 appui PHP sous Windows - -- httpd.conf file error apache2.2 erreur de fichier httpd.conf apache2.2 - -- i cannot seen Apache2 folder when i installed Apache Je ne peux pas vu Apache2 dossier lorsque j'ai installé Apache - -- installer "error trying to access httpd.conf" d'installation "erreur essayant d'accéder à httpd.conf" - -- installing php and apache on xp Installer PHP et Apache sur xp - -- install php webserver winxp installer winxp web php - --