{"id":12877,"date":"2022-05-21T23:06:34","date_gmt":"2022-05-21T20:06:34","guid":{"rendered":"https:\/\/kifarunix.com\/?p=12877"},"modified":"2024-03-09T12:55:10","modified_gmt":"2024-03-09T09:55:10","slug":"install-syspass-password-manager-on-debian","status":"publish","type":"post","link":"https:\/\/kifarunix.com\/install-syspass-password-manager-on-debian\/","title":{"rendered":"Install sysPass Password Manager on Debian 11\/Debian 10"},"content":{"rendered":"\n
In this tutorial, we are going to learn how to install sysPass password manager on Debian 11\/Debian 10. 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 Debian 11\/Debian 10 in our previous guide. Check the link below;<\/p>\n\n\n\n Install LAMP Stack on Debian 11<\/a><\/p>\n\n\n\n Install LAMP Stack on Debian 10<\/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 Debian 10\/Debian 11;<\/p>\n\n\n\n Just to verify the MariaDB and PHP versions installed;<\/p>\n\n\n\n Debian 10;<\/p>\n\n\n\n Debian 11;<\/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 Debian 11\/Debian 10. 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<\/a><\/p>\n\n\n\nInstall sysPass Password Manager on Debian 11\/Debian 10<\/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 git<\/code><\/pre>\n\n\n\n
mysqld -V<\/code><\/pre>\n\n\n\n
mysqld Ver 10.3.34-MariaDB-0+deb10u1 for debian-linux-gnu on x86_64 (Debian 10)<\/code><\/pre>\n\n\n\n
php -v<\/code><\/pre>\n\n\n\n
PHP 7.3.31-1~deb10u1 (cli) (built: Oct 24 2021 15:18:08) ( NTS )\nCopyright (c) 1997-2018 The PHP Group\nZend Engine v3.3.31, Copyright (c) 1998-2018 Zend Technologies\n with Zend OPcache v7.3.31-1~deb10u1, Copyright (c) 1999-2018, by Zend Technologies<\/code><\/pre>\n\n\n\n
mysqld -V<\/code><\/pre>\n\n\n\n
mysqld Ver 10.5.15-MariaDB-0+deb11u1 for debian-linux-gnu on x86_64 (Debian 11)<\/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\/index.php<\/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