CentOS 7的话参考下面的链接
http://www.unixmen.com/install-epel-repository-centos-rhel-7/
使用命令更新库
yum update
现在输入命令安装phpPgAdmin:
yum install phpPgAdmin httpd
注意phpPgAdmin区分大小写,要准确使用上面所示的大小写!
默认你可以使用http://localhost/phpPgAdmin访问phpPgAdmin。若要远程访问需要继续:
编辑文件/etc/httpd/conf.d/phpPgAdmin.conf
vi /etc/httpd/conf.d/phpPgAdmin.conf
修改如下加粗的部分:
[...]
Alias /phpPgAdmin /usr/share/phpPgAdmin
?
?
? ? ? ? # Apache 2.4
? ? ? ? Require all granted
? ? ? ? #Require host example.com
?
?
? ? ? ? # Apache 2.2
? ? ? ? Order deny,allow
? ? ? ? Allow from all
? ? ? ? # Allow from .example.com
? ?
?
启动或重启Apache服务
在CentOS 6.x系统中
service httpd start
chkconfig httpd on
?
在CentOS 7系统中
systemctl enable httpd
systemctl start httpd?
现在打开浏览器并转到http://ip-address/phpPgAdmin。终于看到下面的界面了!

使用你之前创建的用户登录,我的是用户senthil密码CentOS。
?
你可能会遇到:Login failed。

这是因为SELLinux可能限制用户连接到PostgreSQL,只需输入以下命令更改即可:
setsebool -P httpd_can_network_connect_db 1
现在你应该能正常登录了。


我的phpPgAdimn如下:
OK!现在你就可以使用图形化界面的phpPgAdmin创建、删除和管理数据库了。
英文原文:How To Install PostgreSQL 9.3 And phpPgAdmin In CentOS 7/6.5/6.4
------------------------------------华丽丽的分割线------------------------------------
------------------------------------华丽丽的分割线------------------------------------