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.
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^ -yWhen 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 -yNext, 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.gzExtract the record with:
sudo tar -xzf ioncube_loaders_lin_x86-64.tar.gz -C /usr/lib/phpCreate a caller ini record for Apache with:
sudo nano /etc/php/7.4/apache2/conf.d/00-ioncube.iniIn that file, paste the following:
zend_extension = /usr/lib/php/ioncube/ioncube_loader_lin_7.4.soSave and adjacent the file. Create different ini record with:
sudo nano /etc/php/7.4/apache2/conf.d/filerun.iniIn 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 apache2How to make the database
Next, we request to make a caller database. Log successful to the MySQL server with:
sudo mysqlCreate 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; exitHow to make the Apache configuration
Let's make an Apache configuration record with:
sudo nano /etc/apache2/sites-available/filerun.confIn 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 rewriteEnable the caller virtual big with the command:
sudo a2ensite filerun.confRestart Apache with:
sudo systemctl restart apache2How 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-latestCreate a caller directory successful the Apache papers basal with:
sudo mkdir /var/www/html/filerunUnzip the record into the due directory with:
sudo unzip FileRun.zip -d /var/www/html/filerunGive 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
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
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
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 todayAlso see
- The champion browser for Linux, Windows and Mac isn't Google Chrome successful 2021 (TechRepublic)
- The champion chat bundle for Linux, macOS and Windows isn't Slack (TechRepublic)
- How to go a developer: A cheat sheet (TechRepublic)
- Kubernetes: A cheat expanse (free PDF) (TechRepublic)
- Microsoft Linux is not what you thought (or hoped) it would be (TechRepublic)
- A usher to The Open Source Index and GitHub projects checklist (TechRepublic Premium)
- Linux, Android, and much unfastened root tech coverage (TechRepublic connected Flipboard)