{"id":12881,"date":"2022-05-22T08:30:03","date_gmt":"2022-05-22T05:30:03","guid":{"rendered":"https:\/\/kifarunix.com\/?p=12881"},"modified":"2024-03-09T12:54:19","modified_gmt":"2024-03-09T09:54:19","slug":"install-syspass-password-manager-on-rocky-linux","status":"publish","type":"post","link":"https:\/\/kifarunix.com\/install-syspass-password-manager-on-rocky-linux\/","title":{"rendered":"Install sysPass Password Manager on Rocky Linux"},"content":{"rendered":"\n
In this tutorial, we are going to learn how to install sysPass password manager on Rocky Linux. 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 Rocky Linux in our previous guide. Check the link below;<\/p>\n\n\n\n Install LAMP Stack on Rocky Linux<\/a><\/p>\n\n\n\n Ensure you install PHP 7.4<\/a> on Rocky Linux. This is due to some compatibility issues between PHP 8 and Composer.<\/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 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. 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 Be sure to open the web server ports on firewall.<\/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 Rocky Linux. 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 Passbolt Password Manager on Rocky Linux 8<\/a><\/p>\n\n\n\nInstall sysPass Password Manager on Rocky Linux<\/h2>\n\n\n\n
\n
\n
dnf 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-mysqlnd git<\/code><\/pre>\n\n\n\n
mysqld -V<\/code><\/pre>\n\n\n\n
mysql Ver 8.0.26 for Linux on x86_64 (Source distribution)<\/code><\/pre>\n\n\n\n
php -v<\/code><\/pre>\n\n\n\n
PHP 7.4.19 (cli) (built: May 4 2021 11:06:37) ( NTS )\nCopyright (c) The PHP Group\nZend Engine v3.4.0, Copyright (c) Zend Technologies\n with Zend OPcache v7.4.19, 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 apache: -R \/var\/www\/html\/syspass\nchmod 750 \/var\/www\/html\/syspass\/app\/{config,backup}<\/code><\/pre>\n\n\n\n
\n
systemctl restart httpd mysqld<\/code><\/pre>\n\n\n\n
\n
http://<syspass-server>\/syspass<\/code><\/pre>\n\n\n\n
firewall-cmd --add-port={80,443}\/tcp --permanent\nfirewall-cmd --reload<\/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