Installing TeamPass on a fresh Ubuntu 14.6LTS server.
Find the latest version of TeamPass here https://github.com/nilsteampassnet/TeamPass/releases
I’m using 2.1.26(14) which was the most recent version as of this writing.
Install Ubuntu 14.6, when asked what packages to install add LAMP (and SSH server if you want)
Then update Ubuntu and install some requirements:
sudo apt-get update and sudo apt-get upgrade sudo apt-get install php-mysql php-mcrypt php-mbstring php-bcmath php-iconv php-xml php-gd openssl
download and unpack teampass
wget https://github.com/nilsteampassnet/TeamPass/archive/2.1.26.14.tar.gz sudo tar -xf 2.1.26.14.tar.gz -C /var/www/html/
move files to root directory of web server (or another directory if you prefer)
cd /var/www/html sudo mv TeamPass-2.1.26.14/* ./
connect to install subdirectory with a browser http://<your server ip>/install/install.php
**if you see error message [ERROR] answer from server is empty, you probably need to enable mcrypt and restart apache
sudo php5enmod mcrypt
sudo service apache2 restart
Click Next and then click Launch
The install script checks a number of conditions and lets you know what needs to be configured or installed.
The page checks your server to make sure everything is ready to install. In this case there are some file permission errors.
Lets clear up those directory issues by changing the owner and permissions of the TeamPass files.
cd /var/www/html sudo chown -R www-data:www-data * sudo find * -type d -exec chmod 755 {} \; sudo find * -dype f -exec chmod 644 {} \;
Edit php.ini (/etc/php/7.0/apache2/php.ini) to make the execution time larger, find the entry that reads max_execution_time = 30 and change to 60 then restart apache
Launch the install test again and verify that all the items have a green check.
Next; create the database and database user (you will need the root database credentials you created with installing the LAMP stack)
mysql -u root -p create database TeamPass grant all privileges on TeamPass.* to <username>@localhost identified by "password";
Once the database has been set up. You can click next on the install tool in the web browser and enter the details for the database user you just set up.
Then click Launch to test the database connection and move on to the Preparation section.
Generate SALT and table prefix, and set folder for salt file. (installer recomends /var/teampass/)
sudo mkdir /var/teampass sudo chown www-data:www-data /var/teampass
Set up your mail settings here as well. (i dont have a SMTP server at the moment, so im skipping it right now).
Once the details have been entered, click launch to move to Table Creation. Here the installer creates the necessary database tables.
The installer then writes some settings and attempts to change some directory access settings.
And finally a finished message. You can now log into your TeamPass installation using the username “admin” and the password you created earlier.