Colegas, estou na luta para rodar o software na minha máquina e estou enfrentando o proclema do pgsql.dll
Normalmente trabalho com o wamp. Considerando que alguns colegas disseram em post anteriores que o mesmo não vem com a extensão, optei por instalar o easyphp. Ocorre que em ambos servidores o erro que apareçe após inserir usuario e senha são as mesmas
No easy php
Fatal error: Call to undefined function pg_connect() in C:\Program Files\EasyPHP-5.3.9\www\ieducar\intranet\include\clsBancoPgSql.inc.php on line 158
No Wamp
Fatal error: Call to undefined function pg_connect() in D:\wamp\www\ieducar\intranet\include\clsBancoPgSql.inc.php on line 370
Ou seja, mudou a linha mas o problema é o mesmo.Baixei o arquivo pgsql.dll e instalei manualmente, mas o problema persiste. Navequei por várias páginas do site e verifiquei que várias pessoas tiveram o mesmo problema. mas eu não estou conseguindo resolver. alguém se habilita?
Autor: André Santana

1919 comentários
Segui suas instruções usando o wamp, ok?
estou enviando a página que mostrou o erro, o resultado do php.info e o php.ini. Valeu pela ajuda. PHP Version 5.3.5 System Windows NT ANDRE 6.1 build 7600 (Unknow Windows version Ultimate Edition) i586
Build Date Jan 6 2011 17:50:45
Compiler MSVC6 (Visual C++ 6.0)
Architecture x86
Configure Command cscript /nologo configure.js "--enable-snapshot-build" "--disable-isapi" "--enable-debug-pack" "--disable-isapi" "--without-mssql" "--without-pdo-mssql" "--without-pi3web" "--with-pdo-oci=D:\php-sdk\oracle\instantclient10\sdk,shared" "--with-oci8=D:\php-sdk\oracle\instantclient10\sdk,shared" "--with-oci8-11g=D:\php-sdk\oracle\instantclient11\sdk,shared" "--enable-object-out-dir=../obj/" "--enable-com-dotnet" "--with-mcrypt=static"
Server API Apache 2.0 Handler
Virtual Directory Support enabled
Configuration File (php.ini) Path C:\Windows
Loaded Configuration File C:\wamp\bin\apache\Apache2.2.17\bin\php.ini
Scan this dir for additional .ini files (none)
Additional .ini files parsed (none)
PHP API 20090626
PHP Extension 20090626
Zend Extension 220090626
Zend Extension Build API220090626,TS,VC6
PHP Extension Build API20090626,TS,VC6
Debug Build no
Thread Safety enabled
Zend Memory Manager enabled
Zend Multibyte Support disabled
IPv6 Support enabled
Registered PHP Streams php, file, glob, data, http, ftp, zip, compress.zlib, phar
Registered Stream Socket Transports tcp, udp
Registered Stream Filters convert.iconv.*, mcrypt.*, mdecrypt.*, string.rot13, string.toupper, string.tolower, string.strip_tags, convert.*, consumed, dechunk, zlib.*
;extension=php_gettext.dll
;extension=php_gmp.dll
;extension=php_intl.dll
;extension=php_imap.dll
;extension=php_interbase.dll
;extension=php_ldap.dll
extension=php_mbstring.dll
;extension=php_ming.dll
;extension=php_mssql.dll
extension=php_mysql.dll
extension=php_mysqli.dll
;extension=php_oci8.dll
;extension=php_oci8_11g.dll
;extension=php_openssl.dll
;extension=php_pdo_firebird.dll
;extension=php_pdo_mssql.dll
extension=php_pdo_mysql.dll
;extension=php_pdo_oci.dll
;extension=php_pdo_odbc.dll
extension=php_pdo_pgsql.dll
extension=php_pdo_sqlite.dll
extension=php_pgsql.dll
;extension=php_phar.dll mas continua apareçendo o erro = Fatal error: Call to undefined function pg_connect() in C:\wamp\www\ieducar\intranet\include\clsBancoPgSql.inc.php on line 158
Altere o caminho de acima para o directório de instalação do PostgreSQL. Após isso, reinicie o apache e veja se já funciona. Se após estes passos ainda não funcionar, copie a dll (php_pgsql.dll) para o diretório do Windows: C:\Windows e reinicie o apache novamente. Se ainda assim não funcionar, abra o log do apache "error.log" e cole aqui os erros ao iniciar o apache (se tiver algum).
[Wed Jun 20 19:11:19 2012] [notice] Server built: Sep 10 2011 11:34:11
[Wed Jun 20 19:11:19 2012] [notice] Parent: Created child process 2264
[Wed Jun 20 19:11:20 2012] [notice] Child 2264: Child process is running
[Wed Jun 20 19:11:20 2012] [notice] Child 2264: Acquired the start mutex.
[Wed Jun 20 19:11:20 2012] [notice] Child 2264: Starting 64 worker threads.
[Wed Jun 20 19:11:20 2012] [notice] Child 2264: Starting thread to listen on port 8887.
[Wed Jun 20 19:11:41 2012] [notice] Parent: Received shutdown signal -- Shutting down the server.
[Wed Jun 20 19:11:41 2012] [notice] Child 2264: Exit event signaled. Child process is ending.
[Wed Jun 20 19:11:42 2012] [notice] Child 2264: Released the start mutex
[Wed Jun 20 19:11:43 2012] [notice] Child 2264: All worker threads have exited.
[Wed Jun 20 19:11:43 2012] [notice] Child 2264: Child process is exiting
[Wed Jun 20 19:11:43 2012] [notice] Parent: Child process exited successfully.
[Wed Jun 20 19:18:51 2012] [error] (OS 11001)Este host não é conhecido. : Could not resolve host name *.80 -- ignoring!
[Wed Jun 20 19:18:51 2012] [warn] NameVirtualHost *:80 has no VirtualHosts
[Wed Jun 20 19:18:51 2012] [notice] Apache/2.2.21 (Win32) PHP/5.3.9 configured -- resuming normal operations
[Wed Jun 20 19:18:51 2012] [notice] Server built: Sep 10 2011 11:34:11
[Wed Jun 20 19:18:51 2012] [notice] Parent: Created child process 2464
[Wed Jun 20 19:18:51 2012] [error] (OS 11001)Este host não é conhecido. : Could not resolve host name *.80 -- ignoring!
[Wed Jun 20 19:18:51 2012] [warn] NameVirtualHost *:80 has no VirtualHosts
[Wed Jun 20 19:18:52 2012] [error] (OS 11001)Este host não é conhecido. : Could not resolve host name *.80 -- ignoring!
[Wed Jun 20 19:18:52 2012] [warn] NameVirtualHost *:80 has no VirtualHosts
[Wed Jun 20 19:18:52 2012] [notice] Child 2464: Child process is running
[Wed Jun 20 19:18:52 2012] [notice] Child 2464: Acquired the start mutex.
[Wed Jun 20 19:18:52 2012] [notice] Child 2464: Starting 64 worker threads.
[Wed Jun 20 19:18:52 2012] [notice] Child 2464: Starting thread to listen on port 8887.
[Wed Jun 20 19:27:26 2012] [error] (OS 11001)Este host não é conhecido. : Could not resolve host name *.80 -- ignoring!
[Wed Jun 20 19:27:27 2012] [warn] NameVirtualHost *:80 has no VirtualHosts
[Wed Jun 20 19:27:27 2012] [warn] pid file C:/Arquivos de programas/EasyPHP-5.3.9/apache/logs/httpd.pid overwritten -- Unclean shutdown of previous Apache run?
[Wed Jun 20 19:27:27 2012] [notice] Apache/2.2.21 (Win32) PHP/5.3.9 configured -- resuming normal operations
[Wed Jun 20 19:27:27 2012] [notice] Server built: Sep 10 2011 11:34:11
[Wed Jun 20 19:27:27 2012] [notice] Parent: Created child process 1544
[Wed Jun 20 19:27:27 2012] [error] (OS 11001)Este host não é conhecido. : Could not resolve host name *.80 -- ignoring!
[Wed Jun 20 19:27:27 2012] [warn] NameVirtualHost *:80 has no VirtualHosts
[Wed Jun 20 19:27:27 2012] [error] (OS 11001)Este host não é conhecido. : Could not resolve host name *.80 -- ignoring!
[Wed Jun 20 19:27:27 2012] [warn] NameVirtualHost *:80 has no VirtualHosts
[Wed Jun 20 19:27:27 2012] [notice] Child 1544: Child process is running
[Wed Jun 20 19:27:27 2012] [notice] Child 1544: Acquired the start mutex.
[Wed Jun 20 19:27:27 2012] [notice] Child 1544: Starting 64 worker threads.
[Wed Jun 20 19:27:27 2012] [notice] Child 1544: Starting thread to listen on port 8887.
[Wed Jun 20 19:33:46 2012] [error] [client 127.0.0.1] File does not exist: C:/Arquivos de programas/EasyPHP-5.3.9/www/favicon.ico
[Wed Jun 20 19:33:53 2012] [error] [client 127.0.0.1] PHP Fatal error: Call to undefined function pg_connect() in C:\\Arquivos de programas\\EasyPHP-5.3.9\\www\\intranet\\include\\clsBancoPgSql.inc.php on line 158, referer: 127.0.0.1:8887/intranet/index.php
[Thu Jun 21 09:43:51 2012] [error] (OS 11001)Este host não é conhecido. : Could not resolve host name *.80 -- ignoring!
[Thu Jun 21 09:43:51 2012] [warn] NameVirtualHost *:80 has no VirtualHosts
[Thu Jun 21 09:43:51 2012] [notice] Apache/2.2.3 (Win32) PHP/5.2.0 configured -- resuming normal operations
[Thu Jun 21 09:43:51 2012] [notice] Server built: Jul 27 2006 16:49:49
[Thu Jun 21 09:43:51 2012] [notice] Parent: Created child process 3224
[Thu Jun 21 09:43:51 2012] [error] (OS 11001)Este host não é conhecido. : Could not resolve host name *.80 -- ignoring!
[Thu Jun 21 09:43:51 2012] [warn] NameVirtualHost *:80 has no VirtualHosts
[Thu Jun 21 09:43:51 2012] [warn] NameVirtualHost *:80 has no VirtualHosts
[Thu Jun 21 09:43:51 2012] [notice] Child 3224: Child process is running
[Thu Jun 21 09:43:52 2012] [notice] Child 3224: Acquired the start mutex.
[Thu Jun 21 09:43:52 2012] [notice] Child 3224: Starting 250 worker threads.
[Thu Jun 21 09:43:52 2012] [notice] Child 3332: Released the start mutex
[Thu Jun 21 09:43:53 2012] [notice] Child 3332: Waiting for 250 worker threads to exit.
[Thu Jun 21 09:43:53 2012] [notice] Child 3332: All worker threads have exited.
[Thu Jun 21 09:43:53 2012] [notice] Child 3332: Child process is exiting
[Thu Jun 21 09:43:53 2012] [notice] Child 3224: Starting thread to listen on port 80.
[Thu Jun 21 09:44:03 2012] [error] [client 127.0.0.1] PHP Fatal error: Call to undefined function pg_connect() in C:\\Arquivos de programas\\EasyPHP 2.0b1\\www\\ieducar\\intranet\\include\\clsBancoPgSql.inc.php on line 158, referer: localhost/ieducar/intranet/index.php
[Thu Jun 21 09:43:51 2012] [error] (OS 11001)Este host não é conhecido. : Could not resolve host name *.80 -- ignoring!
[Thu Jun 21 09:43:51 2012] [warn] NameVirtualHost *:80 has no VirtualHosts
[Thu Jun 21 09:43:51 2012] [notice] Apache/2.2.3 (Win32) PHP/5.2.0 configured -- resuming normal operations
[Thu Jun 21 09:43:51 2012] [notice] Server built: Jul 27 2006 16:49:49
[Thu Jun 21 09:43:51 2012] [notice] Parent: Created child process 3224
[Thu Jun 21 09:43:51 2012] [error] (OS 11001)Este host não é conhecido. : Could not resolve host name *.80 -- ignoring!
[Thu Jun 21 09:43:51 2012] [warn] NameVirtualHost *:80 has no VirtualHosts
[Thu Jun 21 09:43:51 2012] [warn] NameVirtualHost *:80 has no VirtualHosts
[Thu Jun 21 09:43:51 2012] [notice] Child 3224: Child process is running
[Thu Jun 21 09:43:52 2012] [notice] Child 3224: Acquired the start mutex.
[Thu Jun 21 09:43:52 2012] [notice] Child 3224: Starting 250 worker threads.
[Thu Jun 21 09:43:52 2012] [notice] Child 3332: Released the start mutex
[Thu Jun 21 09:43:53 2012] [notice] Child 3332: Waiting for 250 worker threads to exit.
[Thu Jun 21 09:43:53 2012] [notice] Child 3332: All worker threads have exited.
[Thu Jun 21 09:43:53 2012] [notice] Child 3332: Child process is exiting
[Thu Jun 21 09:43:53 2012] [notice] Child 3224: Starting thread to listen on port 80.
[Thu Jun 21 09:44:03 2012] [error] [client 127.0.0.1] PHP Fatal error: Call to undefined function pg_connect() in C:\\Arquivos de programas\\EasyPHP 2.0b1\\www\\ieducar\\intranet\\include\\clsBancoPgSql.inc.php on line 158, referer: localhost/ieducar/intranet/index.php
[Thu Jun 21 09:53:50 2012] [notice] Parent: Received restart signal -- Restarting the server.
[Thu Jun 21 09:53:50 2012] [warn] NameVirtualHost *:80 has no VirtualHosts
rocess is ending.
[Thu Jun 21 09:53:50 2012] [notice] Apache/2.2.3 (Win32) PHP/5.2.0 configured -- resuming normal operations
[Thu Jun 21 09:53:50 2012] [notice] Server built: Jul 27 2006 16:49:49
[Thu Jun 21 09:53:50 2012] [notice] Parent: Created child process 3716
[Thu Jun 21 09:53:50 2012] [error] (OS 11001)Este host não é conhecido. : Could not resolve host name *.80 -- ignoring!
[Thu Jun 21 09:53:50 2012] [warn] NameVirtualHost *:80 has no VirtualHosts
[Thu Jun 21 09:53:50 2012] [warn] NameVirtualHost *:80 has no VirtualHosts
[Thu Jun 21 09:53:50 2012] [notice] Child 3716: Child process is running
[Thu Jun 21 09:53:51 2012] [notice] Child 3224: Released the start mutex
[Thu Jun 21 09:53:51 2012] [notice] Child 3716: Acquired the start mutex.
[Thu Jun 21 09:53:51 2012] [notice] Child 3716: Starting 250 worker threads.
[Thu Jun 21 09:53:51 2012] [notice] Child 3716: Starting thread to listen on port 80.
[Thu Jun 21 09:53:52 2012] [notice] Child 3224: Waiting for 250 worker threads to exit.
[Thu Jun 21 09:53:52 2012] [notice] Child 3224: All worker threads have exited.
[Thu Jun 21 09:53:52 2012] [notice] Child 3224: Child process is exiting
[Thu Jun 21 09:54:02 2012] [error] [client 127.0.0.1] PHP Fatal error: Call to undefined function pg_connect() in C:\\Arquivos de programas\\EasyPHP 2.0b1\\www\\ieducar\\intranet\\include\\clsBancoPgSql.inc.php on line 158, referer: localhost/ieducar/intranet/index.php
[Thu Jun 21 10:02:00 2012] [notice] Parent: Received shutdown signal -- Shutting down the server.
[Thu Jun 21 10:02:00 2012] [notice] Child 3716: Exit event signaled. Child process is ending.
[Thu Jun 21 10:02:01 2012] [notice] Child 3716: Released the start mutex
[Thu Jun 21 10:02:02 2012] [notice] Child 3716: Waiting for 250 worker threads to exit.
[Thu Jun 21 10:02:02 2012] [notice] Child 3716: All worker threads have exited.
[Thu Jun 21 10:02:02 2012] [notice] Child 3716: Child process is exiting
[Thu Jun 21 10:02:02 2012] [notice] Parent: Child process exited successfully.
[Fri Jun 22 09:13:21 2012] [warn] NameVirtualHost *:80 has no VirtualHosts
[Fri Jun 22 09:13:21 2012] [notice] Apache/2.2.3 (Win32) PHP/5.2.0 configured -- resuming normal operations
[Fri Jun 22 09:13:21 2012] [notice] Server built: Jul 27 2006 16:49:49
[Fri Jun 22 09:13:21 2012] [notice] Parent: Created child process 1872
[Fri Jun 22 09:13:21 2012] [error] (OS 11001)Este host não é conhecido. : Could not resolve host name *.80 -- ignoring!
[Fri Jun 22 09:13:21 2012] [warn] NameVirtualHost *:80 has no VirtualHosts
[Fri Jun 22 09:13:21 2012] [warn] NameVirtualHost *:80 has no VirtualHosts
[Fri Jun 22 09:13:21 2012] [notice] Child 1872: Child process is running
[Fri Jun 22 09:13:21 2012] [notice] Child 1872: Acquired the start mutex.
[Fri Jun 22 09:13:21 2012] [notice] Child 1872: Starting 250 worker threads.
[Fri Jun 22 09:13:21 2012] [notice] Child 1872: Starting thread to listen on port 80.
[Fri Jun 22 09:14:33 2012] [error] [client 127.0.0.1] File does not exist: C:/Arquivos de programas/EasyPHP 2.0b1/www/favicon.ico
[Fri Jun 22 09:14:41 2012] [error] [client 127.0.0.1] PHP Fatal error: Call to undefined function pg_connect() in C:\\Arquivos de programas\\EasyPHP 2.0b1\\www\\ieducar\\intranet\\include\\clsBancoPgSql.inc.php on line 158, referer: localhost/ieducar/intranet/index.php
Funcionou!!!!
O estranho é que segui os mesmos passos anteriormente. De qualquer forma, agradeço a ajuda e espero poder contar com a mesma por mais vezes.
Existe um tutorial que orienta baixar a versão 9.x0x do mesmo, mas como eu ainda não uso todos os recursos , resolvi não instalá-los .