Solved

PHP 5.3 on can't find php_pdo_pgsql.dll for postgres

Posted on 2011-09-10
3
1,187 Views
Last Modified: 2012-05-12
PHP Warning:  PHP Startup: Unable to load dynamic library 'c:/wamp/bin/php/php5.3.5/ext/php_pdo_pgsql.dll' - The specified module could not be found.

Anyone know where I can find compatible dlls for postgres 9 and PHP 5.3? PHP by default can't find them.
0
Comment
Question by:metalaureate
  • 2
3 Comments
 
LVL 83

Expert Comment

by:Dave Baldwin
ID: 36517066
They come with WAMP and PHP 5.3.  In the popup from the tray icon for PHP extensions, you put a check mark in front of 'php_pgsql' and 'php_pdo_pgsql'.  However, reading the comments in the WAMP forum it appears that not all versions work properly.  One comment says that EasyPHP does work right so you might want to check that out.  Here's one of the posts: http://www.wampserver.com/phorum/read.php?2,52679

And since PostgreSQL is not part of WAMP, you also have to do some extra manual configuration and put at least one DLL where Apache/PHP can find it.
0
 

Author Comment

by:metalaureate
ID: 36517278
I'm using wamp but the default dlls dont work with postgres 9
0
 
LVL 83

Accepted Solution

by:
Dave Baldwin earned 500 total points
ID: 36517290
You normally can not substitute DLLs from other versions of PHP.  PHP checks the version of the extensions to make sure they are compatible with the main interpreter.

A number of people in the WAMP forum said that several versions of those DLLs simply did not work.  If that is the case with what you have, you must change to a different version of PHP or find something other than WAMP.   Someone recommended EasyPHP as an alternative.
0

Featured Post

Free learning courses: Active Directory Deep Dive

Get a firm grasp on your IT environment when you learn Active Directory best practices with Veeam! Watch all, or choose any amount, of this three-part webinar series to improve your skills. From the basics to virtualization and backup, we got you covered.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Foreword (July, 2015) Since I first wrote this article, years ago, a great many more people have begun using the internet.  They are coming online from every part of the globe, learning, reading, shopping and spending money at an ever-increasing ra…
Developers of all skill levels should learn to use current best practices when developing websites. However many developers, new and old, fall into the trap of using deprecated features because this is what so many tutorials and books tell them to u…
Explain concepts important to validation of email addresses with regular expressions. Applies to most languages/tools that uses regular expressions. Consider email address RFCs: Look at HTML5 form input element (with type=email) regex pattern: T…
Steps to create a PostgreSQL RDS instance in the Amazon cloud. We will cover some of the default settings and show how to connect to the instance once it is up and running.

789 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question