Apache+php+postgres sous windows

khzied Messages postés 10 Statut Membre -  
 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

3 réponses

  1. sachawolf
     
    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,
    0
    1. khzied Messages postés 10 Statut Membre
       
      Oui, dans la phase d'installation j'ai inclu php_pgsql..
      D'ailleurs il existe dans sous le rep ext et je l'ai intégré dans le php.ini en décommentant sa ligne.
      0
  2. tiromain Messages postés 6 Statut Membre 2
     
    J'ai la même configuration et le même problème. As tu résolu ton problème ?
    0
    1. francois_gonenc Messages postés 3 Statut Membre
       
      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é)
      0
    2. forever
       
      slt kel demarch doit on suivre avec un serveur debian plutot que wamp
      0