PDA

View Full Version : PHP: connect to pgsql failed



CorneLinux
9th December 2004, 05:04 PM
Hello,
I am a bit confused and can't get running php + pgsql.
My database is installed.
I gues I have installed all necessary rpms. (Running FC2)

I try to connect to the database
$db = DB::connect( "pgsql://user:password@unix+localhost/appliance" );

But I always get the "connect failed" error.

I guess I am blind. I can't find anything in the log files.
How can I do the logs more verbose?

Any Hints?
Regards
Cornelius

tomjmalone
18th December 2004, 08:45 PM
Three things postgres has been started, start it in the serviceconf menu.
Secondly is php working try, a file with <?php phpinfo(); ?> in it.
Thirdly is the php-pgsql ( or something installed ).

Tom