Take the 2-minute tour ×
Server Fault is a question and answer site for system and network administrators. It's 100% free, no registration required.

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
--with-libpq=/opt/local/lib/postgresql84/bin/pg_config

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

 
discard

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

Browse other questions tagged or ask your own question.