How to Install Jirafeau on POP! OS Latest

Jirafeau is an open-source web application that allows users to securely upload and share files. This tutorial will guide you on how to install Jirafeau on POP! OS Latest.

Prerequisites

Before starting with the installation process, make sure you have the following:

Step 1: Install Apache Web Server and Required Dependencies

To install the Apache web server and required dependencies, open a terminal and run the following command:

sudo apt install apache2 php php-gd php-mbstring php-curl php-xml php-mysql libapache2-mod-php mariadb-server mariadb-client curl git -y

Step 2: Clone the Jirafeau Repository

To clone the Jirafeau repository, run the following command in your terminal:

sudo git clone https://gitlab.com/mojo42/Jirafeau.git /var/www/html/jirafeau

Step 3: Create a Database for Jirafeau

To create a database for Jirafeau, run the following command in your terminal:

sudo mysql -u root -p

Enter your MySQL root password when prompted. Then, create a new database with a name you prefer, for example, jirafeau_database by running the following command:

CREATE DATABASE jirafeau_database;

Next, create a new MySQL user with a name and password you prefer, for example, jirafeau_user by running the following command:

CREATE USER 'jirafeau_user'@'localhost' IDENTIFIED BY 'password';

Grant all privileges on the Jirafeau database to the MySQL user by running the following command:

GRANT ALL ON jirafeau_database.* TO 'jirafeau_user'@'localhost';

Finally, flush the privileges by running:

FLUSH PRIVILEGES;

Step 4: Define Jirafeau Configuration

To define the Jirafeau configuration, copy the sample configuration file by running the following command:

sudo cp /var/www/html/jirafeau/config.inc.php.sample /var/www/html/jirafeau/config.inc.php

Open the configuration file in your text editor, for example, nano:

sudo nano /var/www/html/jirafeau/config.inc.php

Update the following parameters with your own configuration:

define('JI_URL_REWRITING', true);
define('JI_SECRET_KEY', 'your-secret-key');
define('JI_MYSQL_HOST', 'localhost');
define('JI_MYSQL_USER', 'jirafeau_user');
define('JI_MYSQL_PASSWORD', 'password');
define('JI_MYSQL_DBNAME', 'jirafeau_database');
define('JI_AUTO_DELETE_DELAY', '100');

Save and close the file by pressing "Ctrl+O", then "Ctrl+X".

Step 5: Configure Apache Web Server

To configure Apache web server for Jirafeau, create a new virtual host configuration file by running the following command:

sudo nano /etc/apache2/sites-available/jirafeau.conf

Add the following contents to the file:

<VirtualHost *:80>
        ServerName your-domain-name-or-ip
        ServerAlias www.your-domain-name-or-ip
        DocumentRoot /var/www/html/jirafeau/
        <Directory /var/www/html/jirafeau/>
                Options FollowSymLinks
                AllowOverride All
                Require all granted
        </Directory>
        ErrorLog /var/log/apache2/jirafeau_error.log
        CustomLog /var/log/apache2/jirafeau_access.log combined
</VirtualHost>

Replace your-domain-name-or-ip with your actual domain name or IP address. Save and close the file by pressing "Ctrl+O", then "Ctrl+X".

Activate the virtual host configuration by running the following command:

sudo a2ensite jirafeau.conf

Then, enable the Apache rewrite module by running the following command:

sudo a2enmod rewrite

Finally, restart the Apache web server to apply the changes by running the following command:

sudo systemctl restart apache2

Step 6: Verify Jirafeau Installation

Open your web browser and go to https://your-domain-name-or-ip. You should see the Jirafeau home page.

That's it! You have successfully installed Jirafeau on POP! OS Latest.

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!