TeamPass is a Passwords Manager dedicated for managing passwords in a collaborative way by sharing them among team members. Teampass offers a large set of features permitting to manage your passwords and related data in an organized way in respect to the access rights defined for each users. Teampass is an Open-Source free to use product distributed in respect with OpenSource GNU GPL-3.0.
firewall-cmd --permanent --zone=public --add-service={http,https} firewall-cmd --reload
APACHE: systemctl enable httpd ou NGINX: systemctl enable nginx
yum install -y php-mcrypt php-openssl php-fpm php-mysql php-ldap php-mbstring php-bcmath php-iconv php-xml php-gd php-curl
systemctl enable php-fpm
max_execution_time
vim /etc/php.ini /max_execution_time
mysql -uroot -p SenhaDoDBRoot
create database teambase character set utf8 collate utf8_bin;
CREATE USER 'teampass'@localhost IDENTIFIED BY 'mypassword';
grant all privileges on teambase.* to teampass@localhost identified by 'SenhaDaBase';
yum install -y wget unzip
wget https://codeload.github.com/nilsteampassnet/TeamPass/zip/refs/heads/master
teampass
no /var
para gravação da SaltKey
mkdir /var/teampass
/var/www/
unzip master -d /var/www/
echo "IncludeOptional sites-enabled/*.conf" >> /etc/httpd/conf/httpd.conf
mkdir /etc/httpd/sites-available /etc/httpd/sites-enabled
teampass.conf
no diretório sites-available
vim /etc/httpd/sites-available/teampass.conf
<VirtualHost *:80> ServerName teampass.gugainfo.com.br ServerAlias www.teampass.gugainfo.com.br DocumentRoot "/var/www/TeamPass-master" ErrorLog "/var/www/logs/teampass-erro.log" CustomLog "/var/www/logs/teampass.log" combined <Directory /var/www/TeamPass-master> Options FollowSymlinks AllowOverride All Require all granted </Directory> </VirtualHost>
ln -s /etc/httpd/sites-available/teampass.conf /etc/httpd/sites-enabled/teampass.conf
vim /etc/nginx/conf.d/teampass.conf server { server_name teampass.gugainfo.com.br; # Maximum file upload size is 4MB - change accordingly if needed client_max_body_size 2048M; client_body_buffer_size 256k; root /var/www/TeamPass-master; index index.php; #Remember to comment the below out when you're installing, and uncomment it when done. #location ~ /(conf/|bin/|inc/|install.php) { deny all; } location / {try_files $uri $uri/ =404;} location ~ \.php$ { include fastcgi_params; include /etc/nginx/fastcgi.conf; fastcgi_index index.php; fastcgi_pass 127.0.0.1:9000; fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name; fastcgi_pass unix:/var/run/php/php7.0-fpm.sock; }
/etc/hostname
e /etc/hosts
/var/www/TeamPass-master
recursivamente para o apachechown apache:apache -R /var/www/TeamPass-master /var/teampass
chmod 755 -R /var/www/TeamPass-master /var/teampass
/var/www/teampass
e /var/teampass
semanage fcontext -a -t httpd_sys_rw_content_t "/var/www/TeamPass-master(/.*)?" semanage fcontext -a -t httpd_sys_rw_content_t "/var/teampass(/.*)?"
/var/www/logs
semanage fcontext -a -t httpd_log_t "/var/www/logs(/.*)?"
restorecon -Rv /var/www/TeamPass-master restorecon -Rv /var/teampass
setsebool -P httpd_can_sendmail=on
setsebool httpd_can_connect_ldap on
systemctl restart httpd
teampass.gugainfo.com.br
e seguir o guia de configuração da ferramenta.— GUSTAVO ARAGÃO 2022/06/28