Mudanças entre as edições de "Instalação Teampass"
Ir para navegação
Ir para pesquisar
Linha 46: | Linha 46: | ||
'''Criar senha do DB''' | '''Criar senha do DB''' | ||
mysqladmin -u root password '$senha' | mysqladmin -u root password '$senha' | ||
+ | |||
+ | '''Criar banco para teampass''' | ||
+ | mysql -u root -p | ||
+ | create database teampass character set utf8 collate utf8_bin; | ||
+ | |||
+ | '''Dar permissões ao usuario teampass no db teampass''' | ||
+ | grant all privileges on teampass.* to teampass_admin@localhost identified by 'PASSWORD'; | ||
+ | |||
+ | '''Saindo do mysql''' | ||
+ | FLUSH PRIVILEGES; | ||
+ | EXIT | ||
+ | |||
+ | '''Baixar arquivos mais atualizados em''' | ||
+ | https://github.com/nilsteampassnet/TeamPass/releases | ||
+ | wget https://github.com/nilsteampassnet/TeamPass/archive/refs/tags/3.0.0.7.zip | ||
+ | |||
+ | '''Descompactar arquivos''' | ||
+ | unzip 3.0.0.7.zip -d /var/www/html/ | ||
+ | |||
+ | '''Renomeando pasta''' | ||
+ | cd /var/www/html/ | ||
+ | mv TeamPass-3.0.0.7 /var/www/html/teampass | ||
+ | |||
+ | '''Ajustando as permissões''' | ||
+ | chmod -R 0777 /var/www/html/teampass/includes/ | ||
+ | chmod -R 0777 /var/www/html/teampass/includes/config | ||
+ | chmod -R 0777 /var/www/html/teampass/includes/avatars | ||
+ | chmod -R 0777 /var/www/html/teampass/includes/libraries/csrfp/libs | ||
+ | chmod -R 0777 /var/www/html/teampass/includes/libraries/csrfp/log | ||
+ | chmod -R 0777 /var/www/html/teampass/includes/libraries/csrfp/js | ||
+ | chmod -R 0777 /var/www/html/teampass/backups | ||
+ | chmod -R 0777 /var/www/html/teampass/files | ||
+ | chmod -R 0777 /var/www/html/teampass/install | ||
+ | chmod -R 0777 /var/www/html/teampass/upload | ||
+ | |||
+ | '''Acessar via WEB e concluir as configurações via WEB''' | ||
+ | http://IP/teampass |
Edição das 15h33min de 24 de maio de 2021
HOMOLOGADO COM
SO: CentOS 7
Memoria: 4Gb
HD: 16Gb
Executar a instalação padrão prevista em
Customização Padrão Instalação VM
Instalar net-tools
yum install net-tools -y
Instalar vim
yum install vim -y
Instalar wget
yum install wget -y
Atualizar Sistema
yum update -y yum upgrade -y
Reiniciar a máquina
reboot
Instalar Dependencias
yum -y install unzip wget mariadb-server mariadb-devel git
Instalando Repositórios
yum install epel-release rpm -Uvh http://rpms.famillecollet.com/enterprise/remi-release-7.rpm
Instalando PHP 7.4
yum --enablerepo=remi-php74 install php php-xml php-soap php-xmlrpc php-mbstring php-json php-gd php-mcrypt libapache2-mod-php php-ldap php-curl php-mysql php-mcrypt php-fpm php-common openssl php-mysql php-bcmath
Ajustar configuração PHP
vim /etc/php.ini max_execution_time = 60
Reiniciar apache
systemctl restart httpd
Iniciar DB
systemctl start mariadb systemctl enable mariadb
Criar senha do DB
mysqladmin -u root password '$senha'
Criar banco para teampass
mysql -u root -p create database teampass character set utf8 collate utf8_bin;
Dar permissões ao usuario teampass no db teampass
grant all privileges on teampass.* to teampass_admin@localhost identified by 'PASSWORD';
Saindo do mysql
FLUSH PRIVILEGES; EXIT
Baixar arquivos mais atualizados em
https://github.com/nilsteampassnet/TeamPass/releases wget https://github.com/nilsteampassnet/TeamPass/archive/refs/tags/3.0.0.7.zip
Descompactar arquivos
unzip 3.0.0.7.zip -d /var/www/html/
Renomeando pasta
cd /var/www/html/ mv TeamPass-3.0.0.7 /var/www/html/teampass
Ajustando as permissões
chmod -R 0777 /var/www/html/teampass/includes/ chmod -R 0777 /var/www/html/teampass/includes/config chmod -R 0777 /var/www/html/teampass/includes/avatars chmod -R 0777 /var/www/html/teampass/includes/libraries/csrfp/libs chmod -R 0777 /var/www/html/teampass/includes/libraries/csrfp/log chmod -R 0777 /var/www/html/teampass/includes/libraries/csrfp/js chmod -R 0777 /var/www/html/teampass/backups chmod -R 0777 /var/www/html/teampass/files chmod -R 0777 /var/www/html/teampass/install chmod -R 0777 /var/www/html/teampass/upload
Acessar via WEB e concluir as configurações via WEB
http://IP/teampass