Apache 2 et php 5

Questions sur le développement PHP.

Modérateur : Modérateurs

Neato
Nouveau membre
Messages : 5
Inscription : lun. 23 juil. 2007, 18:30

Apache 2 et php 5

Messagepar Neato » lun. 23 juil. 2007, 18:43

Bonjour,

Voila je suis entrain d'installer un serveur Apache 2 en suivant les instructions de ce turorial et je rencontre un problème en arrivant à la partie "Installation de PHP 5.1.4" plus précisément :

Éditez de nouveau le fichier c:\www\Apache2\conf\httpd.conf.

Recherchez la série de lignes commençant par #LoadModule et ajoutez à la suite LoadModule php5_module "c:/www/php5/php5apache2.dll".

Cette ligne sert à charger en mémoire le module de PHP pour Apache. # indique qu'il s'agit d'un commentaire.

Ajoutez à la fin du fichier AddType application/x-httpd-php .php .inc. Cette ligne sert à spécifier quelles sont les extensions qui seront interprétées par PHP, vous pouvez en ajoutez autant que vous le voulez.

Ajoutez à la fin du fichier PHPIniDir "c:/www/php5".


Dès que j'effectue une de c'est modification le serveur Apache ne se relance plus et dit :

Image

Merci d'avance pour vos réponses, qui je l'espère m'aiderons ^^.

Evolution
Conseiller
Conseiller
Messages : 3032
Inscription : lun. 05 janv. 2004, 18:56
Localisation : Lyon

Messagepar Evolution » lun. 23 juil. 2007, 19:43

Quelle version exacte d'Apache ? PHP ?
Que disent les logs ?

Neato
Nouveau membre
Messages : 5
Inscription : lun. 23 juil. 2007, 18:30

Messagepar Neato » lun. 23 juil. 2007, 20:56

Apache 2.2.4
PHP 5.2.3

eu les logs :
- access.log

0.0.0.0 - - [14/Jul/2007:16:17:59 +0200] "OPTIONS / HTTP/1.1" 200 -
0.0.0.0 - - [14/Jul/2007:16:17:59 +0200] "PROPFIND /c HTTP/1.1" 405 227
0.0.0.0 - - [14/Jul/2007:16:17:59 +0200] "PROPFIND /c HTTP/1.1" 405 227
0.0.0.0 - - [14/Jul/2007:16:19:52 +0200] "OPTIONS / HTTP/1.1" 200 -
0.0.0.0 - - [14/Jul/2007:16:19:52 +0200] "PROPFIND /_vti_pvt HTTP/1.1" 405 234
0.0.0.0 - - [14/Jul/2007:16:19:52 +0200] "PROPFIND /_vti_pvt HTTP/1.1" 405 234
0.0.0.0 - - [14/Jul/2007:17:14:51 +0200] "GET / HTTP/1.1" 200 205
0.0.0.0 - - [14/Jul/2007:17:15:10 +0200] "GET /test.html HTTP/1.1" 200 180
0.0.0.0 - - [14/Jul/2007:18:23:12 +0200] "GET /essai.php?nom=jacky HTTP/1.1" 200 139
0.0.0.0 - - [14/Jul/2007:18:23:39 +0200] "GET /essai.php?nom=jacky HTTP/1.1" 304 -
0.0.0.0 - - [14/Jul/2007:18:27:55 +0200] "GET /essai.php?nom=jacky HTTP/1.1" 200 130
0.0.0.0 - - [14/Jul/2007:18:28:17 +0200] "GET /essai.php?nom=jacky HTTP/1.1" 304 -
0.0.0.0 - - [14/Jul/2007:18:28:19 +0200] "GET /essai.php?nom=jacky HTTP/1.1" 304 -
0.0.0.0 - - [16/Jul/2007:22:21:01 +0200] "GET /test.html HTTP/1.1" 304 -


- error.log

[Sat Jul 14 15:22:16 2007] [notice] Apache/2.2.4 (Win32) configured -- resuming normal operations
[Sat Jul 14 15:22:16 2007] [notice] Server built: Jan 9 2007 23:17:20
[Sat Jul 14 15:22:16 2007] [notice] Parent: Created child process 940
[Sat Jul 14 15:22:20 2007] [notice] Child 940: Child process is running
[Sat Jul 14 15:22:20 2007] [notice] Child 940: Acquired the start mutex.
[Sat Jul 14 15:22:20 2007] [notice] Child 940: Starting 250 worker threads.
[Sat Jul 14 15:22:23 2007] [notice] Child 940: Starting thread to listen on port 80.
[Sat Jul 14 17:13:46 2007] [notice] Parent: Received restart signal -- Restarting the server.
[Sat Jul 14 17:13:46 2007] [notice] Child 940: Exit event signaled. Child process is ending.
[Sat Jul 14 17:13:47 2007] [notice] Child 940: Released the start mutex
[Sat Jul 14 17:13:49 2007] [notice] Apache/2.2.4 (Win32) configured -- resuming normal operations
[Sat Jul 14 17:13:49 2007] [notice] Server built: Jan 9 2007 23:17:20
[Sat Jul 14 17:13:49 2007] [notice] Parent: Created child process 880
[Sat Jul 14 17:13:55 2007] [notice] Child 880: Child process is running
[Sat Jul 14 17:13:55 2007] [notice] Child 880: Acquired the start mutex.
[Sat Jul 14 17:13:55 2007] [notice] Child 880: Starting 250 worker threads.
[Sat Jul 14 17:13:56 2007] [notice] Child 940: Waiting for 250 worker threads to exit.
[Sat Jul 14 17:13:58 2007] [notice] Child 940: All worker threads have exited.
[Sat Jul 14 17:13:58 2007] [notice] Child 940: Child process is exiting
[Sat Jul 14 17:13:59 2007] [notice] Child 880: Starting thread to listen on port 80.
[Sat Jul 14 17:19:02 2007] [notice] Parent: Received shutdown signal -- Shutting down the server.
[Sat Jul 14 17:19:02 2007] [notice] Child 880: Exit event signaled. Child process is ending.
[Sat Jul 14 17:19:03 2007] [notice] Child 880: Released the start mutex
[Sat Jul 14 17:19:05 2007] [notice] Child 880: Waiting for 250 worker threads to exit.
[Sat Jul 14 17:19:05 2007] [notice] Child 880: All worker threads have exited.
[Sat Jul 14 17:19:05 2007] [notice] Child 880: Child process is exiting
[Sat Jul 14 17:19:06 2007] [notice] Parent: Child process exited successfully.
[Sat Jul 14 18:21:23 2007] [notice] Apache/2.2.4 (Win32) configured -- resuming normal operations
[Sat Jul 14 18:21:23 2007] [notice] Server built: Jan 9 2007 23:17:20
[Sat Jul 14 18:21:23 2007] [notice] Parent: Created child process 1960
[Sat Jul 14 18:21:26 2007] [notice] Child 1960: Child process is running
[Sat Jul 14 18:21:26 2007] [notice] Child 1960: Acquired the start mutex.
[Sat Jul 14 18:21:26 2007] [notice] Child 1960: Starting 250 worker threads.
[Sat Jul 14 18:21:30 2007] [notice] Child 1960: Starting thread to listen on port 80.
[Sat Jul 14 18:24:53 2007] [notice] Parent: Received shutdown signal -- Shutting down the server.
[Sat Jul 14 18:24:53 2007] [notice] Child 1960: Exit event signaled. Child process is ending.
[Sat Jul 14 18:24:54 2007] [notice] Child 1960: Released the start mutex
[Sat Jul 14 18:24:56 2007] [notice] Child 1960: Waiting for 250 worker threads to exit.
[Sat Jul 14 18:24:58 2007] [notice] Child 1960: All worker threads have exited.
[Sat Jul 14 18:24:58 2007] [notice] Child 1960: Child process is exiting
[Sat Jul 14 18:24:58 2007] [notice] Parent: Child process exited successfully.
[Sat Jul 14 18:27:42 2007] [notice] Apache/2.2.4 (Win32) configured -- resuming normal operations
[Sat Jul 14 18:27:42 2007] [notice] Server built: Jan 9 2007 23:17:20
[Sat Jul 14 18:27:42 2007] [notice] Parent: Created child process 1908
[Sat Jul 14 18:27:45 2007] [notice] Child 1908: Child process is running
[Sat Jul 14 18:27:45 2007] [notice] Child 1908: Acquired the start mutex.
[Sat Jul 14 18:27:45 2007] [notice] Child 1908: Starting 250 worker threads.
[Sat Jul 14 18:27:54 2007] [notice] Child 1908: Starting thread to listen on port 80.
[Sat Jul 14 18:28:26 2007] [notice] Parent: Received shutdown signal -- Shutting down the server.
[Sat Jul 14 18:28:26 2007] [notice] Child 1908: Exit event signaled. Child process is ending.
[Sat Jul 14 18:28:27 2007] [notice] Child 1908: Released the start mutex
[Sat Jul 14 18:28:28 2007] [notice] Child 1908: Waiting for 250 worker threads to exit.
[Sat Jul 14 18:28:28 2007] [notice] Child 1908: All worker threads have exited.
[Sat Jul 14 18:28:28 2007] [notice] Child 1908: Child process is exiting
[Sat Jul 14 18:28:29 2007] [notice] Parent: Child process exited successfully.
[Mon Jul 16 22:20:25 2007] [notice] Apache/2.2.4 (Win32) configured -- resuming normal operations
[Mon Jul 16 22:20:25 2007] [notice] Server built: Jan 9 2007 23:17:20
[Mon Jul 16 22:20:26 2007] [notice] Parent: Created child process 892
[Mon Jul 16 22:20:28 2007] [notice] Child 892: Child process is running
[Mon Jul 16 22:20:28 2007] [notice] Child 892: Acquired the start mutex.
[Mon Jul 16 22:20:28 2007] [notice] Child 892: Starting 250 worker threads.
[Mon Jul 16 22:20:30 2007] [notice] Child 892: Starting thread to listen on port 80.
[Mon Jul 16 22:23:10 2007] [notice] Parent: Received shutdown signal -- Shutting down the server.
[Mon Jul 16 22:23:10 2007] [notice] Child 892: Exit event signaled. Child process is ending.
[Mon Jul 16 22:23:11 2007] [notice] Child 892: Released the start mutex
[Mon Jul 16 22:23:12 2007] [notice] Child 892: Waiting for 250 worker threads to exit.
[Mon Jul 16 22:23:12 2007] [notice] Child 892: All worker threads have exited.
[Mon Jul 16 22:23:12 2007] [notice] Child 892: Child process is exiting
[Mon Jul 16 22:23:13 2007] [notice] Parent: Child process exited successfully.
[Mon Jul 16 22:28:11 2007] [notice] Apache/2.2.4 (Win32) configured -- resuming normal operations
[Mon Jul 16 22:28:11 2007] [notice] Server built: Jan 9 2007 23:17:20
[Mon Jul 16 22:28:11 2007] [notice] Parent: Created child process 1884
[Mon Jul 16 22:28:12 2007] [notice] Child 1884: Child process is running
[Mon Jul 16 22:28:12 2007] [notice] Child 1884: Acquired the start mutex.
[Mon Jul 16 22:28:12 2007] [notice] Child 1884: Starting 250 worker threads.
[Mon Jul 16 22:28:14 2007] [notice] Child 1884: Starting thread to listen on port 80.
[Mon Jul 16 22:37:26 2007] [notice] Parent: Received restart signal -- Restarting the server.
[Mon Jul 16 22:37:26 2007] [notice] Child 1884: Exit event signaled. Child process is ending.
[Mon Jul 16 22:37:28 2007] [notice] Child 1884: Released the start mutex
[Mon Jul 16 22:37:31 2007] [notice] Child 1884: Waiting for 250 worker threads to exit.
[Mon Jul 16 22:37:31 2007] [notice] Child 1884: All worker threads have exited.
[Mon Jul 16 22:37:31 2007] [notice] Child 1884: Child process is exiting

Evolution
Conseiller
Conseiller
Messages : 3032
Inscription : lun. 05 janv. 2004, 18:56
Localisation : Lyon

Messagepar Evolution » lun. 23 juil. 2007, 21:49

Apache 2.2.x = vous ne chargez pas le bon module, il faut prendre php5apache2_2.dll ;)

Neato
Nouveau membre
Messages : 5
Inscription : lun. 23 juil. 2007, 18:30

Messagepar Neato » lun. 23 juil. 2007, 22:20

merci bcp sa marche ^^

cmoitony
Nouveau membre
Messages : 1
Inscription : jeu. 10 juil. 2008, 9:30

Re: Apache 2 et php 5

Messagepar cmoitony » jeu. 10 juil. 2008, 9:40

bonjour, j'ai le même problème que neato, aujourd'hui mais je ne sais pas comment le régler.
Je n'ai pas compris ce qu'il fallait modifier, ni ou se trouvait l'erreur.

Merci de votre aide.

Ceg
Nouveau membre
Messages : 3
Inscription : mer. 10 sept. 2008, 17:35

Re: Apache 2 et php 5

Messagepar Ceg » mer. 10 sept. 2008, 17:52

Avec Windows xp il suffit d'installer WAMP et tout fonctionne (php5 mysql) sur le serveur apache.

J'ai une question comment savoir si les serveurs http de "voila" et d"orange" sont des serveurs apache et si ils en sont pourquoi dans mon site perso : "site.voila.fr/isellmyhouse" : ils ne me traitent pas ma page écrite en langage PHP ?????????????????????????

merci d'avance

joseph


Revenir vers « PHP »

Qui est en ligne ?

Utilisateurs parcourant ce forum : Aucun utilisateur inscrit et 1 invité