{"id":11544,"date":"2022-05-21T18:37:04","date_gmt":"2022-05-21T15:37:04","guid":{"rendered":"https:\/\/kifarunix.com\/?p=11544"},"modified":"2024-03-09T12:55:42","modified_gmt":"2024-03-09T09:55:42","slug":"install-syspass-password-manager-on-ubuntu","status":"publish","type":"post","link":"https:\/\/kifarunix.com\/install-syspass-password-manager-on-ubuntu\/","title":{"rendered":"Install sysPass Password Manager on Ubuntu 22.04\/Ubuntu 20.04"},"content":{"rendered":"\n
In this tutorial, we are going to learn how to install sysPass password manager on Ubuntu 22.04\/Ubuntu 20.04. sysPass<\/a> is opensource multiuser password manager written in PHP for business and personal use. It allows a centralized and collaborative passwords management. It saves passwords using bidirectional encryption with a master password to a database. Passwords are associated to accounts, and these have detailed information about it like: customer, category, notes, files, etc.<\/p>\n\n\n\n In this guide, we are going to install the latest version of sysPass<\/a>, v3.2.2 as of this writing. Successful setup of sysPass v3.2.2 requires LAMP stack installed;<\/p>\n\n\n\n We have covered installation of LAMP stack on Ubuntu 22.04\/Ubuntu 20.04 in our previous guide. Check the link below;<\/p>\n\n\n\n Install LAMP Stack on Ubuntu 22.04<\/a><\/p>\n\n\n\n Ensure you install PHP 7.4<\/a> on Ubuntu 22.04. This is due to some compatibility issues between PHP 8 and Composer.<\/p>\n\n\n\n Install LAMP Stack on Ubuntu 20.04<\/a><\/p>\n\n\n\n If you followed our tutorial above, some of the required modules are not installed and hence can be installed by running the command below.<\/p>\n\n\n\n On Ubuntu 20.04;<\/p>\n\n\n\n On Ubuntu 22.04;<\/p>\n\n\n\n Just to verify the MariaDB and PHP versions installed;<\/p>\n\n\n\n Ubuntu 20.04;<\/p>\n\n\n\n Ubuntu 22.04;<\/p>\n\n\n\n Login to MariaDB and create sysPass database and user will full privileges on the database. The names used here are not standard. Feel free to change them to suite your environment.<\/p>\n\n\n\n You can choose to use the sysPass tarball available on the latest releases page or just clone its repository.<\/p>\n\n\n\n sysPass requires Composer that helps in managing all the required libraries and dependencies. To install Composer, navigate to the sysPass web directory and run the script below to programmatically install composer.<\/p>\n\n\n\n Run the commands below to install composer.<\/p>\n\n\n\n Next, install the sysPass dependencies.<\/p>\n\n\n\n The sysPass web directory should be owned by the web server user which is www-data<\/strong> in this case. Hence, run the command below to set up proper permissions and ownership of the directories.<\/p>\n\n\n\n Once the installation is done, access sysPass from the browser to finalize on the setup. To access sysPass from web, use the URL;<\/p>\n\n\n\n Configure sysPass admin and Master password.<\/p>\n\n\n\n Next;<\/p>\n\n\n\n Once the setup is done, you will be redirected to sysPass login page. Use the admin credentials set during setup.<\/p>\n\n\n\n When you successfully login, you will land on the default sysPass dashboard.<\/p>\n\n\n\n That is all it takes to install sysPass on Ubuntu 22.04\/Ubuntu 20.04. You can now create different account, add users and access privileges.<\/p>\n\n\n\n Learn how to integrate sysPass with OpenLDAP for authentication by following the link below;<\/p>\n\n\n\n Integrate sysPass with OpenLDAP for Authentication<\/a><\/p>\n\n\n\n Other Related Tutorials;<\/p>\n\n\n\n Install Bitwarden password manager on Ubuntu 22.04<\/a><\/p>\n\n\n\nInstall sysPass Password Manager on Ubuntu 22.04\/Ubuntu 20.04<\/h2>\n\n\n\n
\n
\n
apt install php-pear php php-cgi php-cli php-common \\\nphp-fpm php-gd php-json php-readline php-curl php-intl \\\nphp-ldap php-xml php-mbstring php-mysql<\/code><\/pre>\n\n\n\n
apt install php-pear php7.4 php7.4-cgi php7.4-cli php7.4-common \\\nphp7.4-fpm php7.4-gd php7.4-json php7.4-readline php7.4-curl php7.4-intl \\\nphp7.4-ldap php7.4-xml php7.4-mbstring php7.4-mysql<\/code><\/pre>\n\n\n\n
mysqld -V<\/code><\/pre>\n\n\n\n
mysqld Ver 10.3.34-MariaDB-0ubuntu0.20.04.1 for debian-linux-gnu on x86_64 (Ubuntu 20.04)<\/code><\/pre>\n\n\n\n
php -v<\/code><\/pre>\n\n\n\n
PHP 7.4.3 (cli) (built: Mar 2 2022 15:36:52) ( NTS )\nCopyright (c) The PHP Group\nZend Engine v3.4.0, Copyright (c) Zend Technologies\n with Zend OPcache v7.4.3, Copyright (c), by Zend Technologies<\/code><\/pre>\n\n\n\n
mysqld -V<\/code><\/pre>\n\n\n\n
mysqld Ver 10.6.7-MariaDB-2ubuntu1 for debian-linux-gnu on x86_64 (Ubuntu 22.04)<\/code><\/pre>\n\n\n\n
php -v<\/code><\/pre>\n\n\n\n
PHP 7.4.29 (cli) (built: Apr 28 2022 11:47:05) ( NTS )\nCopyright (c) The PHP Group\nZend Engine v3.4.0, Copyright (c) Zend Technologies\n with Zend OPcache v7.4.29, Copyright (c), by Zend Technologies<\/code><\/pre>\n\n\n\n
\n
mysql -u root -p -e \"create database syspass\"<\/code><\/pre>\n\n\n\n
mysql -u root -p -e \"create user spadmin@localhost identified by 'StronGP@ssw0RD'\"<\/code><\/pre>\n\n\n\n
mysql -u root -p -e \"grant all on syspass.* to spadmin@localhost\"<\/code><\/pre>\n\n\n\n
mysql -u root -p -e \"flush privileges\"<\/code><\/pre>\n\n\n\n
\n
git clone https:\/\/github.com\/nuxsmin\/sysPass.git \/var\/www\/html\/syspass<\/code><\/pre>\n\n\n\n
\n
cd \/var\/www\/html\/syspass<\/code><\/pre>\n\n\n\n
wget -O composer-setup.php https:\/\/getcomposer.org\/installer<\/code><\/pre>\n\n\n\n
sudo php composer-setup.php --install-dir=\/usr\/local\/bin --filename=composer<\/code><\/pre>\n\n\n\n
composer install --no-dev<\/code><\/pre>\n\n\n\n
\n
chown www-data -R \/var\/www\/html\/syspass\nchmod 750 \/var\/www\/html\/syspass\/app\/{config,backup}<\/code><\/pre>\n\n\n\n
\n
systemctl restart apache2 mariadb<\/code><\/pre>\n\n\n\n
\n
http://<syspass-server>\/syspass<\/code><\/pre>\n\n\n\n
<\/figure><\/a><\/div>\n\n\n\n
\n
<\/figure><\/a><\/div>\n\n\n\n
<\/figure><\/a><\/div>\n\n\n\n
<\/figure><\/a><\/div>\n\n\n\n