centos中apache连接postgresql提示:
PDO Connection Error: SQLSTATE[08006] [7] could not connect to server: Permission denied
Is the server running on host "127.0.0.1" and accepting
TCP/IP connections on port 5432?
This happen because SELinux status is enabled and didn’t enabled the specific permission to allow Apache to use HTTP connections