Log In

Come Join Us!

Are you a
Computer / IT professional?
Join Tek-Tips Forums!
  • Talk With Other Members
  • Be Notified Of Responses
    To Your Posts
  • Keyword Search
  • One-Click Access To Your
    Favorite Forums
  • Automated Signatures
    On Your Posts
  • Best Of All, It's Free!

*Tek-Tips's functionality depends on members receiving e-mail. By joining you are opting in to receive e-mail.

Posting Guidelines

Promoting, selling, recruiting, coursework and thesis posting is forbidden.

Students Click Here

Configuring phpPgAdmin

Configuring phpPgAdmin

Configuring phpPgAdmin

I am using redhat 7.3 and would like to use phpPgAdmin.

I am using it as root and one normal user.

Can some someone tell me what I have to change in the configuration file (and anything else).

These are all the things I have done so far

I opened the  /var/lib/pgsql/data/pg_hba.conf file. I uncommented the two lines that allows access for localhost.

Then I went  to the command line as root , type d
1)su postgres
2)psql databasename
3)grant all privileges on tablename to apache

The php -postgresql connection was working, I was able to select and insert into a table that I had created.

RE: Configuring phpPgAdmin

Hi Newbiepg,

Download phpPgAdmin and install it in your web directory tree.  If your using RedHat 7.3, you might place all the phpPgAdmin files a directory like:


You must edit the config.inc.php file.  Below is how I have mine setup.  You will want to enter the info into
config.inc.php based on how you have Postgres setup.

$cfgServers[1]{'local']      = false'
$cfgServers[1]['host']       = 'localhost';
$cfgServers[1]['post']       = '5432';
$cfgServers[1][adv_auth']    = true;

$cfgServers[1]['user']       ='postgres'
$cfgServers[1]['password']   ='PG_PassWd'
$cfgServer[1]['only_db']     = '

Then point your browser to:


or, you could provide a link to index.php within
your html web pages.

That about all their is to it, given that you apache web
server is set up to run php.  In 7.3 I think it is.

Leland F. Jackson, CPA
Software - Master (TM)
Nothing Runs Like the Fox

Red Flag This Post

Please let us know here why this post is inappropriate. Reasons such as off-topic, duplicates, flames, illegal, vulgar, or students posting their homework.

Red Flag Submitted

Thank you for helping keep Tek-Tips Forums free from inappropriate posts.
The Tek-Tips staff will check this out and take appropriate action.

Reply To This Thread

Posting in the Tek-Tips forums is a member-only feature.

Click Here to join Tek-Tips and talk with other members! Already a Member? Login

Close Box

Join Tek-Tips® Today!

Join your peers on the Internet's largest technical computer professional community.
It's easy to join and it's free.

Here's Why Members Love Tek-Tips Forums:

Register now while it's still free!

Already a member? Close this window and log in.

Join Us             Close