Step 1: Update Your System
First, run the following command to update your system:
sudo dnf update
Step 2: Install Dependencies
Password Pusher requires the following dependencies to be installed:
Run the following command to install all the dependencies:
sudo dnf install git httpd php php-opcache php-mbstring php-pdo php-xml php-gd composer redis redis-php
Step 3: Clone Password Pusher repository
Next, clone the Password Pusher repository using git.
sudo git clone https://github.com/pglombardo/PasswordPusher.git /var/www/html/passwordpusher
Step 4: Install project dependencies
Go to the passwordpusher directory and install the project dependencies with Composer:
cd /var/www/html/passwordpusher
sudo composer install
Step 5: Configure Redis
Edit the Redis configuration file to set the Redis settings. Open the file /etc/redis.conf
:
sudo vi /etc/redis.conf
Find the following configuration and modify as it shown below:
# bind 127.0.0.1
requirepass mypassword <-- Add a password
Save and exit.
Step 6: Configure Password Pusher
Copy the configuration file and edit it:
sudo cp app/config/config.yml.sample app/config/config.yml
sudo vi app/config/config.yml
Make the following modifications:
password_api:
max_age: 90
redis:
host: 127.0.0.1 <-- Replace with your Redis IP/Hostname
port: 6379
password: mypassword <-- Add your Redis password
Save and exit the file.
Step 7: Configure Apache server
Create a new virtual host configuration file:
sudo vi /etc/httpd/conf.d/passwordpusher.conf
Add the following:
<VirtualHost *:80>
DocumentRoot /var/www/html/passwordpusher/web
<Directory /var/www/html/passwordpusher/web>
Require all granted
AllowOverride All
</Directory>
ErrorLog /var/log/httpd/passwordpusher_error.log
CustomLog /var/log/httpd/passwordpusher_access.log combined
</VirtualHost>
Save and exit.
Step 8: Restart Apache and Redis
Reload the configuration and start the Apache and Redis services:
sudo systemctl reload httpd
sudo systemctl enable httpd && sudo systemctl start httpd
sudo systemctl enable redis && sudo systemctl start redis
Step 9: Access the Password Pusher Web UI
Open a web browser and browse to http://localhost/passwordpusher. If you would like to access the web UI remotely or with a different domain name, please modify /etc/httpd/conf.d/passwordpusher.conf.
You have now successfully installed Password Pusher on Fedora Server!
If you want to self-host in an easy, hands free way, need an external IP address, or simply want your data in your own hands, give IPv6.rs a try!
Alternatively, for the best virtual desktop, try Shells!