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

You or your small enterprise would possibly need to home sure information on a non-public platform much like Google Drive. You are able to do that with FileRun. Jack Wallen exhibits you the way.


Picture: iStock

Google Drive is the de-facto commonplace for thus many individuals and even small companies. However you probably have both an on-premise knowledge heart (or only a spare Linux server in your LAN) or perhaps a cloud-hosted service, and also you’d prefer to have another for sure paperwork and information, why not make use of FileRun?

FileRun is a Nextcloud appropriate platform you may deploy as a localized Google Drive/Pictures/Music. It is extendable, protected, brandable and safe. With FileRun, you may share and sync information, entry by way of WebDAV and even connect with it with the Nextcloud cell app.

I will stroll you thru the method of putting in this platform.

SEE: Guidelines: Server stock (TechRepublic Premium)

What you will want

I will be demonstrating the set up on Ubuntu Server 20.04. To make this work you will want a operating occasion of Ubuntu Server and a person with sudo privileges. That is it. Let’s get to work.

How you can set up the required dependencies

To start out off, we’ll set up the dependencies. First, we’ll get the LAMP server up and operating. Log into your server and set up the total LAMP stack with:

sudo apt-get set up lamp-server^ -y

When that set up completes, set up the PHP modules with the command:

sudo apt-get set up 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

Subsequent, we have to set up the ionCube PHP loader. Obtain the newest model with the command:


Extract the file with:

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

Create a brand new ini file for Apache with:

sudo nano /and many others/php/7.4/apache2/conf.d/00-ioncube.ini

In that file, paste the next:

zend_extension = /usr/lib/php/ioncube/

Save and shut the file. Create one other ini file with:

sudo nano /and many others/php/7.4/apache2/conf.d/filerun.ini

In that file, paste the next:

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 = information
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 shut the file.

Reload Apache with:

sudo systemctl reload apache2

How you can create the database

Subsequent, we have to create a brand new database. Log in to the MySQL server with:

sudo mysql

Create the database:


Create a brand new person with:


The place PASSWORD is a safe, distinctive password.

Grant the brand new person privileges to the database with:

GRANT ALL PRIVILEGES ON filerun.* TO [email protected];

Flush the privileges and exit with:


How you can create the Apache configuration

Let’s create an Apache configuration file with:

sudo nano /and many others/apache2/sites-available/filerun.conf

In that file, paste the next:

<VirtualHost *:80>
        DocumentRoot /var/www//html/filerun
        <Listing "/var/www/html/filerun">
                Choices Indexes FollowSymLinks
                AllowOverride All
                Require all granted
        ErrorLog ${APACHE_LOG_DIR}/filerun.error.log
        CustomLog ${APACHE_LOG_DIR}/filerun.entry.log mixed

Save and shut the file.

Allow the rewrite module with:

sudo a2enmod rewrite

Allow the brand new digital host with the command:

sudo a2ensite filerun.conf

Restart Apache with:

sudo systemctl restart apache2

How you can obtain and unpack FileRun

Now, we’ll obtain and unpack FileRun. Again on the terminal window, obtain the newest model of FileRun with:

wget -O

Create a brand new listing within the Apache doc root with:

sudo mkdir /var/www/html/filerun

Unzip the file into the correct listing with:

sudo unzip -d /var/www/html/filerun

Give the listing the correct permissions with:

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

How you can full the set up

Open an internet browser and level it to http://SERVER/filerun (the place SERVER is the IP tackle of the internet hosting server). You will be greeted by an easy-to-follow setup wizard. Click on Subsequent till you get to the database configuration display (Determine A).

Determine A


The FileRun database configuration is brief and candy.

Fill within the database configuration with:

  • Database title: filerun
  • MySQL person: filerun
  • Password: the password you set in PASSWORD above

Proceed clicking Subsequent and you will be offered with the admin person credentials. The person might be superuser, and the password might be a randomly generated string of characters. Click on the ultimate Subsequent and you will find your self within the FileRun login display. As soon as authenticated, you can begin working to customise and begin utilizing FileRun (Determine B).

Determine B


Click on on the gear icon within the high proper and you will enter the configuration window, the place you may deal with quite a few admin duties (Determine C).

Determine C


The FileRun configuration window.

Congrats! You now have a completely functioning, non-public various to Google Drive/Pictures/Music. FileRun ought to serve you and your small enterprise nicely.

Subscribe to TechRepublic’s How To Make Tech Work on YouTube for all the newest tech recommendation for enterprise execs from Jack Wallen.

Additionally see

Recent Articles


Related Stories

Leave A Reply

Please enter your comment!
Please enter your name here

Stay on op - Ge the daily news in your inbox