Re: Cannot login using phpPgAdmin
Rico Secada <[email protected]> Mon, 30 Jul 2012 00:26:13 +0200
| Newsgroups | gmane.comp.db.postgresql.php |
|---|---|
| Message-ID | <20120730002613.6dde343c@naim-work> |
On Sat, 28 Jul 2012 16:45:55 +0530 Archana K N <[email protected]> wrote: > Hello, >=20 > 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. >=20 > Is this a problem with the phppgadmin? I'm always having the same problem with phpPgAdmin anytime I install it!=20 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 =E2=80=9Chost=E2=80=9D option is set for UNIX domain socket,= you need to change that for TCP/IP connections. In config.inc.php:=20 $conf['servers'][0]['desc'] =3D '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'] =3D 'localhost'; // Database port on server (5432 is the PostgreSQL default) $conf['servers'][0]['port'] =3D 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.=20 >=20 > regards --=20 Sent via pgsql-php mailing list ([email protected]) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-php