Skip to content
Follow
CMS Ubuntu Linux

How to Install sysPass Password Manager on Ubuntu

Richard
Written by
Richard
Oct 11, 2022 Updated Sep 15, 2026 3 min read
How to Enable or Disable Microsoft Defender Cloud Protection
How to Enable or Disable Microsoft Defender Cloud Protection

sysPass is a free, self-hosted password manager that runs locally on Ubuntu 24.04 LTS to store and protect your login details in a private web vault.

Advertisement

Running your own password manager stops weak password reuse and keeps sensitive account information safe on your own hardware without relying on third-party cloud servers.

⚡ Quick Answer

Install Apache, MariaDB, and PHP 8.3 using apt. Clone sysPass from GitHub to /var/www/html/syspass, then run composer install. Create a database in MariaDB and configure Apache with a new virtual host for sysPass. Finally, visit your domain to complete the web-based setup.

Advertisement

Install the Apache HTTP server

You can install the Apache HTTP server on Ubuntu by updating your package list and running the standard package installation commands in your terminal. This process sets up the core web server needed for your sysPass installation Ubuntu setup to serve pages correctly.

sudo apt update
sudo apt install apache2

Enable Apache to start automatically when the system boots up:

sudo systemctl enable --now apache2

Advertisement

Open a web browser and navigate to the server's IP address to confirm Apache runs correctly.

Default Apache test page on Ubuntu Linux
ubuntu linux apache default test page

Install the MariaDB database server

You need to install the MariaDB database server on your Ubuntu machine to store encrypted passwords and user data for sysPass installation Ubuntu tasks. This open-source database backend provides the secure storage required by the password manager to run properly.

sudo apt install mariadb-server
sudo systemctl enable --now mariadb

⚠️WarningRun the following command to set a root password and remove insecure default settings:
Advertisement

sudo mysql_secure_installation

Install PHP

sysPass 2026 requires PHP 8.2 or 8.3. Run these commands to install the necessary modules:

sudo apt install php8.3 php8.3-mysql php8.3-xml php8.3-mbstring php8.3-curl php8.3-gd php8.3-intl php8.3-bcmath libapache2-mod-php8.3 git

General: Composer and SSL Configuration

Composer (a tool for managing PHP programming packages) lets you fetch the extra code libraries required during your sysPass installation Ubuntu process. Downloading and running the setup script via PHP ensures the application receives all necessary dependencies to function correctly.

Advertisement

php -r "copy('https://getcomposer.org/installer', 'composer-setup.php');"
sudo php composer-setup.php --install-dir=/usr/local/bin --filename=composer

Securing the connection: Running a password manager over an unencrypted HTTP connection poses a major security risk. Install Certbot to obtain a free SSL certificate:

sudo apt install certbot python3-certbot-apache
sudo certbot --apache

Follow the on-screen prompts to secure the domain. This configures an encrypted Virtual Host (a dedicated server section configured specifically for a single website).

Advertisement

Create a database for sysPass

Log into MariaDB to create the storage area for sysPass:

sudo mysql -u root -p

Once at the MariaDB prompt, run the following commands:

⚠️WarningCREATE DATABASE syspassdb; CREATE USER 'syspassdbuser'@'localhost' IDENTIFIED BY 'your_password'; GRANT ALL ON syspassdb.* TO 'syspassdbuser'@'localhost'; FLUSH PRIVILEGES; EXIT;

CREATE DATABASE syspassdb;
CREATE USER 'syspassdbuser'@'localhost' IDENTIFIED BY 'your_password';
GRANT ALL ON syspassdb.* TO 'syspassdbuser'@'localhost';
FLUSH PRIVILEGES;
EXIT;

Advertisement

Install sysPass

You can finish your sysPass installation Ubuntu setup by cloning the core program files from GitHub directly into your web server directory using Git. Setting the correct file permissions and running Composer finishes the deployment so you can access the login page.

git clone https://github.com/nuxsmin/sysPass.git /var/www/html/syspass
sudo chown -R www-data:www-data /var/www/html/syspass
cd /var/www/html/syspass
sudo composer install --no-dev

Now, create the Apache configuration file for sysPass:

sudo nano /etc/apache2/sites-available/syspass.conf

Advertisement

Add server details here, then enable the site and restart Apache:

sudo a2ensite syspass
sudo systemctl restart apache2

To complete the sysPass installation, visit the configured domain in a web browser. This action opens the sysPass web portal, where on-screen prompts finalize the password manager setup, including administrator account creation and initial configurations.

sysPass installation portal on Ubuntu
syspass ubuntu install portal

Enter database credentials, create an administrator account, and click Install. The password manager is now ready for secure use.

[Y/n] [Y/n] [Y/n] [Y/n] [Y/n] [Y/n]

What is the password for Ubuntu installation?

On standard Ubuntu cloud and virtual machine images, the default username and password is 'ubuntu'. By default, this is only accessible via the command line, and it remains essential to change credentials immediately after logging in.

How to reset BIOS password in Ubuntu?

Need to reset a forgotten BIOS password? Accessing the recovery mode menu allows dropping straight into a root shell prompt. Pressing enter for maintenance opens an active root prompt.

Was this guide helpful?

Was this helpful?
Richard

About the Author

Richard

Tech Writer, IT Professional

Richard, a writer for Geek Rewind, is a tech enthusiast who loves breaking down complex IT topics into simple, easy-to-understand ideas. With years of hands-on experience in system administration and enterprise IT operations, he’s developed a knack for offering practical tips and solutions. Richard aims to make technology more accessible and actionable. He's deeply committed to the Geek Rewind community, always ready to answer questions and engage in discussions.

Advertisement

📚 Related Tutorials

How to Install KDE Desktop on Ubuntu 24.04
Ubuntu Linux How to Install KDE Desktop on Ubuntu 24.04
How to Setup MariaDB Master Slave Replication on Ubuntu
Ubuntu Linux How to Setup MariaDB Master Slave Replication on Ubuntu
How to Install Apache on Ubuntu Linux
Ubuntu Linux How to Install Apache on Ubuntu Linux
Install MySQL and MariaDB on Ubuntu: A Step-by-Step Guide
Ubuntu Linux Install MySQL and MariaDB on Ubuntu: A Step-by-Step Guide

No comments yet — be the first to share your thoughts!

Leave a Comment

Your email address will not be published. Required fields are marked *