질문 Q #16206
Message: pg_connect(): 에러 확인 좀 부탁드립니다.
호아세 2016-12-14 18:19:21

A PHP Error was encountered

Severity: Warning

Message: pg_connect(): Unable to connect to PostgreSQL server: could not connect to server: Permission denied Is the server running on host "IP" and accepting TCP/IP connections on port 5432?

Filename: postgre/postgre_driver.php

Line Number: 154

Backtrace:

File: /opt/project/smart/web/application/controllers/Main.phpLine: 7 Function: __construct

File: /opt/project/smart/web/index.phpLine: 292  Function: require_once

 

 

이런에러가 납니다. 

어떻게 해결해야 할지 모르겠습니다. 

서버상에서 POSTGRESQL은 접속이 잘 됩니다. 

pg_hba.conf 설정도 제대로 되었고요  trust로요 

database.php 상에서 pconnect = false 로 되어있지만 그래도 에러 납니다. 

어디서 잘못된 건지 아시는 분 계신가요 ?? 

 

답변 1
#1 kaido 2016-12-14 18:55:28

TCP/IP connections on port 5432?

 

 에러메세지에 친절하게 나와있네요

해당 아이피는 해당 5432 번호 포트로 접속이 불가능 합니다.

 

 

방화벽 설정 확인 해보세요.