How to Install FileShelter on Linux Mint Latest

FileShelter is an open-source web application that enables you to share large files safely and securely. It uses client-side encryption to protect your files while they are being uploaded, and server-side encryption to store them securely on the server. In this tutorial, we'll guide you through the process of installing FileShelter on Linux Mint Latest.

Prerequisites

Before installing FileShelter, make sure that you have the following prerequisites:

Step 1 - Install Required Packages

First, we need to install some required packages for FileShelter. Open the terminal and run the following command:

sudo apt-get update
sudo apt-get install git php7.2-mbstring php7.2-zip php7.2-mysql php7.2-curl

The commands above will update the package list and install git, mbstring, zip, mysql, and curl PHP extensions.

Step 2 - Clone FileShelter from GitHub

Next, we need to clone the FileShelter repository from GitHub. To do this, run the following command:

cd /var/www/html
sudo git clone https://github.com/epoupon/fileshelter.git

The command above will change the directory to Apache's default web root directory and clone the FileShelter repository.

Step 3 - Configure MySQL Database

Before we can install and run FileShelter, we need to create a database and user for it. To do this, follow the steps below:

  1. Log in to your MySQL server as root:
sudo mysql -u root -p
  1. Create a new database:
CREATE DATABASE fileshelter;
  1. Create a new user and grant privileges to the database:
CREATE USER 'fileshelter'@'localhost' IDENTIFIED BY 'password';
GRANT ALL PRIVILEGES ON fileshelter.* TO 'fileshelter'@'localhost';
FLUSH PRIVILEGES;

Make sure to replace the password above with a strong, secure password.

  1. Exit from the MySQL prompt:
exit

Step 4 - Configure FileShelter

Next, we need to configure FileShelter. Copy the .env.example file to .env:

cp /var/www/html/fileshelter/.env.example /var/www/html/fileshelter/.env

Edit the .env file using your preferred text editor:

sudo nano /var/www/html/fileshelter/.env

Set the necessary parameters for the application:

APP_ENV=production
APP_KEY=base64:3qOF4YKkVNcMc7J1bCE+8J7VQtwdBafJn7fTccT2PDI=
APP_DEBUG=false

DB_CONNECTION=mysql
DB_HOST=127.0.0.1
DB_PORT=3306
DB_DATABASE=fileshelter
DB_USERNAME=fileshelter
DB_PASSWORD=password

SESSION_DRIVER=file
SESSION_LIFETIME=120

Make sure to replace the password above with the one you set earlier for the MySQL user.

Step 5 - Install Dependencies and Run Migrations

Next, we need to install the dependencies for FileShelter and run the database migrations. To do this, run the following commands:

cd /var/www/html/fileshelter
sudo composer install
php artisan key:generate
php artisan migrate

The commands above will change the directory to the FileShelter directory, install the dependencies, create a new application key, and run the database migrations.

Step 6 - Run FileShelter

Finally, we need to start the PHP development server to run FileShelter. To do this, run the following command:

php artisan serve --port=8000

The command above will start the PHP development server on port 8000.

That's it! You can now access FileShelter by opening your web browser and going to http://localhost:8000.

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!