knowram Posted April 21, 2010 Share Posted April 21, 2010 I am trying to get my php installation to run PostqreSQL queries. Right now i am getting the following error Your PHP installation does not support PostgreSQL. You need to recompile PHP using the --with-pgsql configure option. I tried adding extension=pgsql.so to my php.ini file and restarting my server but that didn't work. I am running this on a MAC server. Thanks for the help Quote Link to comment https://forums.phpfreaks.com/topic/199202-postgresql/ Share on other sites More sharing options...
trq Posted April 21, 2010 Share Posted April 21, 2010 I tried adding extension=pgsql.so to my php.ini file and restarting my server but that didn't work. Only the Windows distributions come with pre-compiled extensions. The instructions are written in the error. You need to recompile PHP using the --with-pgsql configure option. I'm not sure how Macs handle package management but on Linux this would be as simple as installing the php-postgres package. Quote Link to comment https://forums.phpfreaks.com/topic/199202-postgresql/#findComment-1045505 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.