Jirafeau is a free and open-source file sharing web application that allows you to upload and share files securely online. In this tutorial, we will explain how to install Jirafeau on FreeBSD.
Before you begin with the installation, you need to make sure that your FreeBSD system is updated:
sudo pkg update
sudo pkg upgrade
Next, you need to install the required dependencies for Jirafeau. Run the following command to install them:
sudo pkg install nginx php74-fpm php74-tokenizer php74-mbstring php74-opcache php74-curl php74-openssl php74-fileinfo php74-json php74-zlib
To configure Nginx, create a new file /usr/local/etc/nginx/conf.d/jirafeau.conf
with the following content:
server {
listen 80;
root /usr/local/www/jirafeau;
index index.php;
server_name jirafeau.example.com;
client_max_body_size 100M;
access_log /var/log/nginx/jirafeau.access.log;
error_log /var/log/nginx/jirafeau.error.log;
location / {
try_files $uri $uri/ /index.php?$args;
}
location ~ .php$ {
try_files $uri /index.php =404;
fastcgi_pass unix:/var/run/php-fpm.sock;
fastcgi_index index.php;
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
include fastcgi_params;
}
}
Replace jirafeau.example.com
with your domain name or IP address.
Next, create a document root directory for Jirafeau:
sudo mkdir -p /usr/local/www/jirafeau
sudo chown -R www:www /usr/local/www/jirafeau
Clone the Jirafeau Git repository:
git clone https://gitlab.com/mojo42/Jirafeau.git /usr/local/www/jirafeau
Then, navigate to the Jirafeau directory:
cd /usr/local/www/jirafeau
And finally, install the required packages:
composer install --no-dev
Copy the sample configuration file:
cp jirafeau.default.php jirafeau.php
Then, open the jirafeau.php
file and edit the following lines:
$config['urlprefix'] = '//jirafeau.example.com';
$config['urlmode'] = true;
Make sure to replace jirafeau.example.com
with the domain name or IP address you are using for your Jirafeau installation.
Finally, start the Nginx and PHP-FPM services:
sudo service nginx start
sudo service php-fpm start
You can now access Jirafeau by navigating to your domain name or IP address in your web browser:
http://jirafeau.example.com
If everything is configured correctly, you should see the Jirafeau file sharing interface.
In this tutorial, we explained how to install Jirafeau on FreeBSD. Now you can use Jirafeau to upload and share files securely online.
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!