1. Instalar phpPgAdmin
|
yum -y install phpPgAdmin php-pgsql |
2. Configurar phpPgAdmin Realizar los siguientes cambios editando el archivo:
|
vim /etc/phpPgAdmin/config.inc.php |
|
# linea 18: agregar $conf['servers'][0]['host'] = 'localhost'; # linea 88: cambiar $conf['extra_login_security'] =false; # linea 94: cambiar $conf['owned_only'] = true; |
3. Configurar PostgreSQL Editar el archivo:
|
vim /var/lib/pgsql/data/pg_hba.conf |
|
# linea 70: cambiar local all all md5 # linea 72: cambiar y agregar la IP o el rango permitido host all all 127.0.0.1/32 md5 host all all 10.0.0.0/24 md5 # linea 75: cambiar local all all ::1/128 md5 |
4. Configurar Apache Editar el archivo:
|
vim /etc/httpd/conf.d/phpPgAdmin.conf |
|
# linea 11: agregar la IP o el rango permitido Allow from 10.40.8.0/24 |
5. Reiniciar los servicios
|
service postgresql-9.2 restart service httpd reload |
Continúa leyendo…