Server Fault is a question and answer site for system and network administrators. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I'm trying to access a PostgreSQL datasource via ODBC from the installed stock PHP (OS X 10.6). Queries just hang, and I'm suspecting it can't find the PostgreSQL driver library which was installed via MacPorts.

I've compiled and installed the psqlODBC drivers from source using this configuration:

--prefix=/usr/local --with-iodbc

I have successfully created and tested the ODBC connection using iodbctest.

Do I need to do something to get Apache/PHP to see libpq?

share|improve this question

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Browse other questions tagged or ask your own question.