PgAdmin4

De BrapciWiki
Ir para navegação Ir para pesquisar
apt install php-mbstring

Download

[Download PGadmin4]

mkdir /data/html/
cd /data/html/
wget https://github.com/phppgadmin/phppgadmin/archive/refs/heads/master.zip
unzip master.zip
mv phppgadmin-master/ web


Configurar o Apache2

Criar um Redirecionamento de reota para pgAdmin4

<Location /pgAdmin4>
   ProxyPass http://127.0.0.1:82/
   ProxyPassReverse http://127.0.0.1:82/
</Location>

Criar Acesso a Rota para a porta 82

<VirtualHost *:82>
       ServerName vitrine.inep.rnp.br
       DocumentRoot /data/html/web/
       ServerAdmin renefgj@gmail.com
       ServerName pocdadosabertos.inep.rnp.br
       ServerAlias 20.197.236.31
       ServerAlias 127.0.0.1
       <Directory "/data/html/web/">
           Require all granted
       </Directory>
</VirtualHost>

config.inc.php

$conf['servers'][0]['host'] = '127.0.0.1';
$conf['extra_login_security'] = false;
$conf['min_password_length'] = 0;