How to Install FileGator on Linux Mint

FileGator is a powerful web-based file manager that can help you organize and manage your files easily. Installing FileGator on Linux Mint is a straightforward process that requires a few basic steps.

Prerequisites

Before starting the installation process, make sure that your Linux Mint system meets the following prerequisites:

Step 1: Download FileGator

To download FileGator, navigate to the official website: https://filegator.io/. Click on the “Download” button and save the file to a safe location on your system.

Alternatively, you can download FileGator using the wget command:

wget https://github.com/filegator/filegator/releases/latest/download/filegator.zip -O filegator.zip

Step 2: Install Dependencies

Before proceeding with the installation of FileGator, you need to install a few dependencies required by the application. To install all necessary packages, run the following command:

sudo apt-get install -y apache2 php7.4 php7.4-mysql php7.4-gd php7.4-json php7.4-curl mysql-server

Step 3: Create Database

Once you have installed the required packages, create a new database for FileGator. To create a new database, run the following commands:

sudo mysql -u root -p

This will open up the MySQL shell. Next, create a new database by running the following command:

CREATE DATABASE filegatordb;

Now create a new user and grant them all privileges on the newly created database:

CREATE USER 'filegatoruser'@'localhost' IDENTIFIED BY 'password123';
GRANT ALL PRIVILEGES ON filegatordb.* TO 'filegatoruser'@'localhost';
FLUSH PRIVILEGES;
EXIT;

Make sure to replace 'password123' with a strong password for the user.

Step 4: Extract and Install FileGator

To install FileGator, extract the downloaded ZIP file into the Apache web server’s document root directory:

sudo unzip -q filegator.zip -d /var/www/html/

Now, rename the extracted folder:

sudo mv /var/www/html/filegator-release* /var/www/html/filegator

Make the Apache web server's user the owner of the FileGator directory:

sudo chown -R www-data:www-data /var/www/html/filegator/

Step 5: Set up Configuration

Next, set up the database configuration file. Copy the configuration file provided with FileGator:

sudo cp /var/www/html/filegator/system/config.sample.php /var/www/html/filegator/system/config.php

Then, edit the configuration file:

sudo nano /var/www/html/filegator/system/config.php

Modify the following settings:

define('FG_DB_HOST', 'localhost');
define('FG_DB_NAME', 'filegatordb');
define('FG_DB_USER', 'filegatoruser');
define('FG_DB_PASS', 'password123');
define('FG_ADMIN_USER', 'admin');
define('FG_ADMIN_PASS', 'admin123');

Save and close the file.

Step 6: Set up Permissions

To ensure FileGator works properly, make sure the directory is writable by the web server:

sudo chmod -R 755 /var/www/html/filegator/
sudo chmod -R 777 /var/www/html/filegator/logs/

Step 7: Access FileGator

Finally, open a web browser and navigate to http://localhost/filegator. FileGator’s install wizard should appear.

Follow the on-screen instructions to set up FileGator. Once complete, you can log in as an administrator using the username and password you specified in the configuration file.

Congratulations! You have successfully installed FileGator on Linux Mint.

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!