LinuxQuestions.org
Did you know LQ has a Linux Hardware Compatibility List?
Go Back   LinuxQuestions.org > Forums > Linux > 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
 
Thread Tools Search this Thread
Old 06-18-2009, 03:27 PM   #1
Raptor354
LQ Newbie
 
Registered: Jul 2008
Distribution: Ubuntu Ultimate, SuSE Enterprise Server 10 SP2
Posts: 11
Thanked: 0
PostgreSQL/phpPgAdmin Default Login


[Log in to get rid of this advertisement]
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
Raptor354 is offline     Reply With Quote
Old 06-18-2009, 10:33 PM   #2
Tinkster
Moderator
 
Registered: Apr 2002
Location: in a fallen world
Distribution: slackware by choice, others too :}
Posts: 19,146
Blog Entries: 1
Thanked: 201
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
Tinkster is online now     Reply With Quote
Old 06-19-2009, 01:05 AM   #3
Raptor354
LQ Newbie
 
Registered: Jul 2008
Distribution: Ubuntu Ultimate, SuSE Enterprise Server 10 SP2
Posts: 11
Thanked: 0

Original Poster
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?
Raptor354 is offline     Reply With Quote
Old 06-19-2009, 06:01 PM   #4
Tinkster
Moderator
 
Registered: Apr 2002
Location: in a fallen world
Distribution: slackware by choice, others too :}
Posts: 19,146
Blog Entries: 1
Thanked: 201
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
Tinkster is online now     Reply With Quote
Old 06-19-2009, 08:12 PM   #5
Raptor354
LQ Newbie
 
Registered: Jul 2008
Distribution: Ubuntu Ultimate, SuSE Enterprise Server 10 SP2
Posts: 11
Thanked: 0

Original Poster
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.
Raptor354 is offline     Reply With Quote
Old 06-19-2009, 08:30 PM   #6
Tinkster
Moderator
 
Registered: Apr 2002
Location: in a fallen world
Distribution: slackware by choice, others too :}
Posts: 19,146
Blog Entries: 1
Thanked: 201
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
Tinkster is online now     Reply With Quote

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


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


All times are GMT -5. The time now is 05:20 PM.

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.
Advertisement
Oracle Magazine contains technology strategy articles, sample code, tips, Oracle and partner news, how to articles for developers and DBAs, and more. Click Here to receive a complimentary subscription courtesy of LQ.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
RSS2  LQ Podcast
RSS2  LQ Radio
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: @linuxquestions
Open Source Consulting | Domain Registration