LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices

Reply
 
LinkBack Search this Thread
Old 06-18-2009, 02:27 PM   #1
Raptor354
LQ Newbie
 
Registered: Jul 2008
Distribution: Ubuntu 11.04, Debian Squeeze, CentOS 5.6
Posts: 17

Rep: Reputation: 1
PostgreSQL/phpPgAdmin Default Login


I'm just starting to switch over to PostgreSQL from MySQL for my website backend. With MySQL, I know and love phpMyAdmin, so I wanted phpPgAdmin for managing PostgreSQL.

But how do you log in to phpPgAdmin? I can easily log in via the CLI on the server, but none of the credentials I've tried work.

I've asked google in a few different ways, but to no avail. I've tweaked all the files google said, but no gain. Am I just missing something?

Any thoughts?

Raptor354
 
Old 06-18-2009, 09:33 PM   #2
Tinkster
Moderator
 
Registered: Apr 2002
Location: in a fallen world
Distribution: slackware by choice, others too :} ... android.
Posts: 22,618
Blog Entries: 10

Rep: Reputation: 771Reputation: 771Reputation: 771Reputation: 771Reputation: 771Reputation: 771Reputation: 771
It may come down to proper entries in pg_hba.conf ... how
does the apache instance running phpPgAdmin (try to) talk
to the postgres server?



Cheers,
Tink
 
Old 06-19-2009, 12:05 AM   #3
Raptor354
LQ Newbie
 
Registered: Jul 2008
Distribution: Ubuntu 11.04, Debian Squeeze, CentOS 5.6
Posts: 17

Original Poster
Rep: Reputation: 1
Question

Here's my pg_hba.conf file:
Code:
local   all         all                               ident sameuser
host    all         all         127.0.0.1/32          md5
host    all         all         ::1/128               md5
host    all         all         192.168.11.0/24       md5
This should support external queries, right?

What's the default login credentials, though?
 
Old 06-19-2009, 05:01 PM   #4
Tinkster
Moderator
 
Registered: Apr 2002
Location: in a fallen world
Distribution: slackware by choice, others too :} ... android.
Posts: 22,618
Blog Entries: 10

Rep: Reputation: 771Reputation: 771Reputation: 771Reputation: 771Reputation: 771Reputation: 771Reputation: 771
Quote:
Originally Posted by Raptor354 View Post
Here's my pg_hba.conf file:
Code:
local   all         all                               ident sameuser
host    all         all         127.0.0.1/32          md5
host    all         all         ::1/128               md5
host    all         all         192.168.11.0/24       md5
This should support external queries, right?
Line 1 allows for unix socket connections for all OS users
who have access rights to the database that you're trying
to connect to using the same name within postgres .

Lines 3-4 allow any user whose name is defined within postgres
to connect using an MD5 password.


Quote:
Originally Posted by Raptor354 View Post
What's the default login credentials, though?
There are none. It will depend on the distro that the
server in question is running. And you didn't tell me
whether apached and postgres are on the same box, either.




Cheers,
Tink
 
Old 06-19-2009, 07:12 PM   #5
Raptor354
LQ Newbie
 
Registered: Jul 2008
Distribution: Ubuntu 11.04, Debian Squeeze, CentOS 5.6
Posts: 17

Original Poster
Rep: Reputation: 1
Sorry. Everything is on the same OS on the same box. And if it helps, I'm running Ubuntu Server 9.04.

Ideally, I'd have the database on a VM that doesn't have internet access, but that kind of setting should be in a config file somewhere, right? I have VMWare Server 2 set up and ready to have an OS installed.
 
Old 06-19-2009, 07:30 PM   #6
Tinkster
Moderator
 
Registered: Apr 2002
Location: in a fallen world
Distribution: slackware by choice, others too :} ... android.
Posts: 22,618
Blog Entries: 10

Rep: Reputation: 771Reputation: 771Reputation: 771Reputation: 771Reputation: 771Reputation: 771Reputation: 771
OK. I've never used phpPgAdmin, so can't walk you through
the set-up. I'd suggest bumping up postgres' log-level,
restarting the service and then looking at the log ... it
should give you SOME indication what is/why it's failing.

Check the config file for phpPgAdmin, see as what user it's
trying to connect, what type of connection it's trying to
establish, what credentials it's using (I assume user postgres,
no password, which would fail given the pg_hba.conf above).



Cheers,
Tink
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
unable to login to postgresql veeramani Programming 2 11-29-2006 02:42 AM
Gnome: Cannot login as default user, sends back to login, works as root Danny-T Linux - Newbie 2 05-27-2006 03:44 AM
login and postgresql problem after installing openldap robertngo Linux - Software 1 07-18-2005 07:47 PM
Apache-php-postgresql-phppgadmin koswo Linux - Software 0 02-05-2004 06:05 AM
Default users for MySQL and PostgreSQL in RH8? arthurzap Linux - Software 0 03-26-2003 08:04 AM


All times are GMT -5. The time now is 03:43 AM.

Main Menu
 
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: @linuxquestions
Open Source Consulting | Domain Registration