Received: from maia.hub.org (maia-3.hub.org [200.46.204.243]) by mail.postgresql.org (Postfix) with ESMTP id 6337C13364DE for ; Thu, 7 Apr 2011 13:27:59 -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 72307-03 for ; Thu, 7 Apr 2011 16:27:52 +0000 (UTC) X-Greylist: delayed 00:07:07.784146 by SQLgrey-1.7.6 Received: from zeus.simkin.ca (zeus.simkin.ca [72.51.27.124]) by mail.postgresql.org (Postfix) with ESMTP id C9CB5133616B for ; Thu, 7 Apr 2011 13:27:51 -0300 (ADT) Received: from charon.medialogik.com (S0106000c6eb33e73.vc.shawcable.net [96.49.227.24]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by zeus.simkin.ca (Postfix) with ESMTPSA id ECF4E270305 for ; Thu, 7 Apr 2011 09:20:41 -0700 (PDT) From: Alan Hodgson Organization: Simkin Network Consulting To: pgsql-php@postgresql.org Subject: Re: Connecting PHP-based Application to Postgres-9.0.3 Date: Thu, 7 Apr 2011 09:20:36 -0700 User-Agent: KMail/1.13.5 (Linux/2.6.35-25-generic; KDE/4.5.1; i686; ; ) References: In-Reply-To: X-KMail-Markup: true MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="Boundary-01=_VRenNPGiY8hV3Ep" Content-Transfer-Encoding: 7bit Message-Id: <201104070920.37258@hal.medialogik.com> X-Virus-Scanned: Maia Mailguard 1.0.1 X-Spam-Status: No, hits=-1.909 tagged_above=-10 required=5 tests=BAYES_00=-1.9, HTML_MESSAGE=0.001, T_RP_MATCHES_RCVD=-0.01 X-Spam-Level: X-Archive-Number: 201104/3 X-Sequence-Number: 4165 --Boundary-01=_VRenNPGiY8hV3Ep Content-Type: text/plain; charset="iso-8859-15" Content-Transfer-Encoding: 7bit On April 7, 2011, Rich Shepard wrote: > /var/log/httpd/error_log shows: > > [Tue Apr 05 16:45:39 2011] [error] [client 127.0.0.1] PHP Fatal error: > Attempt to connect to database cms on rshepard@localhost failed in > /var/www/htdocs/cmsms/lib/adodb.functions.php on line 85 Can you connect to the database with psql using the same credentials? PHP will use the same underlying postgresql library to connect. -- The era of procrastination, of half-measures, of soothing and baffling expedients, of delays, is coming to a close. In its place we are entering a period of consequences. --Boundary-01=_VRenNPGiY8hV3Ep Content-Type: text/html; charset="iso-8859-15" Content-Transfer-Encoding: 7bit

On April 7, 2011, Rich Shepard <rshepard@appl-ecosys.com> wrote:

> /var/log/httpd/error_log shows:

>

> [Tue Apr 05 16:45:39 2011] [error] [client 127.0.0.1] PHP Fatal error:

> Attempt to connect to database cms on rshepard@localhost failed in

> /var/www/htdocs/cmsms/lib/adodb.functions.php on line 85

Can you connect to the database with psql using the same credentials? PHP will use the same underlying postgresql library to connect.

--

The era of procrastination, of half-measures, of soothing and baffling expedients, of delays, is coming to a close. In its place we are entering a period of consequences.

--Boundary-01=_VRenNPGiY8hV3Ep--