From: Rico Secada <coolzone@it.dk>
To: pgsql-php@postgresql.org
Subject: Re: Cannot login using phpPgAdmin
Date: Mon, 30 Jul 2012 00:26:13 +0200
Message-ID: <20120730002613.6dde343c@naim-work> (raw)
In-Reply-To: <CACa6=i0ueXvupKkT44yaK_1aKWKD45c-DmtNz+UU-_sMqhgt6w@mail.gmail.com>
References: <CACa6=i0ueXvupKkT44yaK_1aKWKD45c-DmtNz+UU-_sMqhgt6w@mail.gmail.com>
On Sat, 28 Jul 2012 16:45:55 +0530
Archana K N <archanakknn@gmail.com> wrote:
> Hello,
>
> I am having a problem with login in phppgadmin. I can connect to
> postgres using pgadmin 3 (from remote system also). But when am using
> phppgadmin it always shows "*Login Failed*". I tried several ways like
> changing php.ini file and pg_hba.conf nothing is working.
>
> Is this a problem with the phppgadmin?
I'm always having the same problem with phpPgAdmin anytime I install
it!
Here's the solution I use on Debian:
First create the file /etc/apache2/conf.d/phppgadmin:
Alias /phppgadmin /usr/share/phppgadmin/
<Directory /usr/share/phppgadmin/>
DirectoryIndex index.php
Options +FollowSymLinks
AllowOverride None
order deny,allow
deny from all
allow from 127.0.0.0/255.0.0.0 ::1/128
allow from all
<IfModule mod_php5.c>
php_flag magic_quotes_gpc Off
php_flag track_vars On
php_value include_path .
</IfModule>
</Directory>
Next, get the latest snapshot:
$ git clone git://github.com/phppgadmin/phppgadmin.git
Move the downloaded contens to /usr/share/phppgadmin
By default the “host” option is set for UNIX domain socket, you need to
change that for TCP/IP connections. In config.inc.php:
$conf['servers'][0]['desc'] = 'PostgreSQL';
// Hostname or IP address for server. Use '' for UNIX domain socket.
// use 'localhost' for TCP/IP connection on this computer
$conf['servers'][0]['host'] = 'localhost';
// Database port on server (5432 is the PostgreSQL default)
$conf['servers'][0]['port'] = 5432;
Restart Apache:
# /etc/init.d/apache2 restart
You can now access it using: http://whatever.com/phppgadmin/
You can login using whatever account has been setup on PostgreSQL.
>
> regards
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients from your mail client; the link fills in
the headers below: reply via email
Some clients, webmail especially, drop In-Reply-To and References from
a link, and the reply then starts a new thread: use the mbox below.
To: pgsql-php@postgresql.org
Cc: coolzone@it.dk
Subject: Re: Cannot login using phpPgAdmin
In-Reply-To: <20120730002613.6dde343c@naim-work>
References: <CACa6=i0ueXvupKkT44yaK_1aKWKD45c-DmtNz+UU-_sMqhgt6w@mail.gmail.com> <20120730002613.6dde343c@naim-work>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox