Page 1 of 1

[SOLVED]Your PHP installation does not support PostgreSQL...

Posted: Mon Mar 22, 2004 11:49 am
by dragonreborn
Running Apache on FreeBSD, and I have webmin installed and use that to try to figure most stuff out.

Ok, so I'm brand new to managing servers and I'm having trouble with my php configuration. I thought I had postgresql support installed with my php (I'm even showing the pdsql folders /usr/local/include/php/ext/pgsql with file php_pgsql.h). I installed phppgadmin but get an error similar to the subject line. For those who don't use phppgadmin the error is thrown from a function_exists("pg_connect") check.

My question: How do I check my php configuration to confirm postgresql support and if it's not there how do I put it there?

Thanks in advance for any comments and questions.

Posted: Wed Mar 24, 2004 12:36 am
by Slippy

Code: Select all

<?php
php_info();
?>
Should tell you what is installed/configured/compiled

If you are having troubles building the configuration, check out http://www.apachetoolbox.com -- although I seem to recall having problems with apachetoolbox and postgres downloading last time...

Posted: Wed Mar 24, 2004 3:20 am
by markl999
Also, you might have it installed ok, but just not loaded, ie check the php.ini file ( the one that phpinfo() says it is using) and add/uncomment extension=pgsql.so ... then restart apache. If that still fails then you may need to actually install pgsql and recompile PHP --with-pgsql

Posted: Tue Jul 12, 2005 10:49 am
by angusfighter
excuse me
i think i am having a similar problem

i "uncomment" the extension for the pgsql module
but it seems dun work

i would like to ask how to "recompile" the program
to make the altered "php.ini" file works

thx a lot

Posted: Tue Jul 12, 2005 8:54 pm
by angusfighter
finally i worked it out
i put the php.ini in the Apache folder and then it works

... :cry:

stupid me

Posted: Tue Jul 12, 2005 9:05 pm
by John Cartwright
Lets not dig up year old threads, shant we?