Following all the instructions from UNIXMEN, installed postgresql-9.4
in CentOS 6.4
. Everything went well, started the service and could access pgsql
screen. But when I try to configure the phpPgAdmin
, I couldn't find the files
- postgresql.conf
- pg_hba.conf
- config.inc.php
- phpPgAdmin.conf
The instructions says, postgresql
home directory will sit in /etc/../
and some say it will be in /var/lib/
. Where does the directory gets created (in CentOS)?
Is installation directory path is different in centos, redhat(RHEL7) & ubuntu?
Update:
I ran a quick locate command for *postgresql.conf** and *hba.conf**, I found the sample files as postgresql.conf.sample
and pg_hba.conf.sample
(at /usr/pgsql-9.4/share/
)
sudo su - postgres
? That will take you right to the postgres home directory and you should be able to locate the pg_hba.conf file...Usually in RHEL/CentOS it would be in /var/lib/psql/ or something of that nature...