CentOS 7
Sponsored Link

PostgreSQL 9.2 : Install phpPgAdmin2015/07/23

Install phpPgAdmin to operate PostgreSQL on web browser from Client hosts.
[3] Install phpPgAdmin.
# install from EPEL

[root@dlp ~]#
yum --enablerepo=epel -y install phpPgAdmin php-pgsql
[root@dlp ~]#
vi /etc/phpPgAdmin/config.inc.php
# line 18: add

$conf['servers'][0]['host'] = '
# line 93: change to false if you allow to login with priviledged user like postgres, root

$conf['extra_login_security'] =
# line 99: change

$conf['owned_only'] =
[root@dlp ~]#
vi /var/lib/pgsql/data/pg_hba.conf
# line 82: change like follows and add access permission

host    all         all          md5
host    all         all           md5
host    all         all         ::1/128               md5

[root@dlp ~]#
vi /etc/httpd/conf.d/phpPgAdmin.conf
# line 11: add access permission

Require local
Require ip
[root@dlp ~]#
systemctl restart postgresql httpd

[4] If SELinux is enabled, change boolean setting.
[root@dlp ~]#
setsebool -P httpd_can_network_connect_db on

[5] Access to the "http://(hostname or IP address)/phpPgAdmin/" and click "PostgreSQL" on the left menu.
[6] Autenticate a user and password which is in PostgreSQL.
[7] Just logined. You can operate PostgreSQL on here.
Matched Content