{"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<p>In this tutorial, we are going to learn how to install sysPass password manager on Ubuntu 18.04. <a rel=\"noreferrer noopener\" aria-label=\"sysPass (opens in a new tab)\" href=\"https:\/\/doc.syspass.org\/en\/3.0\/\" target=\"_blank\">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<p>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<p><a rel=\"noreferrer noopener\" aria-label=\"Install TeamPass Password Manager on Ubuntu 18.04 (opens in a new tab)\" href=\"https:\/\/kifarunix.com\/install-teampass-password-manager-on-ubuntu-18-04\/\" target=\"_blank\">Install TeamPass Password Manager on Ubuntu 18.04<\/a><\/p>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"install-syspass-password-manager-on-ubuntu-18-04\">Installing sysPass on Ubuntu 18.04<\/h2>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"prerequisites\">Prerequisites<\/h3>\n\n\n\n<p>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<ul class=\"wp-block-list\">\n<li>Web server (Apache\/Nginx\/Lighttpd) with SSL enabled.<\/li>\n\n\n\n<li>MariaDB &gt;= 10.1<\/li>\n\n\n\n<li>PHP &gt;= 7.0<\/li>\n\n\n\n<li>PHP modules; mysql, curl, json, gd, xml, mbstring, intl, readline, ldap (optional), mcrypt (optional for importing older XML export files)<\/li>\n<\/ul>\n\n\n\n<p>We have covered installation of LAMP stack on Ubuntu 18.04 in our previous guide. Check the link below;<\/p>\n\n\n\n<p><a href=\"https:\/\/kifarunix.com\/how-to-install-lamp-stack-apachemariadb-php-7-2-on-ubuntu-18-04-lts\/\" target=\"_blank\" rel=\"noreferrer noopener\" aria-label=\"Install LAMP Stack on Ubuntu 18.04 (opens in a new tab)\">Install LAMP Stack on Ubuntu 18.04<\/a><\/p>\n\n\n\n<p>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<pre class=\"wp-block-preformatted\"><code>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<p>Just to verify the MariaDB and PHP versions installed;<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>apt-cache policy mariadb-server<\/code><\/pre>\n\n\n\n<pre class=\"wp-block-code\"><code>mariadb-server:\n<strong>   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<pre class=\"wp-block-code\"><code>php -v<\/code><\/pre>\n\n\n\n<pre class=\"wp-block-code\"><code>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<h3 class=\"wp-block-heading\" id=\"create-syspass-database-and-user\">Create sysPass Database and user<\/h3>\n\n\n\n<p>Login to MariaDB and create sysPass database and user will full privileges on the database.<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\"><code>mysql -u root -p<br>create database syspass;<br>grant all privileges on syspass.* to spadmin@localhost identified by \"StronGP@ssw0RD\";<br>flush privileges;<br>quit<br><\/code><\/pre>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"restart-the-database\">Restart the database.<\/h3>\n\n\n\n<pre class=\"wp-block-preformatted\"><code>systemctl restart mariadb<\/code><\/pre>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"download-syspass\">Download sysPass<\/h3>\n\n\n\n<p>Run the command below to clone sysPass to web server root directory.<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\"><code>git clone https:\/\/github.com\/nuxsmin\/sysPass.git \/var\/www\/html\/syspass<\/code><\/pre>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"setup-syspass-directories-permissions\">Setup sysPass directories permissions<\/h3>\n\n\n\n<p>The sysPass web directory should be owned by the web server user which is <strong>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<pre class=\"wp-block-preformatted\"><code>chown www-data -R \/var\/www\/html\/syspass\nchmod 750 \/var\/www\/html\/syspass\/app\/{config,backup}<\/code><\/pre>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"install-syspass-dependencies\">Install sysPass Dependencies<\/h3>\n\n\n\n<p>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<pre class=\"wp-block-preformatted\"><code>cd \/var\/www\/html\/syspass<\/code><\/pre>\n\n\n\n<p>Put the following content in a file, say composer-install.sh and run it as a <a href=\"https:\/\/getcomposer.org\/doc\/faqs\/how-to-install-composer-programmatically.md\" target=\"_blank\" rel=\"noreferrer noopener\">shell script to install composer<\/a>.<\/p>\n\n\n\n<pre class=\"scroll-box\"><code>\ncat > composer-install.sh &lt;&lt; '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    >&amp;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<p>Save the file and run it as shown below;<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\"><code>bash composer-install.sh<\/code><\/pre>\n\n\n\n<p>Next, install the sysPass dependencies.<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\"><code>php composer.phar install --no-dev<\/code><\/pre>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"finalize-syspass-setup\">Finalize sysPass Setup<\/h3>\n\n\n\n<p>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<pre class=\"wp-block-preformatted\"><code>http:\/\/&lt;syspass-server&gt;\/syspass<\/code><\/pre>\n\n\n\n<p>Ensure you open ports on firewall to allow external web access.<\/p>\n\n\n\n<p>Configure sysPass admin and Master password.<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"1829\" height=\"644\" src=\"https:\/\/kifarunix.com\/wp-content\/uploads\/2022\/05\/syspass-admin-pass-master-pass.png\" alt=\"Install sysPass Password Manager on Ubuntu\" class=\"wp-image-12868\" title=\"\" srcset=\"https:\/\/kifarunix.com\/wp-content\/uploads\/2022\/05\/syspass-admin-pass-master-pass.png?v=1653157686 1829w, https:\/\/kifarunix.com\/wp-content\/uploads\/2022\/05\/syspass-admin-pass-master-pass-768x270.png?v=1653157686 768w, https:\/\/kifarunix.com\/wp-content\/uploads\/2022\/05\/syspass-admin-pass-master-pass-1536x541.png?v=1653157686 1536w\" sizes=\"(max-width: 1829px) 100vw, 1829px\" \/><\/figure>\n\n\n\n<p>Set the sysPass database connection details.<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"1756\" height=\"838\" src=\"https:\/\/kifarunix.com\/wp-content\/uploads\/2022\/05\/syspass-db-configuration.png\" alt=\"\" class=\"wp-image-12869\" title=\"\" srcset=\"https:\/\/kifarunix.com\/wp-content\/uploads\/2022\/05\/syspass-db-configuration.png?v=1653157718 1756w, https:\/\/kifarunix.com\/wp-content\/uploads\/2022\/05\/syspass-db-configuration-768x367.png?v=1653157718 768w, https:\/\/kifarunix.com\/wp-content\/uploads\/2022\/05\/syspass-db-configuration-1536x733.png?v=1653157718 1536w\" sizes=\"(max-width: 1756px) 100vw, 1756px\" \/><\/figure>\n\n\n\n<p>Choose the sysPass language, check the hosting mode box and hit install button to finalize on the setup.<\/p>\n\n\n\n<p>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<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"1392\" height=\"626\" src=\"https:\/\/kifarunix.com\/wp-content\/uploads\/2022\/05\/syspass-login-page.png\" alt=\"\" class=\"wp-image-12870\" title=\"\" srcset=\"https:\/\/kifarunix.com\/wp-content\/uploads\/2022\/05\/syspass-login-page.png?v=1653157855 1392w, https:\/\/kifarunix.com\/wp-content\/uploads\/2022\/05\/syspass-login-page-768x345.png?v=1653157855 768w\" sizes=\"(max-width: 1392px) 100vw, 1392px\" \/><\/figure>\n\n\n\n<p>When you successfully login, you will land on the default sysPass dashboard.<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"1900\" height=\"529\" src=\"https:\/\/kifarunix.com\/wp-content\/uploads\/2022\/05\/syspass-dashboard.png\" alt=\"\" class=\"wp-image-12871\" title=\"\" srcset=\"https:\/\/kifarunix.com\/wp-content\/uploads\/2022\/05\/syspass-dashboard.png?v=1653157927 1900w, https:\/\/kifarunix.com\/wp-content\/uploads\/2022\/05\/syspass-dashboard-768x214.png?v=1653157927 768w, https:\/\/kifarunix.com\/wp-content\/uploads\/2022\/05\/syspass-dashboard-1536x428.png?v=1653157927 1536w\" sizes=\"(max-width: 1900px) 100vw, 1900px\" \/><\/figure>\n\n\n\n<p>Other Tutorials<\/p>\n\n\n\n<p><a href=\"https:\/\/kifarunix.com\/install-passbolt-password-manager-on-debian\/\" target=\"_blank\" rel=\"noreferrer noopener\">Install Passbolt Password Manager on Debian 10\/Debian 11<\/a><\/p>\n\n\n\n<p><a href=\"https:\/\/kifarunix.com\/install-bitwarden-password-manager-on-ubuntu-20-04\/\" target=\"_blank\" rel=\"noreferrer noopener\">Install Bitwarden Password Manager on Ubuntu 20.04<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>In this tutorial, we are going to learn how to install sysPass password manager on Ubuntu 18.04. sysPass is opensource multiuser password manager written in<\/p>\n","protected":false},"author":1,"featured_media":11551,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"rank_math_lock_modified_date":false,"footnotes":""},"categories":[34,121,339,595],"tags":[4574,341,596,4575,67],"class_list":["post-2606","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-security","category-howtos","category-password-managers","category-syspass","tag-install-syspass-password-manager-ubuntu","tag-password-manager","tag-syspas","tag-syspass-password-manager","tag-ubuntu-18-04","generate-columns","tablet-grid-50","mobile-grid-100","grid-parent","grid-50","resize-featured-image"],"_links":{"self":[{"href":"https:\/\/kifarunix.com\/wp-json\/wp\/v2\/posts\/2606"}],"collection":[{"href":"https:\/\/kifarunix.com\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/kifarunix.com\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/kifarunix.com\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/kifarunix.com\/wp-json\/wp\/v2\/comments?post=2606"}],"version-history":[{"count":13,"href":"https:\/\/kifarunix.com\/wp-json\/wp\/v2\/posts\/2606\/revisions"}],"predecessor-version":[{"id":21146,"href":"https:\/\/kifarunix.com\/wp-json\/wp\/v2\/posts\/2606\/revisions\/21146"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/kifarunix.com\/wp-json\/wp\/v2\/media\/11551"}],"wp:attachment":[{"href":"https:\/\/kifarunix.com\/wp-json\/wp\/v2\/media?parent=2606"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/kifarunix.com\/wp-json\/wp\/v2\/categories?post=2606"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/kifarunix.com\/wp-json\/wp\/v2\/tags?post=2606"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}