From Newroco tech docs
Revision as of 13:57, 27 November 2018 by Alexandru.horea (talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigationJump to search


Install the following packages

  1. apt-get install mysql-server mysql-client
  2. apt-get install apache2 libapache2-mod-php php php-mcrypt php-mbstring php-mysql php-opcache php-ldap php-bcmath php-gd php-xml php-common php-mysqlnd

Edit this line in /etc/php/7.0/apache2/php.ini

  1. max_execution_time = 60

Login to mysql

  1. mysql -u root -p

Create a database and user for Teampass

  1. create database teampass character set utf8 collate utf8_bin;
  2. grant all privileges on teampass.* to teampass_admin@localhost identified by 'PASSWORD';
  3. flush privileges;
  4. quit

DB sync

If you want a backup DB you can set a slave mysql server as here: Mysql Sync

Install Teampass

Download Teampass and unzip it

  1. wget
  2. unzip

Remove /var/www/html (after you make sure you don't have something important there) and move Teampass there.

  1. rm -r /var/www/html
  2. mv TeamPass-2.1.26-final-3 /var/www/html

Set Permissions

  1. chown -R www-data:www-data /var/www/html
  2. chmod -R 0777 /var/www/html/includes/config
  3. chmod -R 0777 /var/www/html/includes/avatars
  4. chmod -R 0777 /var/www/html/includes/libraries/csrfp/libs
  5. chmod -R 0777 /var/www/html/includes/libraries/csrfp/log
  6. chmod -R 0777 /var/www/html/includes/libraries/csrfp/js
  7. chmod -R 0777 /var/www/html/backups
  8. chmod -R 0777 /var/www/html/files
  9. chmod -R 0777 /var/www/html/install
  10. chmod -R 0777 /var/www/html/upload

Now go on your browser to and finish the installation.

When you get to Preparation, create dir /etc/teampass on the server

  1. mkdir /etc/teampass
  2. chown :www-data /etc/teampass
  3. chmod 775 /etc/teampass

And set Absolute path to SaltKey to /etc/teampass/. If the field is left empty the SaltKey will be stored by default in /var/www/html/includes/ which could be accessed by unauthorized people.

For upgrade to newer version: