Red Hat Bugzilla – Bug 180624
Php and Postgresql can not communicate
Last modified: 2007-11-30 17:11:23 EST
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
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).
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
I can confirm that FC5 test3 corrects the problem and works just fine.
(In reply to comment #2)
> I can confirm that FC5 test3 corrects the problem and works just fine.
Thank you for the confirmation. Closing bug report