Installation Guide for Jirafeau on Fedora CoreOS Latest

Jirafeau is a free and open-source file sharing web application that allows users to securely upload and share large files with ease. In this tutorial, we will learn how to install Jirafeau on Fedora CoreOS Latest.

Prerequisites

Before proceeding with the installation, make sure you have the following prerequisites:

Step 1: Update the system

First, log in to your server and run the following command to update the system:

sudo dnf update

Step 2: Install Apache Web Server & PHP

Jirafeau requires a web server and PHP to function properly. We will install Apache web server and PHP using the following command:

sudo dnf install httpd php php-mysqlnd php-mbstring php-xml

Enable and start the Apache web server using the following commands:

sudo systemctl enable httpd.service
sudo systemctl start httpd.service

To confirm whether the installation was successful, open your web browser and navigate to http://<your-server-ip-address>. You should see the Apache web server default page.

Step 3: Install MariaDB database server

Jirafeau uses MariaDB to store its data. Install MariaDB using the following command:

sudo dnf install mariadb-server

Enable and start MariaDB using the following commands:

sudo systemctl enable mariadb
sudo systemctl start mariadb

Secure the MariaDB installation by running the following command and answering the prompts:

sudo mysql_secure_installation

Step 4: Create a database for Jirafeau

Create a new database for Jirafeau and a new user who has access to the database using the following commands:

sudo mysql -u root -p

MariaDB [(none)]> CREATE DATABASE jirafeau;
MariaDB [(none)]> CREATE USER 'jirafeau'@'localhost' IDENTIFIED BY 'password';
MariaDB [(none)]> GRANT ALL PRIVILEGES ON jirafeau.* TO 'jirafeau'@'localhost';
MariaDB [(none)]> FLUSH PRIVILEGES;
MariaDB [(none)]> EXIT;

Replace password with a secure password of your own choice.

Step 5: Install Jirafeau

Download the latest version of Jirafeau using the following command:

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

Change the ownership of the /var/www/html/jirafeau directory to the Apache web server using the following command:

sudo chown -R apache:apache /var/www/html/jirafeau

Step 6: Configure Apache web server

Create a new virtual host configuration file for Jirafeau using the following command:

sudo vi /etc/httpd/conf.d/jirafeau.conf

Add the following lines to the file and save:

<VirtualHost *:80>
    ServerName <your-server-domain-or-ip-address>
    DocumentRoot /var/www/html/jirafeau/www
    ErrorLog /var/log/httpd/jirafeau-error.log
    CustomLog /var/log/httpd/jirafeau-access.log common
    <Directory /var/www/html/jirafeau/www/>
        AllowOverride All
        Order allow,deny
        Allow from all
    </Directory>
</VirtualHost>

This setup assumes that you have registered a domain name or configured a DNS record for your server. If you have not done so, you can use your server's IP address instead of the domain name.

Restart the Apache web server for the changes to take effect:

sudo systemctl restart httpd.service

Step 7: Complete the installation

Open your web browser and navigate to http://<your-server-domain-or-ip-address>. You should see the Jirafeau installation page.

Follow the on-screen instructions to complete the installation. When prompted for the database details, use the following settings:

After the installation is complete, remove the install directory from the Jirafeau directory using the following command:

sudo rm -rf /var/www/html/jirafeau/www/install

Conclusion

In this tutorial, we have learned how to install Jirafeau on Fedora CoreOS Latest. You can now start using Jirafeau to securely upload and share large files with ease. Happy file sharing!

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!