Warning: pg_connect(): Unable to connect to PostgreSQL server: could not connect to server: Permission denied Is the server running on host \"10.0.1.201\" and accepting TCP/
One more possible scenario/solution that worked for me (for the very same problem) is here:
service httpd stop service postgresql stop setsebool -P httpd_can_network_connect 1 service httpd start service postgresql start