littlesagi
Programmer
Hi,
I got a problem,I have Red hat Linux 7.3 with postgres,PHP and Apache working fine.
The problem is that I'm not able to connect to Postgres database with a Postgres user(which is also a Linux user) from my PHP script.
Its only allowing apache user to connect to any Postgres database.
I did the following ..
Created Linux user 'xyz'
Created a Postgres data base user 'xyz' with create db permission
Created a database 'testdb' by Logging as 'xyz'
Till here everything worked fine.
But when i tried to connect to this database in my PHP script(pg_connect()) I'm getting error ident error for 'xyz'
I hope u gurus will suggest me some solution.
Thanx in Adv.
Ram
I got a problem,I have Red hat Linux 7.3 with postgres,PHP and Apache working fine.
The problem is that I'm not able to connect to Postgres database with a Postgres user(which is also a Linux user) from my PHP script.
Its only allowing apache user to connect to any Postgres database.
I did the following ..
Created Linux user 'xyz'
Created a Postgres data base user 'xyz' with create db permission
Created a database 'testdb' by Logging as 'xyz'
Till here everything worked fine.
But when i tried to connect to this database in my PHP script(pg_connect()) I'm getting error ident error for 'xyz'
I hope u gurus will suggest me some solution.
Thanx in Adv.
Ram