Click here to get back home

PDO driver for PostgreSQL in WAMP Server

 HomeNewsGroups | Search

comp.lang.php - PHP programming language discussions 

get this group's latest topics as an RSS feed add this group's latest topics to your My MSN content add this group's latest topics to your My Yahoo content
Subject Author Date
PDO driver for PostgreSQL in WAMP Server Jivanmukta 06-08-2009
Posted by Jivanmukta on June 8, 2009, 12:30 am
Please log in for more thread options
I need to use PDO and PostgreSQL. I use WAMPSERVER Version 2.0, Apache
Version 2.2.11, PHP Version 5.2.9-2.
I uncommented (in php.ini) line
extension=php_pdo_pgsql.dll
I have such file in ext/.
extension=php_pdo.dll I had already enabled.
My phpinfo returns
PDO drivers mysql, sqlite
I mean it doesn't tell anything about pgsql.
(I rebooted my computer.)
Please help.

Posted by Jerry Stuckle on June 8, 2009, 5:32 am
Please log in for more thread options
Jivanmukta wrote:
show/hide quoted text

Do you have the Postgres client libraries installed and available to the
web server (i.e. in your PATH variable)? Did you enable the Postgres
extension (php_pgsql.dll)?

--
==================
Remove the "x" from my email address
Jerry Stuckle
JDS Computer Training Corp.
jstucklex@attglobal.net
==================

Posted by Jivanmukta on June 8, 2009, 7:28 am
Please log in for more thread options
show/hide quoted text

I don't have Postgres in my PATH because installer didn't add it. But
psql and pgAdmin work fine so I think I have libraries working.

show/hide quoted text

I have extension=3Dphp_pgsql.dll in my php.ini, but I don't see it in
phpinfo.

Posted by Jerry Stuckle on June 8, 2009, 7:37 am
Please log in for more thread options
Jivanmukta wrote:
show/hide quoted text

Just because pgAdmin works doesn't mean things are set up properly. If
the libraries are not accessible to the web server process, PHP can't
load them.

--
==================
Remove the "x" from my email address
Jerry Stuckle
JDS Computer Training Corp.
jstucklex@attglobal.net
==================

Posted by Jerry Stuckle on June 8, 2009, 4:08 pm
Please log in for more thread options
Jivanmukta wrote:
show/hide quoted text

One other thing - ensure the php.ini you changed is the one listed in
phpinfo(). You may have more than one.

--
==================
Remove the "x" from my email address
Jerry Stuckle
JDS Computer Training Corp.
jstucklex@attglobal.net
==================

Similar ThreadsPosted
driver PDO for PostgreSQL June 10, 2009, 10:48 am
New PDO driver for SQL Server May 5, 2008, 12:41 pm
Wamp server problem May 24, 2007, 9:29 am
running phpmyadmin using wamp server October 18, 2009, 5:53 pm
Can't connect to postgresql server July 3, 2006, 1:42 pm
WAMP and myphpadmin recommendations February 9, 2005, 2:14 pm
ldap support on WAMP October 6, 2005, 9:56 am
WAMP install problem December 14, 2005, 10:52 am
Sessions not Working on WAMP December 23, 2005, 6:39 pm
What WAMP package do you advice ? December 18, 2007, 3:25 pm

Our other projects:

Art Dolls, Fairies and Mermaids - Sunnyfaces.net

Driving a better car - Fuelzilla.com

Cabling site for homeowners and pros alike - Cabling-Design.com

Friends:

Roy's Linux, Programming and Search Engines messages

1-Script XML SitemapXML Sitemap
Privacy Policy