Linux - SoftwareThis 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
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
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?
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
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.
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.
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).
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.