Received: from maia.hub.org (maia-3.hub.org [200.46.204.243]) by mail.postgresql.org (Postfix) with ESMTP id 7AC94B5DC63 for ; Mon, 26 Sep 2011 17:07:07 -0300 (ADT) Received: from mail.postgresql.org ([200.46.204.86]) by maia.hub.org (mx1.hub.org [200.46.204.243]) (amavisd-maia, port 10024) with ESMTP id 07272-09 for ; Mon, 26 Sep 2011 20:07:01 +0000 (UTC) X-Greylist: from auto-whitelisted by SQLgrey-1.8.0-rc2 Received: from a2s36.a2hosting.com (a2s36.a2hosting.com [216.119.134.130]) by mail.postgresql.org (Postfix) with ESMTP id 5B5F7B5DC04 for ; Mon, 26 Sep 2011 17:06:55 -0300 (ADT) Received: from adsl-98-70-97-40.tys.bellsouth.net ([98.70.97.40] helo=[10.0.0.18]) by a2s36.a2hosting.com with esmtpsa (TLSv1:AES128-SHA:128) (Exim 4.69) (envelope-from ) id 1R8HRj-001r5H-1Q; Mon, 26 Sep 2011 16:06:36 -0400 Subject: Re: problems logging in through phpPgAdmin Mime-Version: 1.0 (Apple Message framework v1084) Content-Type: text/plain; charset=us-ascii From: John DeSoi In-Reply-To: <53AA753E5EA4A14784092D825AD4FD3D046D655E@CTC3650D.campus.ctcd.org> Date: Mon, 26 Sep 2011 16:06:34 -0400 Cc: "pgsql-admin@postgresql.org" , "Hussey, Latasha" Content-Transfer-Encoding: quoted-printable Message-Id: References: <53AA753E5EA4A14784092D825AD4FD3D046D6234@CTC3650D.campus.ctcd.org> <671131D5-CF9A-4B19-8A4F-DC3352213E01@pgedit.com> <53AA753E5EA4A14784092D825AD4FD3D046D64E2@CTC3650D.campus.ctcd.org> <11CC03F4-DF27-480E-B447-287100732A6B@pgedit.com> <53AA753E5EA4A14784092D825AD4FD3D046D655E@CTC3650D.campus.ctcd.org> To: "Davenport, Julie" X-Mailer: Apple Mail (2.1084) X-AntiAbuse: This header was added to track abuse, please include it with any abuse report X-AntiAbuse: Primary Hostname - a2s36.a2hosting.com X-AntiAbuse: Original Domain - postgresql.org X-AntiAbuse: Originator/Caller UID/GID - [47 12] / [47 12] X-AntiAbuse: Sender Address Domain - pgedit.com X-Virus-Scanned: Maia Mailguard 1.0.1 X-Spam-Status: No, hits=-1.9 tagged_above=-10 required=5 tests=BAYES_00=-1.9, RCVD_IN_DNSWL_NONE=-0.0001 X-Spam-Level: X-Archive-Number: 201109/191 X-Sequence-Number: 38428 On Sep 26, 2011, at 3:16 PM, Davenport, Julie wrote: > psql srn_mst >=20 > and it will get me into the database whether I have the line set to = trust or md5. And does not ask for a password either way (never does). = This is how I always access the database from the command line. Right, because you are trusting local connections and that is what is = used because there is no -h option provided. > When I tried the way you suggested: >=20 > psql -U postgres -h 127.0.0.1 -d srn_mst >=20 > if set to trust, this logs me in (does not ask for password of = course). > If set to md5, this command asks me for password, but when I put it = in, gives me this error: > psql: FATAL: password authentication failed for user "postgres" > (same as what is happening through the application). Which means that you don't really know the postgres password :). If you = can't access postgres this way, it is not going to work with phpPgAdmin = either. You can login using the local connection and then change the = postgres password.=20 >=20 > Yes, PHP and phpPgAdmin and postgresql are all running on the same = linux server (where this database srn_mst resides). =20 >=20 > This is the enry in my phppgadmin conf file config.inc.php for this = server: > // Soarapp > $conf['servers'][3]['desc'] =3D 'Soarapp'; > $conf['servers'][3]['host'] =3D 'localhost'; > $conf['servers'][3]['port'] =3D 5432; > $conf['servers'][3]['defaultdb'] =3D 'template1'; > $conf['servers'][3]['pg_dump_path'] =3D '/usr/bin/pg_dump'; > $conf['servers'][3]['pg_dumpall_path'] =3D = '/usr/bin/pg_dumpall'; > Not sure if that is what your question refers to... >=20 I was referring to the "host" setting. If you get the password fixed = where it works with psql and it still does not work with phpPgAdmin, try = changing the host setting to 127.0.0.1. John DeSoi, Ph.D.