Re: PHP + PostgreSQL
On Sun, 2004-06-27 at 05:57, deb_milist wrote:
> Error message ( using function.inc file with your modification ) :
>
> Warning: pg_connect(): Unable to connect to PostgreSQL server: FATAL:
> IDENT authentication failed for user "techtables" . in
> /var/www/techtables/functions.inc on line 11
> Cannot connect
Right. This means that for the particular combination of access method,
client host, user and database, the corresponding line in pg_hba.conf
specifies ident authentiaction. This is no use for web-based
applications, where the ident user is always the user who is running the
web-server. Remember that the *first* matching line in pg_hba.conf is
the one that applies; also remember to reload/restart postgresql after
changing that file.
--
Oliver Elphick olly@lfix.co.uk
Isle of Wight http://www.lfix.co.uk/oliver
GPG: 1024D/A54310EA 92C8 39E7 280E 3631 3F0E 1EC0 5664 7A2F A543 10EA
========================================
"Therefore being justified by faith, we have peace with
God through our Lord Jesus Christ." Romans 5:1
Reply to: