Can't Connect to PostgreSQL with PHP pg_connect()

前端 未结 1 1556
迷失自我
迷失自我 2020-12-03 19:16

EDIT: I just realized that this question may be better suited to ServerFault. Instead of copying it, a moderator please move it over? Thanks.

I\'ve checked php-info,

相关标签:
1条回答
  • 2020-12-03 20:11

    could not connect to server: Permission denied

    Edit: I'm on Centos 5.4 btw.

    Check /var/log/audit/audit.log. Chances are that you're hitting a SELinux rule.

    0 讨论(0)
提交回复
热议问题