How one can deploy FileRun, an on-premise different to Google Drive

You or your small enterprise would possibly need to home sure recordsdata on a personal platform just like Google Drive. You are able to do that with FileRun. Jack Wallen reveals you ways.

Picture: iStock

Google Drive is the de-facto normal for thus many individuals and even small companies. However when you 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 an alternate for sure paperwork and recordsdata, why not make use of FileRun?

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

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

SEE: Guidelines: Server stock (TechRepublic Premium)

What you may want

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

How one can set up the mandatory 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:

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

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 so on/php/7.4/apache2/conf.d/00-ioncube.ini

In that file, paste the next:

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

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

sudo nano /and so on/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 = "http://www.techrepublic.com/"
zlib.output_compression = Off
zlib.output_handler = "http://www.techrepublic.com/"
safe_mode = Off
register_globals = Off
magic_quotes_gpc = Off
upload_max_filesize = 20M
post_max_size = 20M
enable_dl = Off
disable_functions = "http://www.techrepublic.com/"
disable_classes = "http://www.techrepublic.com/"
session.save_handler = recordsdata
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 one 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 DATABASE filerun;

Create a brand new person with:

CREATE USER [email protected]ost IDENTIFIED BY 'PASSWORD';

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:

FLUSH PRIVILEGES;
exit

How one can create the Apache configuration

Let’s create an Apache configuration file with:

sudo nano /and so on/apache2/sites-available/filerun.conf

In that file, paste the next:

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

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 one 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 FileRun.zip https://filerun.com/download-latest

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

sudo mkdir /var/www/html/filerun

Unzip the file into the right listing with:

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

Give the listing the right permissions with:

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

How one can full the set up

Open an online browser and level it to http://SERVER/filerun (the place SERVER is the IP handle 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

fileruna.jpg

The FileRun database configuration is brief and candy.

Fill within the database configuration with:

  • Database identify: 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 will likely be superuser, and the password will likely 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

filerunb.jpg

Click on on the gear icon within the prime proper and you may enter the configuration window, the place you possibly can care for quite a few admin duties (Determine C).

Determine C

filerunc.jpg

The FileRun configuration window.

Congrats! You now have a completely functioning, personal different to Google Drive/Pictures/Music. FileRun ought to serve you and your small enterprise effectively.

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

Source link