Can't Login to Postgres with phpPgAdmin

I'm having great difficulty connecting to Postgres on Fedora 5 with phpPgAdmin. No matter what I do, I can't login in with the postgres user and the dbadmin user I created.

I've tried various combinations in the pg_hba.conf file, and I also made $conf['extra_login_security'] = false in the config.inc.php file in Postgres. Nothing works. I changed the passwords for the postgres and dbadmin user as well in Postgres.

I can login without problems to the database from the command line, i.e.

   su - postgres
   psql template0

Does anyone have any ideas what I'm doing wrong and I what I need to do to login?

Thanks.
BetaPictorisAsked:
Who is Participating?
 
LuxanaConnect With a Mentor Commented:
Any error message?
---------
Just in case I want to mention taht you neet to restart postreSQL after you have made changes in pg_hba.conf file.
------------
Are you sure that phpPgAdmin is configured properly?
------------
Does the webserver supports postgresql connections? ==> pg_connect
-------------
can you login using IP address?

 psql --host hostname/IPaddress template0

-----------
how about little test with just simple php script?
<?php
$conn_string = "host=yourhost port=5432 dbname=yourdatabase user=postgres password=pass";
$dbconn = pg_connect ($conn_string);

if ($dbconn ) {
echo "connected";
}

?>
----------

check postresql.conf and make sure that:
tcpip_socket = true

hope this helps..

lubo
0
 
BetaPictorisAuthor Commented:
Thanks Luxana. I made a minor change to phpPgAdmin and restarted Postgres and everything works ok.
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.