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
- Fedora Server is installed and running.
- You have a root or sudo user account.
Steps:
- Update the system packages.
sudo dnf update -y
- Install Apache web server and PHP.
sudo dnf install httpd php php-json php-mbstring php-pdo php-xml php-pecl-zip -y
- Start and enable the Apache web server.
sudo systemctl start httpd
sudo systemctl enable httpd
- Install MariaDB database server.
sudo dnf install mariadb mariadb-server -y
- Start and enable the MariaDB service.
sudo systemctl start mariadb
sudo systemctl enable mariadb
- Secure the MariaDB installation.
sudo mysql_secure_installation
- 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;
- Download Teampass.
sudo curl -L https://github.com/nilsteampassnet/TeamPass/releases/latest/download/teampass.zip -o teampass.zip
- Unzip the Teampass archive.
sudo unzip teampass.zip -d /var/www/html/
- Rename the Teampass directory.
sudo mv /var/www/html/TeamPass_* /var/www/html/teampass
- 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
- 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>
- Restart the Apache web server.
sudo systemctl restart httpd
- 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.