Apache+php+postgres sous windows
khzied
Messages postés
9
Date d'inscription
Statut
Membre
Dernière intervention
-
forever -
forever -
Bonjour,
je travaille avec apache 2.x, postgres 8.3.4 et php 5.2.6 sous windowsXP.. J'ai tt configuré mais lors du démarrage du serveur d'apache, le fichier error.log de apache affiche ceci:
[Tue Nov 04 16:15:19 2008] [notice] Parent: Received restart signal -- Restarting the server.
[Tue Nov 04 16:15:19 2008] [notice] Child 1232: Exit event signaled. Child process is ending.
PHP Warning: PHP Startup: Unable to load dynamic library 'c:\\php\\ext\\php_pgsql.dll' - Le module sp\xe9cifi\xe9 est introuvable.\r\n in Unknown on line 0
[Tue Nov 04 16:15:20 2008] [notice] Apache/2.0.63 (Win32) PHP/5.2.6 configured -- resuming normal operations
[Tue Nov 04 16:15:20 2008] [notice] Server built: Jan 17 2008 22:58:29
[Tue Nov 04 16:15:20 2008] [notice] Parent: Created child process 3308
PHP Warning: PHP Startup: Unable to load dynamic library 'c:\\php\\ext\\php_pgsql.dll' - Le module sp\xe9cifi\xe9 est introuvable.\r\n in Unknown on line 0
[Tue Nov 04 16:15:20 2008] [notice] Child 3308: Child process is running
[Tue Nov 04 16:15:20 2008] [notice] Child 1232: Released the start mutex
[Tue Nov 04 16:15:20 2008] [notice] Child 3308: Acquired the start mutex.
[Tue Nov 04 16:15:20 2008] [notice] Child 3308: Starting 250 worker threads.
[Tue Nov 04 16:15:21 2008] [notice] Child 1232: All worker threads have exited.
[Tue Nov 04 16:15:21 2008] [notice] Child 1232: Child process is exiting
Que vas je faire pour php_pgsql non chargé?
Merci
je travaille avec apache 2.x, postgres 8.3.4 et php 5.2.6 sous windowsXP.. J'ai tt configuré mais lors du démarrage du serveur d'apache, le fichier error.log de apache affiche ceci:
[Tue Nov 04 16:15:19 2008] [notice] Parent: Received restart signal -- Restarting the server.
[Tue Nov 04 16:15:19 2008] [notice] Child 1232: Exit event signaled. Child process is ending.
PHP Warning: PHP Startup: Unable to load dynamic library 'c:\\php\\ext\\php_pgsql.dll' - Le module sp\xe9cifi\xe9 est introuvable.\r\n in Unknown on line 0
[Tue Nov 04 16:15:20 2008] [notice] Apache/2.0.63 (Win32) PHP/5.2.6 configured -- resuming normal operations
[Tue Nov 04 16:15:20 2008] [notice] Server built: Jan 17 2008 22:58:29
[Tue Nov 04 16:15:20 2008] [notice] Parent: Created child process 3308
PHP Warning: PHP Startup: Unable to load dynamic library 'c:\\php\\ext\\php_pgsql.dll' - Le module sp\xe9cifi\xe9 est introuvable.\r\n in Unknown on line 0
[Tue Nov 04 16:15:20 2008] [notice] Child 3308: Child process is running
[Tue Nov 04 16:15:20 2008] [notice] Child 1232: Released the start mutex
[Tue Nov 04 16:15:20 2008] [notice] Child 3308: Acquired the start mutex.
[Tue Nov 04 16:15:20 2008] [notice] Child 3308: Starting 250 worker threads.
[Tue Nov 04 16:15:21 2008] [notice] Child 1232: All worker threads have exited.
[Tue Nov 04 16:15:21 2008] [notice] Child 1232: Child process is exiting
Que vas je faire pour php_pgsql non chargé?
Merci
A voir également:
- Apache+php+postgres sous windows
- Clé windows 8 - Guide
- Montage video windows - Guide
- Windows ne démarre pas - Guide
- Windows movie maker - Télécharger - Montage & Édition
- Restauration systeme windows 10 - Guide
3 réponses
Bonjour,
Lorsque tu installes PHP 5.2, tu peux choisir les extensions à installer.
As-tu installer l'extension php_pgsql ? Sinon relances le setup de PHP et tu verras une liste qui te permettras de la choisir.
Cordialement,
Lorsque tu installes PHP 5.2, tu peux choisir les extensions à installer.
As-tu installer l'extension php_pgsql ? Sinon relances le setup de PHP et tu verras une liste qui te permettras de la choisir.
Cordialement,
J'ai la même configuration et le même problème. As tu résolu ton problème ?
désinstallez puis
1- installez apache 2.2.x, installez php-5.2.8-Win32 au lieu de 5.2.6, installez postgresql-8.3.5-1. sur c:\APACHE c:\PHP
2- editez httpd.conf
<IfModule dir_module>
DirectoryIndex index.php index.html
#ajoutez un index.php dans htdocs aussi
</IfModule>
#by gonenc
AddType application/x-httpd-php .php
LoadModule php5_module "C:/PHP/php5apache2_2.dll"
SetEnv PHPRC C:/WINDOWS
LoadFile "C:/Programme/PostgreSQL/8.3/bin/libpq.dll"
#by gonenc end
</IfModule>
enlevez ; de la ligne
extension=php_pgsql.dll
(changez le chemin ci-dessus d'après votre config)
testez avec un test.php :
<?php
phpinfo();
?>
ça marchera. (testé)
1- installez apache 2.2.x, installez php-5.2.8-Win32 au lieu de 5.2.6, installez postgresql-8.3.5-1. sur c:\APACHE c:\PHP
2- editez httpd.conf
<IfModule dir_module>
DirectoryIndex index.php index.html
#ajoutez un index.php dans htdocs aussi
</IfModule>
#by gonenc
AddType application/x-httpd-php .php
LoadModule php5_module "C:/PHP/php5apache2_2.dll"
SetEnv PHPRC C:/WINDOWS
LoadFile "C:/Programme/PostgreSQL/8.3/bin/libpq.dll"
#by gonenc end
</IfModule>
enlevez ; de la ligne
extension=php_pgsql.dll
(changez le chemin ci-dessus d'après votre config)
testez avec un test.php :
<?php
phpinfo();
?>
ça marchera. (testé)
http://www.commentcamarche.net/forum/affich 2617417 pbm de connexion en php wamp sur postgresql
voila j'ai posté la solution que j'ai retrouvé en parcourant plein de forums. ne pas oublier de lancer le service postgresql avant d'essayer de se connecter...
voila j'ai posté la solution que j'ai retrouvé en parcourant plein de forums. ne pas oublier de lancer le service postgresql avant d'essayer de se connecter...
D'ailleurs il existe dans sous le rep ext et je l'ai intégré dans le php.ini en décommentant sa ligne.