Bug 180624 - Php and Postgresql can not communicate
Summary: Php and Postgresql can not communicate
Keywords:
Status: CLOSED RAWHIDE
Alias: None
Product: Fedora
Classification: Fedora
Component: php
Version: 5
Hardware: i386
OS: Linux
medium
medium
Target Milestone: ---
Assignee: Joe Orton
QA Contact: David Lawrence
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2006-02-09 15:51 UTC by Smela Csaba
Modified: 2007-11-30 22:11 UTC (History)
2 users (show)

Fixed In Version:
Clone Of:
Environment:
Last Closed: 2006-02-21 14:36:31 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)

Description Smela Csaba 2006-02-09 15:51:40 UTC
Description of problem:


1. Installed Apache2 and php with postgresql module. Phpinfo() confirms that
pgsql  is loaded.

2. Installed Postgresql. Changed conf file that it accept connections on both
UNIX socket and  TCP/IP.

3. Can connect Postgresql locally with psql. Remote clients over TCP/IP also
works well.

4. Trying to connect from php results: Warning: pg_connect()
[function.pg-connect]: Unable to connect to PostgreSQL server: could not connect
to server: Permission denied Is the server running locally and accepting
connections on Unix domain socket "/tmp/.s.PGSQL.5432"?

Yes server runs locally and accepts connections on UNIX sockets. (psql).

Comment 1 Rahul Sundaram 2006-02-20 10:51:11 UTC

These bugs are being closed since a large number of updates have been released
after the FC5 test1 and test2 releases. Kindly update your system by running yum
update as root user or try out the third and final test version of FC5 being
released in a short while and verify if the bugs are still present on the system
.Reopen or file new bug reports as appropriate after confirming the presence of
this issue. Thanks

Comment 2 Smela Csaba 2006-02-21 14:16:08 UTC
I can confirm that FC5 test3 corrects the problem and works just fine.
Thanks


Comment 3 Rahul Sundaram 2006-02-21 14:36:31 UTC
(In reply to comment #2)
> I can confirm that FC5 test3 corrects the problem and works just fine.
> Thanks
> 

Thank you for the confirmation. Closing bug report


Note You need to log in before you can comment on or make changes to this bug.