Guide on Installing Teampass on Fedora Server

Teampass is a password manager that provides an encrypted and secure solution for storing passwords. This guide explains how to install Teampass on a Fedora Server.

Prerequisites

Steps:

  1. Update the system packages.
sudo dnf update -y 
  1. Install Apache web server and PHP.
sudo dnf install httpd php php-json php-mbstring php-pdo php-xml php-pecl-zip -y
  1. Start and enable the Apache web server.
sudo systemctl start httpd
sudo systemctl enable httpd
  1. Install MariaDB database server.
sudo dnf install mariadb mariadb-server -y
  1. Start and enable the MariaDB service.
sudo systemctl start mariadb
sudo systemctl enable mariadb
  1. Secure the MariaDB installation.
sudo mysql_secure_installation
  1. Create a new MariaDB database for Teampass.
sudo mysql -u root -p

CREATE DATABASE teampassdb;
CREATE USER 'teampassuser'@'localhost' IDENTIFIED BY 'your_password';
GRANT ALL PRIVILEGES ON teampassdb.* TO 'teampassuser'@'localhost' WITH GRANT OPTION;
FLUSH PRIVILEGES; 
  1. Download Teampass.
sudo curl -L https://github.com/nilsteampassnet/TeamPass/releases/latest/download/teampass.zip -o teampass.zip
  1. Unzip the Teampass archive.
sudo unzip teampass.zip -d /var/www/html/
  1. Rename the Teampass directory.
sudo mv /var/www/html/TeamPass_* /var/www/html/teampass 
  1. Set the appropriate file permissions.
sudo chown -R apache:apache /var/www/html/teampass 
sudo chmod 777 /var/www/html/teampass/config
sudo chmod 777 /var/www/html/teampass/upload
  1. Create a new virtual host for Teampass.

Create a file /etc/httpd/conf.d/teampass.conf:

<VirtualHost *:80>
    ServerName Your_Server_IP
    DocumentRoot /var/www/html/teampass
    DirectoryIndex index.php
    
    <Directory /var/www/html/teampass>
        Options -Indexes
        AllowOverride All
        Require all granted
    </Directory>

    ErrorLog /var/log/httpd/teampass_error.log
    CustomLog /var/log/httpd/teampass_access.log combined
</VirtualHost>
  1. Restart the Apache web server.
sudo systemctl restart httpd
  1. Access Teampass from the browser.

Open a browser and navigate to http://Your_Server_IP/teampass. You will be redirected to the Teampass installation page, you can now follow the on-screen instructions for the installation.

Congratulations, you have now installed Teampass on your Fedora Server.

If you want to self-host in an easy, hands free way, need an external IP address, or simply want your data in your own hands, give IPv6.rs a try!

Alternatively, for the best virtual desktop, try Shells!