How to Install FileGator on Arch Linux

FileGator is a free, open-source web-based file manager. It allows users to manage, share, upload and download files from any device with access to the internet. This tutorial will guide you through the process of installing FileGator on Arch Linux.

Step 1 – Update your system

Before installing any new package, it is always recommended to update your system. This can be done by running the following command in your terminal:

sudo pacman -Syu

Step 2 – Install Apache Web Server

FileGator is a web application, therefore, Apache web server must be installed on your system. You can install it by running the following command:

sudo pacman -S apache

After installation, start the Apache service and enable the service to start at boot time by running the following commands:

sudo systemctl start httpd
sudo systemctl enable httpd

Step 3 – Install MariaDB Database Server

FileGator requires a database server to store its data. We will be using MariaDB in this tutorial. You can install it by running the following command:

sudo pacman -S mariadb

After installation, start the MariaDB service:

sudo systemctl start mariadb

Run the following command to secure the MariaDB installation:

sudo mysql_secure_installation

Follow the prompts to set up a secure MariaDB server.

Step 4 – Install PHP

FileGator is developed using PHP, therefore, you need to have PHP installed on your system. You can install PHP and its extensions by running the following command:

sudo pacman -S php php-apache

Step 5 – Download and Configure FileGator

Download the latest version of FileGator from their official website https://filegator.io/.

Extract the downloaded zip file into the /srv/http/ directory:

sudo unzip filegator.zip -d /srv/http/

Change the ownership of the FileGator directory to the Apache user:

cd /srv/http/filegator
sudo chown -R http:http .

Step 6 – Configure Apache

Create a new Apache configuration file for FileGator:

sudo nano /etc/httpd/conf/extra/filegator.conf

Add the following content to the file:

Alias /filegator /srv/http/filegator/public
<Directory /srv/http/filegator/public>
    DirectoryIndex index.php
    AllowOverride All
    Require all granted
</Directory>

Save and close the file.

Edit the main Apache configuration file:

sudo nano /etc/httpd/conf/httpd.conf

Add the following line at the end of the file:

Include conf/extra/filegator.conf

Save and close the file.

Restart the Apache service:

sudo systemctl restart httpd

Step 7 – Configure MariaDB

Log in to the MariaDB console:

sudo mysql -u root -p

Create a new database and user for FileGator:

CREATE DATABASE filegator;
CREATE USER 'filegator'@'localhost' IDENTIFIED BY 'password';
GRANT ALL PRIVILEGES ON filegator.* TO 'filegator'@'localhost';
FLUSH PRIVILEGES;
exit

Replace password with a strong password for the FileGator user and database.

Step 8 – Access FileGator

Open your web browser and go to http://localhost/filegator. You will see the FileGator login page.

Enter the MariaDB database details that we created in step 7 and click on the Install button to complete the installation.

Congratulations! You have successfully installed FileGator on Arch Linux.

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!