Mudanças entre as edições de "PgAdmin4"
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:// | + | [[https://github.com/phppgadmin/phppgadmin Download PGadmin4]] |
mkdir /data/html/ | mkdir /data/html/ | ||
cd /data/html/ | cd /data/html/ | ||
| − | wget https:// | + | wget https://github.com/phppgadmin/phppgadmin/archive/refs/heads/master.zip |
| − | + | unzip master.zip | |
| − | mv | + | 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 | + | ServerName vitrine.inep.rnp.br |
| − | DocumentRoot / | + | 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 "/ | + | <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
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>