IdentifiantMot de passe
Loading...
Mot de passe oublié ?Je m'inscris ! (gratuit)
Navigation

Inscrivez-vous gratuitement
pour pouvoir participer, suivre les réponses en temps réel, voter pour les messages, poser vos propres questions et recevoir la newsletter

Langage PHP Discussion :

Préparation d'une machine pour développement PHP


Sujet :

Langage PHP

  1. #1
    Membre à l'essai
    Femme Profil pro
    Étudiant
    Inscrit en
    Août 2012
    Messages
    324
    Détails du profil
    Informations personnelles :
    Sexe : Femme
    Localisation : Tunisie

    Informations professionnelles :
    Activité : Étudiant
    Secteur : High Tech - Opérateur de télécommunications

    Informations forums :
    Inscription : Août 2012
    Messages : 324
    Points : 13
    Points
    13
    Par défaut Préparation d'une machine pour développement PHP
    Bonjour tout le monde,
    Je veux développer une application web utilisant PHP et HTML. J'aimerai savoir, avant de me lancer dans le développement, comment préparer une machine pour qu'elle puisse compiler un code avec un tel langage de programmation.

    J'ai quelques scripts PHP que j'aimerai tester, j'ai mysql installé. A part un serveur web tel que apache , y'a t-il autre chose à installer et configurer ?

    Merci d'avance.

  2. #2
    Membre expérimenté
    Homme Profil pro
    Ingénieur développement logiciels
    Inscrit en
    Octobre 2008
    Messages
    1 051
    Détails du profil
    Informations personnelles :
    Sexe : Homme
    Âge : 36
    Localisation : France, Hautes Pyrénées (Midi Pyrénées)

    Informations professionnelles :
    Activité : Ingénieur développement logiciels

    Informations forums :
    Inscription : Octobre 2008
    Messages : 1 051
    Points : 1 638
    Points
    1 638
    Par défaut
    Je dirais que non.

    Le PHP ne se compile pas, du moins pas généralement.

    Il te faut un serveur APACHE + un navigateur internet + un éditeur de texte (Notepad++ par exemple) au minimum.

  3. #3
    Membre à l'essai
    Femme Profil pro
    Étudiant
    Inscrit en
    Août 2012
    Messages
    324
    Détails du profil
    Informations personnelles :
    Sexe : Femme
    Localisation : Tunisie

    Informations professionnelles :
    Activité : Étudiant
    Secteur : High Tech - Opérateur de télécommunications

    Informations forums :
    Inscription : Août 2012
    Messages : 324
    Points : 13
    Points
    13
    Par défaut
    Merci pour ta réponse rapide.
    si c'est tout ce qu'il faut alors a quoi sert exactement ce fameux "WAMP server" ???
    autre question: faut t-il installer PHP?? parce que quand j'ai installé Mysql server je l'ai installé en version ligne de commande (sans le PHP admin)??
    merci

  4. #4
    Rédacteur

    Avatar de Torgar
    Homme Profil pro
    Développeur Web
    Inscrit en
    Août 2007
    Messages
    2 334
    Détails du profil
    Informations personnelles :
    Sexe : Homme
    Âge : 38
    Localisation : France, Hérault (Languedoc Roussillon)

    Informations professionnelles :
    Activité : Développeur Web

    Informations forums :
    Inscription : Août 2007
    Messages : 2 334
    Points : 8 040
    Points
    8 040
    Par défaut
    WAMP = Windows Apache MySQL PHP

    C'est une solution complète prête à l'emploi pour créer une application Web. Cela permet d'installer tous d'un coup et d'avoir un environnement basique. Les configurations ne sont pas optimales mais permettent de se lancer sans trop de difficultés.

    Donc pour répondre à tes questions, si tu as installé le serveur MySQL, il te faut aussi installer un serveur HTTP type Apache, ainsi que PHP. Tu peux, si tu le souhaites, installer PhpMyAdmin en complément de MySQL.

  5. #5
    Expert confirmé
    Avatar de N1bus
    Homme Profil pro
    Dev. Web & OpenERP
    Inscrit en
    Janvier 2003
    Messages
    2 827
    Détails du profil
    Informations personnelles :
    Sexe : Homme
    Âge : 60
    Localisation : France, Seine et Marne (Île de France)

    Informations professionnelles :
    Activité : Dev. Web & OpenERP
    Secteur : High Tech - Multimédia et Internet

    Informations forums :
    Inscription : Janvier 2003
    Messages : 2 827
    Points : 5 673
    Points
    5 673
    Par défaut
    WampServeur, c'est une config toute prête de PHP + Apache + MySQL à installer sous Windows.

    Tu l'installes, tu la configures et tu te lances.

    C'est du "tout prêt", quoi

    Damned, grillé

  6. #6
    Membre à l'essai
    Femme Profil pro
    Étudiant
    Inscrit en
    Août 2012
    Messages
    324
    Détails du profil
    Informations personnelles :
    Sexe : Femme
    Localisation : Tunisie

    Informations professionnelles :
    Activité : Étudiant
    Secteur : High Tech - Opérateur de télécommunications

    Informations forums :
    Inscription : Août 2012
    Messages : 324
    Points : 13
    Points
    13
    Par défaut
    merci, je comprend mieux maintenant. J'aurais donc pas besoin de wamp: je suis sous ubuntu 12.04.
    maintenant j'ai installé apache2, php5 et j'ai mysql server.
    j'ai placé mes fichier.php sous le repertoire /var/www et j'ai lancé index.php mais le navigateur ne m'affiche rien!
    comment règler ceci?

  7. #7
    Rédacteur

    Avatar de Torgar
    Homme Profil pro
    Développeur Web
    Inscrit en
    Août 2007
    Messages
    2 334
    Détails du profil
    Informations personnelles :
    Sexe : Homme
    Âge : 38
    Localisation : France, Hérault (Languedoc Roussillon)

    Informations professionnelles :
    Activité : Développeur Web

    Informations forums :
    Inscription : Août 2007
    Messages : 2 334
    Points : 8 040
    Points
    8 040
    Par défaut
    Ton serveur Apache2 est bien démarré ? (ps -aux | grep "apache")

    Consulte les logs d'Apache au pire : /var/log/apache2/

  8. #8
    Membre à l'essai
    Femme Profil pro
    Étudiant
    Inscrit en
    Août 2012
    Messages
    324
    Détails du profil
    Informations personnelles :
    Sexe : Femme
    Localisation : Tunisie

    Informations professionnelles :
    Activité : Étudiant
    Secteur : High Tech - Opérateur de télécommunications

    Informations forums :
    Inscription : Août 2012
    Messages : 324
    Points : 13
    Points
    13
    Par défaut
    Juste pour être sûre: pour exécuter un fichier.php je fais clique droit --> ouvrir avec firefox. c'est ça non???

  9. #9
    Expert confirmé
    Avatar de N1bus
    Homme Profil pro
    Dev. Web & OpenERP
    Inscrit en
    Janvier 2003
    Messages
    2 827
    Détails du profil
    Informations personnelles :
    Sexe : Homme
    Âge : 60
    Localisation : France, Seine et Marne (Île de France)

    Informations professionnelles :
    Activité : Dev. Web & OpenERP
    Secteur : High Tech - Multimédia et Internet

    Informations forums :
    Inscription : Janvier 2003
    Messages : 2 827
    Points : 5 673
    Points
    5 673
    Par défaut
    non, tu tapes l'url de la page sur ton serveur local


    ça devrait afficher la page index.php que tu as mise à la racine du serveur dans /var/www

  10. #10
    Membre à l'essai
    Femme Profil pro
    Étudiant
    Inscrit en
    Août 2012
    Messages
    324
    Détails du profil
    Informations personnelles :
    Sexe : Femme
    Localisation : Tunisie

    Informations professionnelles :
    Activité : Étudiant
    Secteur : High Tech - Opérateur de télécommunications

    Informations forums :
    Inscription : Août 2012
    Messages : 324
    Points : 13
    Points
    13
    Par défaut
    non toujours une page blanche!!
    pourant quand je fais la même chose avec un fichier test.html contenant le mot hello ça s'affiche.
    je voudrai tester ces exemples de graphes qui se trouvent sur ce lienhttp://phpchart.net/examples/
    mais ça m'affiche le script (le contenu).

  11. #11
    Rédacteur

    Avatar de Torgar
    Homme Profil pro
    Développeur Web
    Inscrit en
    Août 2007
    Messages
    2 334
    Détails du profil
    Informations personnelles :
    Sexe : Homme
    Âge : 38
    Localisation : France, Hérault (Languedoc Roussillon)

    Informations professionnelles :
    Activité : Développeur Web

    Informations forums :
    Inscription : Août 2007
    Messages : 2 334
    Points : 8 040
    Points
    8 040
    Par défaut
    Deuxième édition, que disent les logs ?

  12. #12
    Expert confirmé
    Avatar de N1bus
    Homme Profil pro
    Dev. Web & OpenERP
    Inscrit en
    Janvier 2003
    Messages
    2 827
    Détails du profil
    Informations personnelles :
    Sexe : Homme
    Âge : 60
    Localisation : France, Seine et Marne (Île de France)

    Informations professionnelles :
    Activité : Dev. Web & OpenERP
    Secteur : High Tech - Multimédia et Internet

    Informations forums :
    Inscription : Janvier 2003
    Messages : 2 827
    Points : 5 673
    Points
    5 673
    Par défaut
    Il faudrait vérifier que Apache2 soit bien démarré.

  13. #13
    Membre à l'essai
    Femme Profil pro
    Étudiant
    Inscrit en
    Août 2012
    Messages
    324
    Détails du profil
    Informations personnelles :
    Sexe : Femme
    Localisation : Tunisie

    Informations professionnelles :
    Activité : Étudiant
    Secteur : High Tech - Opérateur de télécommunications

    Informations forums :
    Inscription : Août 2012
    Messages : 324
    Points : 13
    Points
    13
    Par défaut
    je ne serais te dire car je ne comprend pas ce qu'ils contiennent. Pour moi c'est du chinois, je m'excuse.

  14. #14
    Rédacteur

    Avatar de Torgar
    Homme Profil pro
    Développeur Web
    Inscrit en
    Août 2007
    Messages
    2 334
    Détails du profil
    Informations personnelles :
    Sexe : Homme
    Âge : 38
    Localisation : France, Hérault (Languedoc Roussillon)

    Informations professionnelles :
    Activité : Développeur Web

    Informations forums :
    Inscription : Août 2007
    Messages : 2 334
    Points : 8 040
    Points
    8 040
    Par défaut
    Poste nous le contenu de error.log ainsi que le résultat de cette commande dans un terminal : ps -aux | grep "apache"

  15. #15
    Membre à l'essai
    Femme Profil pro
    Étudiant
    Inscrit en
    Août 2012
    Messages
    324
    Détails du profil
    Informations personnelles :
    Sexe : Femme
    Localisation : Tunisie

    Informations professionnelles :
    Activité : Étudiant
    Secteur : High Tech - Opérateur de télécommunications

    Informations forums :
    Inscription : Août 2012
    Messages : 324
    Points : 13
    Points
    13
    Par défaut
    voici le résultat de la commnde ps:
    Code : Sélectionner tout - Visualiser dans une fenêtre à part
    1
    2
    3
    4
    5
    6
    7
    8
    9
    10
    11
    12
    13
    14
    Warning: bad ps syntax, perhaps a bogus '-'? See http://procps.sf.net/faq.html
    root      1161  0.1  5.1 759408 99872 ?        Sl   08:27   0:11 /usr/bin/java -Djava.util.logging.config.file=/usr/share/tomcat7/conf/logging.properties -Djava.util.logging.manager=org.apache.juli.ClassLoaderLogManager -Djava.endorsed.dirs=/usr/share/tomcat7/endorsed -classpath /usr/share/tomcat7/bin/bootstrap.jar:/usr/share/tomcat7/bin/tomcat-juli.jar -Dcatalina.base=/usr/share/tomcat7 -Dcatalina.home=/usr/share/tomcat7 -Djava.io.tmpdir=/usr/share/tomcat7/temp org.apache.catalina.startup.Bootstrap start
    root      4158  0.0  0.3  21220  6348 ?        Ss   09:19   0:00 /usr/sbin/apache2 -k start
    www-data  4162  0.0  0.2  21300  5248 ?        S    09:19   0:00 /usr/sbin/apache2 -k start
    www-data  4163  0.0  0.2  21812  5112 ?        S    09:19   0:00 /usr/sbin/apache2 -k start
    www-data  4164  0.0  0.2  21812  5128 ?        S    09:19   0:00 /usr/sbin/apache2 -k start
    www-data  4165  0.0  0.2  21300  4320 ?        S    09:19   0:00 /usr/sbin/apache2 -k start
    www-data  4166  0.0  0.2  21300  4352 ?        S    09:19   0:00 /usr/sbin/apache2 -k start
    www-data  5025  0.0  0.2  21812  5460 ?        S    10:15   0:00 /usr/sbin/apache2 -k start
    www-data  5026  0.0  0.2  21804  5332 ?        S    10:15   0:00 /usr/sbin/apache2 -k start
    www-data  5027  0.0  0.2  21292  5220 ?        S    10:15   0:00 /usr/sbin/apache2 -k start
    www-data  5028  0.0  0.2  21804  5332 ?        S    10:15   0:00 /usr/sbin/apache2 -k start
    www-data  5223  0.0  0.2  21300  4280 ?        S    10:22   0:00 /usr/sbin/apache2 -k start
    root      5592  0.0  0.0   4392   832 pts/3    S+   10:42   0:00 grep --color=auto apache
    et voici le contenu du fichier error.log
    Code : Sélectionner tout - Visualiser dans une fenêtre à part
    1
    2
    3
    4
    5
    6
    7
    8
    9
    10
    11
    12
    13
    14
    15
    16
    17
    18
    19
    20
    21
    22
    23
    24
    25
    26
    27
    28
    29
    30
    31
    32
    33
    34
    35
    36
    37
    38
    39
    40
    41
    42
    43
    44
    45
    46
    47
    48
    49
    50
    51
    52
    53
    54
    55
    56
    57
    58
    59
    60
    61
    62
    63
    64
    65
    [Thu May 02 09:16:46 2013] [notice] Apache/2.2.22 (Ubuntu) configured -- resuming normal operations
    [Thu May 02 09:17:44 2013] [error] [client 127.0.0.1] File does not exist: /var/www/favicon.ico
    [Thu May 02 09:17:44 2013] [error] [client 127.0.0.1] File does not exist: /var/www/favicon.ico
    [Thu May 02 09:18:32 2013] [notice] caught SIGTERM, shutting down
    [Thu May 02 09:18:38 2013] [notice] Apache/2.2.22 (Ubuntu) configured -- resuming normal operations
    [Thu May 02 09:18:44 2013] [notice] caught SIGTERM, shutting down
    [Thu May 02 09:18:45 2013] [notice] Apache/2.2.22 (Ubuntu) PHP/5.3.10-1ubuntu3.6 with Suhosin-Patch configured -- resuming normal operations
    [Thu May 02 09:19:05 2013] [notice] caught SIGTERM, shutting down
    [Thu May 02 09:19:06 2013] [notice] Apache/2.2.22 (Ubuntu) PHP/5.3.10-1ubuntu3.6 with Suhosin-Patch configured -- resuming normal operations
    [Thu May 02 10:11:48 2013] [error] [client 127.0.0.1] PHP Fatal error:  Call to undefined function mysql_connect() in /var/www/configbase.php on line 2, referer: http://www.developpez.net/forums/d1338621/debuter/preparation-machine-pour-developpement-php/
    [Thu May 02 10:15:26 2013] [error] [client 127.0.0.1] File does not exist: /var/www/style.css, referer: http://localhost/index.html
    [Thu May 02 10:15:26 2013] [error] [client 127.0.0.1] File does not exist: /var/www/js, referer: http://localhost/index.html
    [Thu May 02 10:15:26 2013] [error] [client 127.0.0.1] File does not exist: /var/www/images, referer: http://localhost/index.html
    [Thu May 02 10:15:26 2013] [error] [client 127.0.0.1] File does not exist: /var/www/img, referer: http://localhost/index.html
    [Thu May 02 10:15:26 2013] [error] [client 127.0.0.1] File does not exist: /var/www/img, referer: http://localhost/index.html
    [Thu May 02 10:15:26 2013] [error] [client 127.0.0.1] File does not exist: /var/www/img, referer: http://localhost/index.html
    [Thu May 02 10:15:26 2013] [error] [client 127.0.0.1] File does not exist: /var/www/img, referer: http://localhost/index.html
    [Thu May 02 10:15:26 2013] [error] [client 127.0.0.1] File does not exist: /var/www/img, referer: http://localhost/index.html
    [Thu May 02 10:15:26 2013] [error] [client 127.0.0.1] File does not exist: /var/www/img, referer: http://localhost/index.html
    [Thu May 02 10:15:26 2013] [error] [client 127.0.0.1] File does not exist: /var/www/img, referer: http://localhost/index.html
    [Thu May 02 10:15:26 2013] [error] [client 127.0.0.1] File does not exist: /var/www/img, referer: http://localhost/index.html
    [Thu May 02 10:15:26 2013] [error] [client 127.0.0.1] File does not exist: /var/www/img, referer: http://localhost/index.html
    [Thu May 02 10:15:26 2013] [error] [client 127.0.0.1] File does not exist: /var/www/images, referer: http://localhost/index.html
    [Thu May 02 10:15:26 2013] [error] [client 127.0.0.1] File does not exist: /var/www/flash, referer: http://localhost/index.html
    [Thu May 02 10:15:26 2013] [error] [client 127.0.0.1] File does not exist: /var/www/img, referer: http://localhost/index.html
    [Thu May 02 10:15:26 2013] [error] [client 127.0.0.1] File does not exist: /var/www/img, referer: http://localhost/index.html
    [Thu May 02 10:15:26 2013] [error] [client 127.0.0.1] File does not exist: /var/www/img, referer: http://localhost/index.html
    [Thu May 02 10:15:26 2013] [error] [client 127.0.0.1] File does not exist: /var/www/img, referer: http://localhost/index.html
    [Thu May 02 10:15:26 2013] [error] [client 127.0.0.1] File does not exist: /var/www/img, referer: http://localhost/index.html
    [Thu May 02 10:15:26 2013] [error] [client 127.0.0.1] File does not exist: /var/www/img, referer: http://localhost/index.html
    [Thu May 02 10:15:26 2013] [error] [client 127.0.0.1] File does not exist: /var/www/img, referer: http://localhost/index.html
    [Thu May 02 10:15:26 2013] [error] [client 127.0.0.1] File does not exist: /var/www/img, referer: http://localhost/index.html
    [Thu May 02 10:15:26 2013] [error] [client 127.0.0.1] File does not exist: /var/www/img, referer: http://localhost/index.html
    [Thu May 02 10:20:14 2013] [error] [client 127.0.0.1] PHP Fatal error:  Call to undefined function mysql_connect() in /var/www/configbase.php on line 2, referer: http://www.developpez.net/forums/d1338621/debuter/preparation-machine-pour-developpement-php/
    [Thu May 02 10:20:24 2013] [error] [client 127.0.0.1] PHP Warning:  require_once(../conf.php): failed to open stream: No such file or directory in /var/www/pieTest.php on line 2
    [Thu May 02 10:20:24 2013] [error] [client 127.0.0.1] PHP Fatal error:  require_once(): Failed opening required '../conf.php' (include_path='.:/usr/share/php:/usr/share/pear') in /var/www/pieTest.php on line 2
    [Thu May 02 10:22:12 2013] [error] [client 127.0.0.1] PHP Fatal error:  Call to undefined function mysql_connect() in /var/www/configbase.php on line 2, referer: http://www.developpez.net/forums/d1338621/debuter/preparation-machine-pour-developpement-php/
    [Thu May 02 10:22:17 2013] [error] [client 127.0.0.1] File does not exist: /var/www/style.css, referer: http://localhost/index.html
    [Thu May 02 10:22:17 2013] [error] [client 127.0.0.1] File does not exist: /var/www/js, referer: http://localhost/index.html
    [Thu May 02 10:22:17 2013] [error] [client 127.0.0.1] File does not exist: /var/www/images, referer: http://localhost/index.html
    [Thu May 02 10:22:17 2013] [error] [client 127.0.0.1] File does not exist: /var/www/img, referer: http://localhost/index.html
    [Thu May 02 10:22:17 2013] [error] [client 127.0.0.1] File does not exist: /var/www/img, referer: http://localhost/index.html
    [Thu May 02 10:22:17 2013] [error] [client 127.0.0.1] File does not exist: /var/www/img, referer: http://localhost/index.html
    [Thu May 02 10:22:17 2013] [error] [client 127.0.0.1] File does not exist: /var/www/img, referer: http://localhost/index.html
    [Thu May 02 10:22:17 2013] [error] [client 127.0.0.1] File does not exist: /var/www/img, referer: http://localhost/index.html
    [Thu May 02 10:22:17 2013] [error] [client 127.0.0.1] File does not exist: /var/www/img, referer: http://localhost/index.html
    [Thu May 02 10:22:17 2013] [error] [client 127.0.0.1] File does not exist: /var/www/img, referer: http://localhost/index.html
    [Thu May 02 10:22:17 2013] [error] [client 127.0.0.1] File does not exist: /var/www/img, referer: http://localhost/index.html
    [Thu May 02 10:22:17 2013] [error] [client 127.0.0.1] File does not exist: /var/www/img, referer: http://localhost/index.html
    [Thu May 02 10:22:17 2013] [error] [client 127.0.0.1] File does not exist: /var/www/images, referer: http://localhost/index.html
    [Thu May 02 10:22:17 2013] [error] [client 127.0.0.1] File does not exist: /var/www/flash, referer: http://localhost/index.html
    [Thu May 02 10:22:17 2013] [error] [client 127.0.0.1] File does not exist: /var/www/img, referer: http://localhost/index.html
    [Thu May 02 10:22:17 2013] [error] [client 127.0.0.1] File does not exist: /var/www/img, referer: http://localhost/index.html
    [Thu May 02 10:22:17 2013] [error] [client 127.0.0.1] File does not exist: /var/www/img, referer: http://localhost/index.html
    [Thu May 02 10:22:17 2013] [error] [client 127.0.0.1] File does not exist: /var/www/img, referer: http://localhost/index.html
    [Thu May 02 10:22:17 2013] [error] [client 127.0.0.1] File does not exist: /var/www/img, referer: http://localhost/index.html
    [Thu May 02 10:22:17 2013] [error] [client 127.0.0.1] File does not exist: /var/www/img, referer: http://localhost/index.html
    [Thu May 02 10:22:17 2013] [error] [client 127.0.0.1] File does not exist: /var/www/img, referer: http://localhost/index.html
    [Thu May 02 10:22:17 2013] [error] [client 127.0.0.1] File does not exist: /var/www/img, referer: http://localhost/index.html
    [Thu May 02 10:22:17 2013] [error] [client 127.0.0.1] File does not exist: /var/www/img, referer: http://localhost/index.html
    [Thu May 02 10:30:13 2013] [error] [client 127.0.0.1] script '/var/www/startcamembert.php' not found or unable to stat
    [Thu May 02 10:30:37 2013] [error] [client 127.0.0.1] PHP Fatal error:  Call to undefined function mysql_connect() in /var/www/configbase.php on line 2, referer: http://www.developpez.net/forums/d1338621/debuter/preparation-machine-pour-developpement-php/
    [Thu May 02 10:30:51 2013] [error] [client 127.0.0.1] PHP Fatal error:  Call to undefined function imagecreatetruecolor() in /var/www/camembert.php on line 76
    [Thu May 02 10:35:29 2013] [error] [client 127.0.0.1] PHP Fatal error:  Call to undefined function mysql_connect() in /var/www/configbase.php on line 2
    [Thu May 02 10:36:56 2013] [error] [client 127.0.0.1] PHP Fatal error:  Call to undefined function mysql_connect() in /var/www/configbase.php on line 2, referer: http://forum.lesite.com/php-debutant/affiche-pas-php-sous-firefox-linux-apache-t7413.html

  16. #16
    Expert confirmé
    Avatar de N1bus
    Homme Profil pro
    Dev. Web & OpenERP
    Inscrit en
    Janvier 2003
    Messages
    2 827
    Détails du profil
    Informations personnelles :
    Sexe : Homme
    Âge : 60
    Localisation : France, Seine et Marne (Île de France)

    Informations professionnelles :
    Activité : Dev. Web & OpenERP
    Secteur : High Tech - Multimédia et Internet

    Informations forums :
    Inscription : Janvier 2003
    Messages : 2 827
    Points : 5 673
    Points
    5 673
    Par défaut
    La page n'affiche rien car les erreurs sont masquées et le script s'arrête.
    En local pour les tests tu peux mettre display_errors à On dans le fichier php.ini. Il faut ensuite redémarrer Apache.

  17. #17
    Membre à l'essai
    Femme Profil pro
    Étudiant
    Inscrit en
    Août 2012
    Messages
    324
    Détails du profil
    Informations personnelles :
    Sexe : Femme
    Localisation : Tunisie

    Informations professionnelles :
    Activité : Étudiant
    Secteur : High Tech - Opérateur de télécommunications

    Informations forums :
    Inscription : Août 2012
    Messages : 324
    Points : 13
    Points
    13
    Par défaut
    Merci beaucoup, je le trouve où ce fichier?

  18. #18
    Expert confirmé
    Avatar de N1bus
    Homme Profil pro
    Dev. Web & OpenERP
    Inscrit en
    Janvier 2003
    Messages
    2 827
    Détails du profil
    Informations personnelles :
    Sexe : Homme
    Âge : 60
    Localisation : France, Seine et Marne (Île de France)

    Informations professionnelles :
    Activité : Dev. Web & OpenERP
    Secteur : High Tech - Multimédia et Internet

    Informations forums :
    Inscription : Janvier 2003
    Messages : 2 827
    Points : 5 673
    Points
    5 673
    Par défaut
    Dans le php.ini, dans la section Error handling and logging

    décommenter ou mettre
    error_reporting = E_ALL & ~E_NOTICE
    puis plus loin
    display_errors = On

    Sur suse c'est dans /etc/php5/apache2 .
    Je ne sais pas pour Ubuntu

  19. #19
    Rédacteur

    Avatar de Torgar
    Homme Profil pro
    Développeur Web
    Inscrit en
    Août 2007
    Messages
    2 334
    Détails du profil
    Informations personnelles :
    Sexe : Homme
    Âge : 38
    Localisation : France, Hérault (Languedoc Roussillon)

    Informations professionnelles :
    Activité : Développeur Web

    Informations forums :
    Inscription : Août 2007
    Messages : 2 334
    Points : 8 040
    Points
    8 040
    Par défaut
    Il faut aussi s'assurer que l'extension MySQL soit chargée.

    Dans le PHP.ini, décommente cette ligne : extension=php_mysql.dll

  20. #20
    Membre à l'essai
    Femme Profil pro
    Étudiant
    Inscrit en
    Août 2012
    Messages
    324
    Détails du profil
    Informations personnelles :
    Sexe : Femme
    Localisation : Tunisie

    Informations professionnelles :
    Activité : Étudiant
    Secteur : High Tech - Opérateur de télécommunications

    Informations forums :
    Inscription : Août 2012
    Messages : 324
    Points : 13
    Points
    13
    Par défaut
    Au fait ça ne résout pas le problème mais ça me permet de voir les erreur au moin.
    j'ai cette erreur:
    Fatal error: Call to undefined function mysql_connect()
    est ce qu'il y a un connector à installer ( quand j'ai programmé en java j'en ai utilisé un je me souviens).

+ Répondre à la discussion
Cette discussion est résolue.
Page 1 sur 2 12 DernièreDernière

Discussions similaires

  1. Android++ : une extension pour développer des applications Android
    Par Stéphane le calme dans le forum Visual Studio
    Réponses: 10
    Dernier message: 31/01/2014, 23h41
  2. Réponses: 2
    Dernier message: 21/05/2011, 22h10
  3. [PC portable] Cherche machine pour développements .NET
    Par seb.49 dans le forum Ordinateurs
    Réponses: 3
    Dernier message: 12/10/2009, 11h07
  4. Réponses: 9
    Dernier message: 26/01/2008, 15h17

Partager

Partager
  • Envoyer la discussion sur Viadeo
  • Envoyer la discussion sur Twitter
  • Envoyer la discussion sur Google
  • Envoyer la discussion sur Facebook
  • Envoyer la discussion sur Digg
  • Envoyer la discussion sur Delicious
  • Envoyer la discussion sur MySpace
  • Envoyer la discussion sur Yahoo