Mudanças entre as edições de "PgAdmin4"

De BrapciWiki
Ir para navegação Ir para pesquisar
(Criou página com '==Download== https://www.pgadmin.org/download/pgadmin-4-source-code/ Download PGadmin4 mkdir /data/html/ cd /data/html/ wget https://ftp.postgresql.org/pub/pgadmin/pg...')
 
Linha 1: Linha 1:
 +
apt install php-mbstring
 +
 
==Download==
 
==Download==
[[https://www.pgadmin.org/download/pgadmin-4-source-code/ Download PGadmin4]]
+
[[https://github.com/phppgadmin/phppgadmin Download PGadmin4]]
  
 
  mkdir /data/html/
 
  mkdir /data/html/
 
  cd /data/html/
 
  cd /data/html/
  
  wget https://ftp.postgresql.org/pub/pgadmin/pgadmin4/v6.2/source/pgadmin4-6.2.tar.gz
+
  wget https://github.com/phppgadmin/phppgadmin/archive/refs/heads/master.zip
  tar -vzxf gadmin4-6.2.tar.gz
+
  unzip master.zip
  mv pgadmin4-6.2 pgadmin4
+
  mv phppgadmin-master/ web
 +
 
  
 
Configurar o Apache2
 
Configurar o Apache2
Linha 20: Linha 23:
 
Criar Acesso a Rota para a porta 82
 
Criar Acesso a Rota para a porta 82
 
  <VirtualHost *:82>
 
  <VirtualHost *:82>
         ServerName pocdadosabertos.inep.rnp.br
+
         ServerName vitrine.inep.rnp.br
         DocumentRoot /usr/pgadmin4/web/
+
         DocumentRoot /data/html/web/
 
         ServerAdmin renefgj@gmail.com
 
         ServerAdmin renefgj@gmail.com
 
         ServerName pocdadosabertos.inep.rnp.br
 
         ServerName pocdadosabertos.inep.rnp.br
 
         ServerAlias 20.197.236.31
 
         ServerAlias 20.197.236.31
 
         ServerAlias 127.0.0.1
 
         ServerAlias 127.0.0.1
         <Directory "/usr/pgadmin4/web/">
+
         <Directory "/data/html/web/">
 
             Require all granted
 
             Require all granted
 
         </Directory>
 
         </Directory>
 
  </VirtualHost>
 
  </VirtualHost>

Edição das 15h10min de 10 de dezembro de 2021

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>