How to Install phpPgAdmin on CentOS using Yum

phpPgAdmin is web based client written in php for accessing and managing PostgreSQL databases. It provides very efficient way to work with databases on PostgreSQL like, create database, table, alter database, export/import database etc.

This article will you to install phpPgAdmin on CentOS/RedHat System. It required Apache and PostgreSQL to be installed on server. If you do not have them read our turtorials to how to install them.

Installing PostgreSQL on CentOS, RHEL and Fedora
Installing Apache MySQL PHP on CentOS and RHEL

Step 1: Add PostgreSQL repository in System.

First step is to install postgres repository in your system, Download repository rpm using one of below urls.

CentOS/RHEL 5, 32-Bit:
# wget

CentOS/RHEL 6, 32-Bit:
# wget

CentOS/RHEL 5, 64-Bit:
# wget

CentOS/RHEL 6, 64-Bit:
# wget
Step 2: Install phpPgAdmin using Yum

Install phpPgAdmin package using yum command line tool.

# yum install phpPgAdmin
Step 3: Configure phpPgAdmin to Access Remotly.

phpPgAdmin bye default all allowed to access from localhost only. If you want to make it accessible from remote computers edit /etc/httpd/conf.d/phpPgAdmin.conf and update configure like below.

Alias /phpPgAdmin /usr/share/phpPgAdmin

<Directory /usr/share/phpPgAdmin>
   order deny,allow
   deny from all
   allow from
Step 4: Restart Apache Service

Restart apache service to reload new settings.

# service httpd restart
Step 5: Access phpPgAdmin on Browser.

Now you can access phpPgAdmin in browser using following url. Change with your server ip.


5 thoughts on “How to Install phpPgAdmin on CentOS using Yum

  1. Quick bit of info, if like me, you receive an error when following the exact steps – after the wget, you’ll see:
    [root@mymachine]# yum install phpPgAdmin
    Loaded plugins: fastestmirror, security
    Loading mirror speeds from cached hostfile
    * base:
    * extras:
    * updates:
    Setting up Install Process
    No package phpPgAdmin available.
    Error: Nothing to do

    Do this instead:
    [root@mymachine]# yum install pgdg-centos91-9.1-4.noarch.rpm

    THEN you can yum install the package name… It’s just that the rpm needed to be installed for the repo before continuing.

    • Hey bro, thank you. I worked for me, but I am having a problem to log in on phpPgAdmin. I created a new super user through terminal, but I cannot log in on phpPgAdmin. Can you help with this?

Leave a Reply

Your email address will not be published. Required fields are marked *

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>