How to deploy FileRun, an on-premise alternative to Google Drive

3 years ago 479

You oregon your tiny concern mightiness privation to location definite files connected a backstage level akin to Google Drive. You tin bash that with FileRun. Jack Wallen shows you how.

istock-1165075027.jpg

Image: iStock

Google Drive is the de-facto modular for truthful galore radical and adjacent tiny businesses. But if you person either an on-premise information halfway (or conscionable a spare Linux server connected your LAN) oregon adjacent a cloud-hosted service, and you'd similar to person an alternate for definite documents and files, wherefore not marque usage of FileRun?

FileRun is simply a Nextcloud compatible level you tin deploy arsenic a localized Google Drive/Photos/Music. It's extendable, safe, brandable and secure. With FileRun, you tin stock and sync files, entree via WebDAV and adjacent link to it with the Nextcloud mobile app.

I'm going to locomotion you done the process of installing this platform.

SEE: Checklist: Server inventory (TechRepublic Premium)

What you'll need

I'll beryllium demonstrating the installation connected Ubuntu Server 20.04. To marque this enactment you'll request a moving lawsuit of Ubuntu Server and a idiosyncratic with sudo privileges. That's it. Let's get to work.

How to instal the indispensable dependencies

To commencement off, we're going to instal the dependencies. First, we'll get the LAMP server up and running. Log into your server and instal the afloat LAMP stack with:

sudo apt-get instal lamp-server^ -y

When that installation completes, instal the PHP modules with the command:

sudo apt-get instal imagemagick ffmpeg php-imagick php7.4-mysql php7.4-fpm php7.4-common php7.4-gd php7.4-json php7.4-curl php7.4-zip php7.4-xml php7.4-mbstring php7.4-bz2 php7.4-intl -y

Next, we request to instal the ionCube PHP loader. Download the latest mentation with the command:

wget https://downloads.ioncube.com/loader_downloads/ioncube_loaders_lin_x86-64.tar.gz

Extract the record with:

sudo tar -xzf ioncube_loaders_lin_x86-64.tar.gz -C /usr/lib/php

Create a caller ini record for Apache with:

sudo nano /etc/php/7.4/apache2/conf.d/00-ioncube.ini

In that file, paste the following:

zend_extension = /usr/lib/php/ioncube/ioncube_loader_lin_7.4.so

Save and adjacent the file. Create different ini record with:

sudo nano /etc/php/7.4/apache2/conf.d/filerun.ini

In that file, paste the following:

expose_php = Off error_reporting = E_ALL & ~E_NOTICE display_errors = Off display_startup_errors = Off log_errors = On ignore_repeated_errors = Off allow_url_fopen = On allow_url_include = Off variables_order = "GPCS" allow_webdav_methods = On memory_limit = 128M max_execution_time = 300 output_buffering = Off output_handler = "" zlib.output_compression = Off zlib.output_handler = "" safe_mode = Off register_globals = Off magic_quotes_gpc = Off upload_max_filesize = 20M post_max_size = 20M enable_dl = Off disable_functions = "" disable_classes = "" session.save_handler = files session.use_cookies = 1 session.use_only_cookies = 1 session.auto_start = 0 session.cookie_lifetime = 0 session.cookie_httponly = 1 date.timezone = "UTC"

Save and adjacent the file.

Reload Apache with:

sudo systemctl reload apache2

How to make the database

Next, we request to make a caller database. Log successful to the MySQL server with:

sudo mysql

Create the database:

CREATE DATABASE filerun;

Create a caller idiosyncratic with:

CREATE USER filerun@localhost IDENTIFIED BY 'PASSWORD';

Where PASSWORD is simply a secure, unsocial password.

Grant the caller idiosyncratic privileges to the database with:

GRANT ALL PRIVILEGES ON filerun.* TO filerun@localhost;

Flush the privileges and exit with:

FLUSH PRIVILEGES; exit

How to make the Apache configuration

Let's make an Apache configuration record with:

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

In that file, paste the following:

<VirtualHost *:80> ServerName filerun.example.com DocumentRoot /var/www//html/filerun <Directory "/var/www/html/filerun"> Options Indexes FollowSymLinks AllowOverride All Require each granted </Directory> ErrorLog ${APACHE_LOG_DIR}/filerun.error.log CustomLog ${APACHE_LOG_DIR}/filerun.access.log combined </VirtualHost>

Save and adjacent the file.

Enable the rewrite module with:

sudo a2enmod rewrite

Enable the caller virtual big with the command:

sudo a2ensite filerun.conf

Restart Apache with:

sudo systemctl restart apache2

How to download and unpack FileRun

Now, we'll download and unpack FileRun. Back astatine the terminal window, download the latest mentation of FileRun with:

wget -O FileRun.zip https://filerun.com/download-latest

Create a caller directory successful the Apache papers basal with:

sudo mkdir /var/www/html/filerun

Unzip the record into the due directory with:

sudo unzip FileRun.zip -d /var/www/html/filerun

Give the directory the due permissions with:

sudo chown -R www-data:www-data /var/www/filerun/

How to implicit the installation

Open a web browser and constituent it to http://SERVER/filerun (where SERVER is the IP code of the hosting server). You'll beryllium greeted by an easy-to-follow setup wizard. Click Next until you get to the database configuration surface (Figure A).

Figure A

fileruna.jpg

The FileRun database configuration is abbreviated and sweet.

Fill successful the database configuration with:

  • Database name: filerun
  • MySQL user: filerun
  • Password: the password you acceptable successful PASSWORD above

Continue clicking Next and you'll beryllium presented with the admin idiosyncratic credentials. The idiosyncratic volition beryllium superuser, and the password volition beryllium a randomly generated drawstring of characters. Click the last Next and you'll find yourself successful the FileRun login screen. Once authenticated, you tin commencement moving to customize and commencement utilizing FileRun (Figure B).

Figure B

filerunb.jpg

The FileRun main window.

Click connected the cogwheel icon successful the apical close and you'll participate the configuration window, wherever you tin instrumentality attraction of galore admin tasks (Figure C).

Figure C

filerunc.jpg

The FileRun configuration window.

Congrats! You present person a afloat functioning, backstage alternate to Google Drive/Photos/Music. FileRun should service you and your tiny concern well.

Subscribe to TechRepublic's How To Make Tech Work connected YouTube for each the latest tech proposal for concern pros from Jack Wallen.

Open Source Weekly Newsletter

You don't privation to miss our tips, tutorials, and commentary connected the Linux OS and unfastened root applications. Delivered Tuesdays

Sign up today

Also see

Read Entire Article