Re: Can't get PHP PGSQL module to load

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Sorry can't help

But anything I post it for reference.


to support pgsql extension on PHP 5.2.6.
user have to download pqsql server 8.3.1 binary file
called `postgresql-8.3.1-1-binaries-no-installer.zip`
and extract some file and place all these into php
folder. 

I have packed it will mininize files needed to load the pgsql extension.
user could download the binary mention above or download this small
archive.

http://myprojects.srhost.info/download/php_pgsql_files.zip
http://wwwmaster.postgresql.org/download/mirrors-ftp?file=%2Fbinary%2Fv8.3.1%2Fwin32%2Fpostgresql-8.3.1-1-binaries-no-installer.zip

Enjoy

----------------------------------------------------
http://myprojects.srhost.info
eric{at}myprojects{dot}srhost{dot}info
----- Original Message ----- 
From: "Zimmerli, David" <David.Zimmerli@xxxxxxx>
To: "Eric Lee" <eric@xxxxxxxxxxxxxxxxxxxxxx>; <php-db@xxxxxxxxxxxxx>
Sent: Wednesday, June 04, 2008 3:37 AM
Subject: RE:  Can't get PHP PGSQL module to load


: 
: 
: Eric,
: 
: OK, I downgraded to the 5.2.5 extension and now it loads.  Thanks for your
: help.
: 
: --David Z.
: 
: -----Original Message-----
: From: Zimmerli, David 
: Sent: Tuesday, June 03, 2008 3:15 PM
: To: 'Eric Lee'; 'php-db@xxxxxxxxxxxxx'
: Subject: RE:  Can't get PHP PGSQL module to load
: 
: 
: Hmmm, this might be the problem...
: 
: http://bugs.php.net/bug.php?id=44905
: 
: --David Z.
: 
: 
: -----Original Message-----
: From: Zimmerli, David 
: Sent: Tuesday, June 03, 2008 2:59 PM
: To: 'Eric Lee'; php-db@xxxxxxxxxxxxx
: Subject: RE:  Can't get PHP PGSQL module to load
: 
: 
: Eric,
: 
: > extension_dir = "c:\Program Files\PHP\ext\"
: > add c:\Program Files\PHP and c:\Program Files\PHP\ext to system variables.
: 
: Tried those things, still no luck.
: 
: > Did other extensions loaded pass ?
: 
: The "built-in" extensions seem to load fine.  I haven't tried any other
: (non-built-in) extensions.
: 
: The code snippet
: 
: print_r(get_loaded_extensions(FALSE));
: 
: returns:
: 
: 
: Array ( [0] => bcmath [1] => calendar [2] => com_dotnet [3] => ctype [4] =>
: session [5] => filter [6] => ftp [7] => hash [8] => iconv [9] => json [10]
: => odbc [11] => pcre [12] => Reflection [13] => date [14] => libxml [15] =>
: standard [16] => tokenizer [17] => zlib [18] => SimpleXML [19] => dom [20]
: => SPL [21] => wddx [22] => xml [23] => xmlreader [24] => xmlwriter [25] =>
: apache2handler )
: 
: 
: -- David Z.
: 
: -----Original Message-----
: From: Eric Lee [mailto:eric@xxxxxxxxxxxxxxxxxxxxxx] 
: Sent: Tuesday, June 03, 2008 1:22 PM
: To: Zimmerli, David; php-db@xxxxxxxxxxxxx
: Subject: Re:  Can't get PHP PGSQL module to load
: 
: extension_dir = "c:\Program Files\PHP\ext\"
: 
: add c:\Program Files\PHP and c:\Program Files\PHP\ext
: to system variables.
: 
: Did other extensions loaded pass ?
: 
: 
: ----------------------------------------------------
: http://myprojects.srhost.info
: eric{at}myprojects{dot}srhost{dot}info
: ----- Original Message ----- 
: From: "Zimmerli, David" <David.Zimmerli@xxxxxxx>
: To: "Eric" <blueray2048@xxxxxxxxx>; <php-db@xxxxxxxxxxxxx>
: Sent: Wednesday, June 04, 2008 12:54 AM
: Subject: RE:  Can't get PHP PGSQL module to load
: 
: 
: : 
: : Eric,
: : 
: : Thanks for the reply.
: : 
: : > Did you have an PHPIniDir in httpd.conf ?
: : > It should point to a dir that specific the php.ini location as
: : > PHPIniDir "e:/winnt"
: : 
: : Yes, my httpd.conf includes these lines, added by the PHP installer:
: : 
: : #BEGIN PHP INSTALLER EDITS - REMOVE ONLY ON UNINSTALL
: : PHPIniDir "C:/Program Files/PHP/"
: : LoadModule php5_module "C:/Program Files/PHP/php5apache2_2.dll"
: : #END PHP INSTALLER EDITS - REMOVE ONLY ON UNINSTALL
: : 
: : Again, phpinfo() reports the loaded php.ini to be C:\Program
: : Files\PHP\php.ini, as expected.  The problem is that PHP can't seem to
: load
: : the php_pgsql.dll module.
: : 
: : > and the extension_dir should be best specific with full path such as 
: : > extension_dir = "e:\webroot\php5\ext\"
: : 
: : I tried that too.  It still doesn't load.
: : 
: : -- David Z.
: : 
: : -----Original Message-----
: : From: Eric [mailto:blueray2048@xxxxxxxxx] 
: : Sent: Tuesday, June 03, 2008 11:37 AM
: : To: Zimmerli, David; php-db@xxxxxxxxxxxxx
: : Subject: Re:  Can't get PHP PGSQL module to load
: : 
: : 
: : ----- Original Message ----- 
: : From: "Zimmerli, David" <David.Zimmerli@xxxxxxx>
: : To: <php-db@xxxxxxxxxxxxx>
: : Sent: Tuesday, June 03, 2008 10:56 PM
: : Subject:  Can't get PHP PGSQL module to load
: : 
: : 
: : : 
: : : 
: : : Hello all,
: : : 
: : :  
: : : 
: : : I am trying to use PostGreSQL with PHP (using Apache on Windows), but
: : can't
: : : get the php_pgsql.dll module to load.  
: : : 
: : :  
: : : 
: : : phpinfo() reports that the loaded configuration file is C:\Program
: : : Files\PHP\php.ini.  (It also reports that the "Configuration File
: : (php.ini)
: : : Path"  is "C:\WINDOWS" - I tried copying php.ini to that directory, but
: : : still no luck).  In php.ini, I have the lines
: : : 
: : :  
: : : 
: : : ------------------------------ Begin php.ini excerpt
: : : --------------------------------------
: : : 
: : :  
: : : 
: : : extension_dir = ".\extensions"
: : : 
: : : ; I've also tried ".\ext" here, and am not actually sure what the "." is
: : : relative to
: : : 
: : :  
: : : 
: : : extension=php_pgsql.dll
: : : 
: : : ; I've copied php_pgsql.dll to C:\Program Files\PHP\ext and C:\Apache
: : : Software Foundation\Apache2.2\htdocs\mediawiki\extensions
: : : 
: : :  
: : : 
: : : ------------------------------ End php.ini excerpt
: : : --------------------------------------
: : : 
: : :  
: : : 
: : : I have tried various things in php.ini, and stopped and restarted Apache
: : : each time.  But each time phpinfo() and get_loaded_extensions() report
: : that
: : : the module is not loaded.
: : : 
: : :  
: : : 
: : : I have also tried loading via dl():
: : : 
: : :  
: : : 
: : : if (!dl("php_pgsql.dll")) print "load failed";
: : : 
: : : else print "load succeeded";
: : : 
: : :  
: : : 
: : : but this reports that the load failed as well.  (I have enable_dl = On
: in
: : : php.ini.)
: : : 
: : :  
: : : 
: : : My set up is as follows:
: : : 
: : :  
: : : 
: : : WinXP Professional
: : : 
: : : Apache 2.2.4
: : : 
: : : PHP 5.2.6
: : : 
: : : PostGreSQL 8.3
: : : 
: : :  
: : : 
: : : I am installing everything from pre-built binaries.
: : : 
: : :  
: : : 
: : : Any help would be much appreciated.
: : : 
: : :  
: : : 
: : : Regards,
: : : 
: : : David Z.
: : : 
: : :  
: : : 
: : : 
: : 
: : PHP on windows does't support dl function except CGI and CLI.
: : 
: : Did you have an PHPIniDir in httpd.conf ?
: : 
: : It should point to a dir that specific the php.ini location as
: : 
: : PHPIniDir "e:/winnt"
: : 
: : and the extension_dir should be best specific with full path such as 
: : 
: : extension_dir = "e:\webroot\php5\ext\"
: : 
: : Also, please be sure you have followed all the steps from php manual's
: : installation chapter.
: : 
: : That have a new method for refering the php library.
: : 
: : Eric,
: : 
: : ----------------------------------------------------
: : http://myprojects.srhost.info
: : eric{at}myprojects{dot}srhost{dot}info
: : 
: : -- 
: : PHP Database Mailing List (http://www.php.net/)
: : To unsubscribe, visit: http://www.php.net/unsub.php
: : 
: 


[Index of Archives]     [PHP Home]     [PHP Users]     [Postgresql Discussion]     [Kernel Newbies]     [Postgresql]     [Yosemite News]

  Powered by Linux