Reputation: 726
Wampserver has a problem when loading php_pdo_pgsql and php_pgsql modules. After searching on several forums the solution is to download from http://www.bmedon.net/download.html both .dll files and overwrite the existing ones.
The problem is that it didn't work! I checked all php.ini files. I followed http://diego-loquese.blogspot.com/2010/12/conectar-wampserver-con-postgresql.html instructions (which is a summary of all the forums I found).
I am using WampServer 2.2 for Windows x64 with PHP 5.4.3
Upvotes: 5
Views: 9897
Reputation: 371
Install PostgreSQL
Edit php.ini, uncomment “extension=php_pgsql.dll”. Check both the php.ini in the PHP folder and Apache folder
Edit environment variables, add PostgreSQL /bin and /lib directories to Path. This solves the issue of php_pgsql.dll not loading due to it not being able to resolve dependencies.
Done. PHP should now be able to communicate with PostgreSQL.
Upvotes: 0
Reputation: 23259
Just copy the libpq.dll from your php directory to the apache bin directory.
Upvotes: 7
Reputation: 191
You have to load libpq.dll
that comes with php, in the httpd.conf
like this:
LoadFile "c:/wamp/bin/php/php5.4.3/libpq.dll"
It worked for me
Upvotes: 19