Page 1 sur 1
bug WampServer
Posté : 12 mai 2006, 20:07
par Invité
Bonjour
J'ai installé WampServer mais il y a un problème: le PHP n'est pas interprété, il est affiché tel quel.
Faut-il régler quelque chose après/avant l'installation?
Merci
Posté : 12 mai 2006, 20:29
par Cyrano
As-tu bien lancé ton serveur Apache ? Dans la barre des tâches, tu dois avoir un icône en demi-cercle : s'il est en rouge complètement, la réponse est non.
Ceci dit, je soupçonne aussi une autre possibilité: comment essayes-tu d'afficher tes pages au juste ?? Pas en faisant un double-clic sur le fichier par hasard ?
Posté : 12 mai 2006, 22:44
par Invité
Apache et MySQL sont allumés (le demi cercle est blanc), et je lance les fichiers à partir de /localhost. Je ne comprends pas pourquoi ça ne marche pas.
Posté : 12 mai 2006, 22:56
par Cyrano
Tu appelles bien tes fichier en mettant une url du genre
http://localhost/monfichier.php ?
Posté : 13 mai 2006, 12:55
par Invité
Oui
Posté : 13 mai 2006, 12:58
par Cyrano
Il faudrait vérifier le log Apache : dans ton répertoire Apache, il doit y avoir un sous-répertoire "logs" : édite le fichier error.log et inspecte les dernières lignes pour voir si certains éléments n'ont pas l'air du tout corrects.
Posté : 13 mai 2006, 18:26
par Invité
[Fri May 12 20:02:58 2006] [notice] Apache/2.0.55 (Win32) PHP/5.1.4 configured -- resuming normal operations
[Fri May 12 20:02:58 2006] [notice] Server built: Oct 9 2005 19:16:56
[Fri May 12 20:02:58 2006] [notice] Parent: Created child process 636
[Fri May 12 20:02:58 2006] [notice] Child 636: Child process is running
[Fri May 12 20:02:58 2006] [notice] Child 636: Acquired the start mutex.
[Fri May 12 20:02:59 2006] [notice] Child 636: Starting 250 worker threads.
[Fri May 12 20:03:10 2006] [error] [client 127.0.0.1] File does not exist: C:/wamp/www/favicon.ico
[Fri May 12 20:08:07 2006] [notice] Parent: Received shutdown signal -- Shutting down the server.
[Fri May 12 20:08:07 2006] [notice] Child 636: Exit event signaled. Child process is ending.
[Fri May 12 20:08:08 2006] [notice] Child 636: Released the start mutex
[Fri May 12 20:08:09 2006] [notice] Child 636: Waiting for 250 worker threads to exit.
[Fri May 12 20:08:21 2006] [notice] Child 636: All worker threads have exited.
[Fri May 12 20:08:21 2006] [notice] Child 636: Child process is exiting
[Fri May 12 20:08:21 2006] [notice] Parent: Child process exited successfully.
[Fri May 12 20:08:29 2006] [notice] Apache/2.0.55 (Win32) PHP/5.1.4 configured -- resuming normal operations
[Fri May 12 20:08:29 2006] [notice] Server built: Oct 9 2005 19:16:56
[Fri May 12 20:08:29 2006] [notice] Parent: Created child process 5544
[Fri May 12 20:08:29 2006] [notice] Child 5544: Child process is running
[Fri May 12 20:08:29 2006] [notice] Child 5544: Acquired the start mutex.
[Fri May 12 20:08:29 2006] [notice] Child 5544: Starting 250 worker threads.
[Sat May 13 18:28:30 2006] [notice] Parent: Received shutdown signal -- Shutting down the server.
[Sat May 13 18:28:30 2006] [notice] Child 5544: Exit event signaled. Child process is ending.
[Sat May 13 18:28:31 2006] [notice] Child 5544: Released the start mutex
[Sat May 13 18:28:35 2006] [notice] Child 5544: Waiting for 250 worker threads to exit.
[Sat May 13 18:28:35 2006] [notice] Child 5544: All worker threads have exited.
[Sat May 13 18:28:35 2006] [notice] Child 5544: Child process is exiting
[Sat May 13 18:28:36 2006] [notice] Parent: Child process exited successfully.
[Sat May 13 18:29:41 2006] [notice] Apache/2.0.55 (Win32) PHP/5.1.4 configured -- resuming normal operations
[Sat May 13 18:29:41 2006] [notice] Server built: Oct 9 2005 19:16:56
[Sat May 13 18:29:41 2006] [notice] Parent: Created child process 4972
[Sat May 13 18:29:41 2006] [notice] Child 4972: Child process is running
[Sat May 13 18:29:41 2006] [notice] Child 4972: Acquired the start mutex.
[Sat May 13 18:29:41 2006] [notice] Child 4972: Starting 250 worker threads.
Posté : 13 mai 2006, 18:37
par Cyrano
Je ne vois rien d'anormal, j'ai comparé avec le mien, on a la même configuration et les lignes sont strictement les mêmes, mais chez moi ça fonctionne.
Donc le problème est ailleurs

Posté : 14 mai 2006, 19:51
par Invité
Pourtant EasyPHP marche parfaitement. Peut-être qu'EasyPHP empêche Wamp de fonctionner correctement ?
Posté : 14 mai 2006, 19:56
par Cyrano
Posté : 14 mai 2006, 22:59
par Truc
Certainement les "short open tags" qui doivent être à "OFF"
Il faut donc que tu utilises soit
<?php à la place de <?
soit éditer le fichier php.ini retrouver la ligne short_open_tags et mettre à "ON"
Posté : 14 mai 2006, 23:04
par Cyrano
Je songe à quelque chose de plus grave : deux installations = 2 serveurs Apache, 2 serveurs MySQL et deux interpréteurs PHP : S'il n'y a pas de conflits avec ça, c'est que c'est un ordinateur nouvelle génération, modèle 2025 en 128Bits

Posté : 14 mai 2006, 23:18
par Truc
Clair que la machine doit se demander quoi si les deux sont lancés en même temps mais je dis ça parce que j'ai eu le tour
Et on ne commence pas forcément par chercher par là

Posté : 19 mai 2006, 13:25
par delcedo galaxialord
Mais non c'est juste le problème classique du <? qui est plus interprété avec les dernières versions de WAMP. <? peut être du xml, donc maintenant par défaut l'exécution de code php interprété par WAMP est uniquement <?php.
Télécharge notepad++, ouvre tous tes documents php, remplace tous les <?php par <?, et fait ensuite l'opération inverse, et ton problème sera corrigé
Ciao !
Posté : 19 mai 2006, 13:58
par Truc
oui oui la remarque a été faites
Certainement les "short open tags" qui doivent être à "OFF"
mais plus de nouvelles du résultat
