CI 묻고 답하기

제목 Message: pg_connect(): 에러 확인 좀 부탁드립니다.
카테고리 CI 2, 3
글쓴이 호아세 작성시각 2016/12/14 17:49:21
댓글 : 1 추천 : 0 스크랩 : 0 조회수 : 14346   RSS

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 로 되어있지만 그래도 에러 납니다. 

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

 

 다음글 cart에 값이 담기지가 않습니다 ..도와주세요 (2)
 이전글 IE에서 간혈적으로 로그인 안되는 현상 (5)

댓글

kaido / 2016/12/14 18:25:28 / 추천 0

TCP/IP connections on port 5432?

 

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

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

 

 

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