Received: from maia.hub.org (unknown [200.46.204.183]) by mail.postgresql.org (Postfix) with ESMTP id CD34E635357 for ; Mon, 1 Feb 2010 20:14:15 -0400 (AST) Received: from mail.postgresql.org ([200.46.204.86]) by maia.hub.org (mx1.hub.org [200.46.204.183]) (amavisd-maia, port 10024) with ESMTP id 11981-01-9 for ; Tue, 2 Feb 2010 00:14:01 +0000 (UTC) X-Greylist: domain auto-whitelisted by SQLgrey-1.7.6 Received: from mail-px0-f194.google.com (mail-px0-f194.google.com [209.85.216.194]) by mail.postgresql.org (Postfix) with ESMTP id 1E0E6635CA6 for ; Mon, 1 Feb 2010 20:13:40 -0400 (AST) Received: by pxi32 with SMTP id 32so4554050pxi.15 for ; Mon, 01 Feb 2010 16:13:39 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from :user-agent:mime-version:to:cc:subject:references:in-reply-to :content-type:content-transfer-encoding; bh=wzgS7w/8OYHnY3oEXjpnUqnkoPOKEcsdBNznkT36pf4=; b=sCYLD9ZxUtM7W1kVTq9kLrYWgLM0sX4gH4N6vojGC9dlabCobAamxa8Hy84ptU61SV 142A5RgOv/t1iPeJ0Fhn8Gy9AKn+6D0LICWyeCmo3pqoB5cyvGdmn5b9TmJmq6EWMGmZ 947n3byxkWrLP67cGvv+Ij9Wk8XA5ebYpOMvU= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:user-agent:mime-version:to:cc:subject :references:in-reply-to:content-type:content-transfer-encoding; b=wSnWda13vUTUgHUQleS4NBdj8VR+0YhKwiOXA4rGKtjujmIw+u+wI5F15+W5elhKqS WoTLT0UJfRqJOt0SD1ZaxpKPMiGhBilVYTHkuXvOflcPYLv+Eq9UQFy6P+ljrkGKSic7 KfUa/bjjtml1BTDLusMTC2OJzkeglBkfx9vUs= Received: by 10.115.114.15 with SMTP id r15mr18420wam.149.1265069619247; Mon, 01 Feb 2010 16:13:39 -0800 (PST) Received: from ?192.168.2.65? (office.squiz.net [203.206.128.174]) by mx.google.com with ESMTPS id 21sm5018589pzk.15.2010.02.01.16.13.37 (version=TLSv1/SSLv3 cipher=RC4-MD5); Mon, 01 Feb 2010 16:13:38 -0800 (PST) Message-ID: <4B676E2D.5060903@gmail.com> Date: Tue, 02 Feb 2010 11:13:33 +1100 From: Chris User-Agent: Thunderbird 2.0.0.23 (X11/20090817) MIME-Version: 1.0 To: Gustavo Amarilla Santacruz CC: Bill Moran , pgsql-php@postgresql.org Subject: Re: Undefined function pg_connect() References: <4B60DC23.9020404@gmail.com> <20100128084415.4d98823a.wmoran@potentialtech.com> <4B62236F.1090200@gmail.com> <4B660281.5060007@gmail.com> In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Scanned: Maia Mailguard 1.0.1 X-Spam-Status: No, hits=-2.599 tagged_above=-10 required=5 tests=BAYES_00=-2.599 X-Spam-Level: X-Archive-Number: 201002/2 X-Sequence-Number: 4122 Gustavo Amarilla Santacruz wrote: > Thank you, all. > > I had access to the SELinux->Boolean; next, i check the option: > > "Allow HTTPD scripts and modules to connect to databases over the > network". > > > Then, a new message was displayed: > > Warning: pg_connect(): Unable to connect to PostgreSQL server: FATAL: > Ident authentication failed for user "gestock" ....... > > > I can login with gestock data (user/password) through the postgresql > psql tool. But from apache i can not. It's not using the password, it's just checking the username to see if you're logged in as 'gestock' (but 'apache' is not 'gestock', hence the error). What does your postgresql pg_hba.conf file look like? -- Postgresql & php tutorials http://www.designmagick.com/