Re: Unable to access phppgadmin from localhost

From: Mladen Gogala <gogala(dot)mladen(at)gmail(dot)com>
To: pgsql-admin(at)lists(dot)postgresql(dot)org
Subject: Re: Unable to access phppgadmin from localhost
Date: 2022-05-01 16:08:16
Message-ID: 0d90315e-c0e4-e1f5-e871-fdd4e5b6b9fe@gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-admin

On 4/30/22 07:58, SAJESH PC wrote:
> Hi,
> When We try to access phppgadmin from localhost the following php code
> is displayed. What may be the reason for this? Kindly clarify.
>
> http://127.0.0.1/phppgadmin/
>
> printHeader('', null, true); $rtl = (strcasecmp($lang['applangdir'],
> 'rtl') == 0); $cols = $rtl ? '*,'.$conf['left_width'] :
> $conf['left_width'].',*'; $mainframe = '' ?> printFooter(false); ?>
>
>
> regards,
> P C SAJESH
> PGT COMPUTER SCIENCE
> KV MALAPPURAM

This looks like the http server not being configured to run PHP. That is
what happens when httpd doesn't know what to do with "<?php" tag. Have
you attempted to execute  something like this:

<?php
phpinfo();
?>

What do you get if you try something like that?

--
Mladen Gogala
Database Consultant
Tel: (347) 321-1217
https://dbwhisperer.wordpress.com

In response to

Browse pgsql-admin by date

  From Date Subject
Next Message A G 2022-05-04 14:55:17 Losing records in PostgreSQL 9.6
Previous Message dave 2022-04-30 13:48:51 RE: Unable to access phppgadmin from localhost