{"id":2606,"date":"2019-04-15T23:23:37","date_gmt":"2019-04-15T20:23:37","guid":{"rendered":"https:\/\/kifarunix.com\/?p=2606"},"modified":"2024-03-11T22:40:06","modified_gmt":"2024-03-11T19:40:06","slug":"install-syspass-password-manager-on-ubuntu-18-04","status":"publish","type":"post","link":"https:\/\/kifarunix.com\/install-syspass-password-manager-on-ubuntu-18-04\/","title":{"rendered":"Install sysPass Password Manager on Ubuntu 18.04"},"content":{"rendered":"\n
In this tutorial, we are going to learn how to install sysPass password manager on Ubuntu 18.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 our previous guide, we learnt how to install TeamPass password manager. You can check the same by following the link below;<\/p>\n\n\n\n Install TeamPass Password Manager on Ubuntu 18.04<\/a><\/p>\n\n\n\n In this guide, we are going to install the latest version of sysPass, v3.0. Successful setup of sysPass v3.0 requires LAMP stack installed;<\/p>\n\n\n\n We have covered installation of LAMP stack on Ubuntu 18.04 in our previous guide. Check the link below;<\/p>\n\n\n\n Install LAMP Stack on Ubuntu 18.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. Note that Mcrypt has been deprecated in PHP 7.2. It is optional anyway.<\/p>\n\n\n\n Just to verify the MariaDB and PHP versions installed;<\/p>\n\n\n\n Login to MariaDB and create sysPass database and user will full privileges on the database.<\/p>\n\n\n\n Run the command below to clone sysPass to web server root directory.<\/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 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 Put the following content in a file, say composer-install.sh and run it as a shell script to install composer<\/a>.<\/p>\n\n\n\n Save the file and run it as shown below;<\/p>\n\n\n\n Next, install the sysPass dependencies.<\/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 Ensure you open ports on firewall to allow external web access.<\/p>\n\n\n\n Configure sysPass admin and Master password.<\/p>\n\n\n\n Set the sysPass database connection details.<\/p>\n\n\n\n Choose the sysPass language, check the hosting mode box and hit install button to finalize on the setup.<\/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 Other Tutorials<\/p>\n\n\n\n Install Passbolt Password Manager on Debian 10\/Debian 11<\/a><\/p>\n\n\n\nInstalling sysPass on Ubuntu 18.04<\/h2>\n\n\n\n
Prerequisites<\/h3>\n\n\n\n
\n
apt install php-pear php php-cgi php-cli php-common php-fpm php-gd php-json \\\nphp-readline php-curl php-intl php-ldap php-xml php-mbstring<\/code><\/pre>\n\n\n\n
apt-cache policy mariadb-server<\/code><\/pre>\n\n\n\n
mariadb-server:\n Installed: 1:10.1.38-0ubuntu0.18.04.1<\/strong>\n Candidate: 1:10.1.38-0ubuntu0.18.04.1\n Version table:\n *** 1:10.1.38-0ubuntu0.18.04.1 500<\/code><\/pre>\n\n\n\n
php -v<\/code><\/pre>\n\n\n\n
PHP 7.2.15-0ubuntu0.18.04.2 (cli) (built: Mar 22 2019 17:05:14) ( NTS )\n Copyright (c) 1997-2018 The PHP Group\n Zend Engine v3.2.0, Copyright (c) 1998-2018 Zend Technologies\n with Zend OPcache v7.2.15-0ubuntu0.18.04.2, Copyright (c) 1999-2018, by Zend Technologies<\/code><\/pre>\n\n\n\n
Create sysPass Database and user<\/h3>\n\n\n\n
mysql -u root -p
create database syspass;
grant all privileges on syspass.* to spadmin@localhost identified by \"StronGP@ssw0RD\";
flush privileges;
quit
<\/code><\/pre>\n\n\n\nRestart the database.<\/h3>\n\n\n\n
systemctl restart mariadb<\/code><\/pre>\n\n\n\n
Download sysPass<\/h3>\n\n\n\n
git clone https:\/\/github.com\/nuxsmin\/sysPass.git \/var\/www\/html\/syspass<\/code><\/pre>\n\n\n\n
Setup sysPass directories permissions<\/h3>\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
Install sysPass Dependencies<\/h3>\n\n\n\n
cd \/var\/www\/html\/syspass<\/code><\/pre>\n\n\n\n
\ncat > composer-install.sh << 'EOL'\n#!\/bin\/sh\n\nEXPECTED_CHECKSUM=\"$(php -r 'copy(\"https:\/\/composer.github.io\/installer.sig\", \"php:\/\/stdout\");')\"\nphp -r \"copy('https:\/\/getcomposer.org\/installer', 'composer-setup.php');\"\nACTUAL_CHECKSUM=\"$(php -r \"echo hash_file('sha384', 'composer-setup.php');\")\"\n\nif [ \"$EXPECTED_CHECKSUM\" != \"$ACTUAL_CHECKSUM\" ]\nthen\n >&2 echo 'ERROR: Invalid installer checksum'\n rm composer-setup.php\n exit 1\nfi\n\nphp composer-setup.php --quiet\nRESULT=$?\nrm composer-setup.php\nexit $RESULT\nEOL\n<\/code><\/pre>\n\n\n\n
bash composer-install.sh<\/code><\/pre>\n\n\n\n
php composer.phar install --no-dev<\/code><\/pre>\n\n\n\n
Finalize sysPass Setup<\/h3>\n\n\n\n
http:\/\/<syspass-server>\/syspass<\/code><\/pre>\n\n\n\n
<\/figure>\n\n\n\n
<\/figure>\n\n\n\n
<\/figure>\n\n\n\n
<\/figure>\n\n\n\n