Skip to content
Follow
CMS

How to Install FileRun with Apache on Ubuntu 24.04

Richard
Written by
Richard
Jan 21, 2025 Updated Jun 20, 2026 8 min read
How to Install FileRun with Apache on Ubuntu 24.04
How to Install FileRun with Apache on Ubuntu 24.04

You install FileRun with Apache on Ubuntu 24.04 to set up a powerful, self-hosted cloud file management system.

FileRun acts as a web-based file manager, giving you a clean interface to access and share your files from anywhere, much like popular cloud services but entirely on your own server.

This tutorial focuses on integrating FileRun with Apache, a widely-used web server, on the Ubuntu 24.04 operating system. You’ll configure Apache’s virtual hosts specifically for FileRun.

By completing this process, you gain complete control over your file sharing and collaboration environment.

⚡ Quick Answer

Install Apache and PHP, then create a database for FileRun. Configure Apache virtual hosts to point to your FileRun installation directory.

Install Apache HTTP server on Ubuntu

Install the Apache web server on Ubuntu 24.04 by opening your terminal and running the commands: sudo apt update, then sudo apt install apache2. Apache is needed to run FileRun and will start automatically.

To do that, open the Ubuntu terminal and run the commands below to install the Apache web server.

🐧Bash / Shell
sudo apt update
sudo apt install apache2

Once Apache is installed, the commands below can start, stop, and enable the Apache web server to start automatically when your server boots up.

🐧Bash / Shell
sudo systemctl stop apache2
sudo systemctl start apache2
sudo systemctl enable apache2

You can test that the Apache web server is running by opening your web browser and browsing to the server’s localhost or IP address.

http://localhost

Apache2 Default Page displayed on Ubuntu 24.04
Apache2 Default Page displayed on Ubuntu 24.04

When you see the Apache2 Default Page, it means the Apache HTTP server is successfully installed.

Additional help on installing Apache on Ubuntu is in the link below.

How to install Apache on Ubuntu

Install the MariaDB database server on Ubuntu

FileRun needs a database, so we’ll install MariaDB on Ubuntu using your terminal. Run the commands: sudo apt update, then sudo apt install mariadb-server. This sets up the database system FileRun requires.

To install and use the MariaDB database server, use the instructions below.

Open the Ubuntu terminal and run the commands below to install the MariaDB database server.

🐧Bash / Shell
sudo apt update
sudo apt install mariadb-server

Once the MariaDB database server is installed, use the commands below to stop, start, and enable the MariaDB server to start automatically when the server boots.

🐧Bash / Shell
sudo systemctl stop mariadb
sudo systemctl start mariadb
sudo systemctl enable mariadb

Run the following commands to validate and test if the MariaDB database server is installed successfully.

🐧Bash / Shell
sudo mariadb

Once you run the commands above, it will log you onto the MariaDB console and display a message similar to the one below.

💻Code
Welcome to the MariaDB monitor.  Commands end with ; or g.
Your MariaDB connection id is 32
Server version: 10.11.2-MariaDB-1 Ubuntu 23.04

Copyright (c) 2000, 2018, Oracle, MariaDB Corporation Ab and others.

Type 'help;' or 'h' for help. Type 'c' to clear the current input statement.

MariaDB [(none)]> 

The message tells you that the server is installed successfully.

Additional help on installing MariaDB.

Create a FileRun database

After installing MariaDB, create a specific database for FileRun named ‘filerundb’ and a user called ‘filerundbuser’ with full access. This prepares a clean space for FileRun’s data and completes the database setup.

As part of the setup, we will create a filerundb database and a user account called filerundbuser.

Finally, we’ll grant the filerundbuser full access to the filerundb database.

All the database steps above can be done using the commands below:

But first, log on to the MariaDB database server:

🐧Bash / Shell
sudo mariadb

Then run the commands below to complete the steps:

💻Code
CREATE DATABASE filerundb CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci;
CREATE USER filerundbuser@localhost IDENTIFIED BY 'type_your_password_here';
GRANT ALL ON filerundb.* TO filerundbuser@localhost WITH GRANT OPTION;
FLUSH PRIVILEGES;
exit

Ensure to replace ‘type_your_password_here ‘with your password.

Install PHP on Ubuntu Linux

FileRun is built with PHP, so you need to install it on your Ubuntu system along with necessary modules for Apache. Run the command: sudo apt install php libapache2-mod-php php-intl php-mysql php-curl php-cli php-zip php-xml php-gd php-common php-mbstring php-xmlrpc php-bcmath php-json php-sqlite3 php-soap php-z.

Then, run the commands below to install the latest PHP version.

🐧Bash / Shell
sudo apt install php libapache2-mod-php php-intl php-mysql php-curl php-cli php-zip php-xml php-gd php-common php-mbstring php-xmlrpc php-bcmath php-json php-sqlite3 php-soap php-zip php-imagick php-ldap imagemagick ffmpeg

Additional help on installing PHP

How to install PHP on Ubuntu Linux

Next, you’ll want to change some great PHP configuration settings with FileRun. Run the commands below to create a new PHP configuration file for FileRun.

🐧Bash / Shell
sudo nano /etc/php/8.3/apache2/conf.d/filerun.ini

Then, copy the lines below and paste them into the file above. Adjust as you wish.

🐘PHP
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 your changes and exit.

One last module that is required is ionCube. Run the steps below to install it and add it to PHP configurations.

Download the package for Ubuntu 64-bit.

🐧Bash / Shell
sudo wget https://downloads.ioncube.com/loader_downloads/ioncube_loaders_lin_x86-64.tar.gz

Next, run the commands below to extract it into the /usr/lib/php directory.

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

Then, run the commands below to create an ioncube config file.

🐧Bash / Shell
sudo nano /etc/php/8.3/apache2/conf.d/00-ioncube.ini

Paste the following line into the file and save.

🐘PHP
zend_extension = /usr/lib/php/ioncube/ioncube_loader_lin_8.3.so

Save the file and exit.

Download FileRun files

Download the FileRun application files onto your Ubuntu server from the FileRun client area at https://filerun.com/client-area/client-area-orders. You’ll need an account to download the zip archive, as it’s not publicly available.

Download the installation zip archive from the FileRun client area: https://filerun.com/client-area/client-area-orders. There’s no zip archive file available for public download at the moment.

The download is available only for holders of an Enterprise license with valid support service.

After downloading, extract the file to the Apache root directory.

Command Prompt
cd /tmp
sudo unzip FileRun.zip -d /var/www/filerun

Next, run the command below to make the Apache user owner of the directory.

🐧Bash / Shell
sudo chown -R www-data:www-data /var/www/filerun/

Once you have completed all the above steps, continue configuring the Apache web server below to serve the FileRun content.

Run the commands below to create an Apache virtual host file for FileRun.

🐧Bash / Shell
sudo nano /etc/apache2/sites-available/filerun.conf

Then, copy and paste the content block below into the Apache server block.

💻Code
<VirtualHost *:80>
ServerName filerun.example.com
ServerAlias www.filerun.example.com
ServerAdmin admin@example.com
DocumentRoot /var/www/filerun

<Directory /var/www/filerun/>
Options FollowSymlinks
AllowOverride All
Require all granted
</Directory>

ErrorLog ${APACHE_LOG_DIR}/error.log
CustomLog ${APACHE_LOG_DIR}/access.log combined
</VirtualHost>

Save the file.

Then, run the commands below to enable the virtual host and restart the Apache server.

🐧Bash / Shell
sudo a2ensite filerun.conf
sudo a2enmod rewrite
sudo systemctl restart apache2

Setup Let’s Encrypt SSL/TLS for FileRun

Secure your FileRun site with HTTPS using a free SSL certificate from Let’s Encrypt. You can set up a certificate for Apache by following a separate guide on installing Let’s Encrypt SSL certificates for Apache on Ubuntu Linux.

Please read the post below for additional resources on installing and creating Let’s Encrypt SSL certificates for Apache.

How to set up Let’s Encrypt SSL certificate for Apache on Ubuntu Linux

Once you have restarted the Apache web server, open your browser and browse to the server hostname or IP address defined in the Apache server block.

💻Code
http://filerun.example.com

A FileRun setup wizard should appear. Follow the wizard to complete the setup.

Installing FileRun on Ubuntu Linux terminal commands
Installing FileRun on Ubuntu Linux terminal commands

Make sure all requirements are met.

FileRun installation wizard on Ubuntu Linux
FileRun installation wizard on Ubuntu Linux

You will need to know the following items before proceeding. Use the database connection info you created above.

  • Database name
  • Database username
  • Database password
  • Database host

Then, type in the database connection info and click Next

Database setup screen for FileRun on Ubuntu
Database setup screen for FileRun on Ubuntu

Take notes of the super admin account password.

Superadmin account creation for FileRun on Ubuntu
Superadmin account creation for FileRun on Ubuntu

Log in and begin setting up your environment.

FileRun dashboard interface on Ubuntu Linux
FileRun dashboard interface on Ubuntu Linux

FileRun should be installed and ready to use.

That should do it!

Conclusion:

In summary, installing FileRun with Apache on Ubuntu provides a robust file management and collaboration solution. Here are the key points to consider:

  • User-Friendly Interface: FileRun offers an intuitive interface that enhances user experience.
  • Collaboration Features: Built-in tools facilitate real-time collaboration and file sharing.
  • Integration Capabilities: Easily integrates with third-party applications like Google Docs.
  • Flexible Setup: Apache and MariaDB enable a secure and customizable environment.
  • SSL/TLS Security: Implementing Let’s Encrypt ensures secure access to your FileRun installation.
  • Comprehensive Documentation: Plenty of resources and guides are available for installation and configuration.

With these advantages, FileRun is an excellent choice for individuals and organizations seeking efficient file management solutions.

Does Apache run on Ubuntu?

There are several ways to start the Apache web server on Ubuntu, depending on whether you have a systemd-based system or a SysVinit-based system. A systemd-based system uses systemd as its init system, providing service management and parallelization.

Was this guide helpful?

Was this helpful?
Richard

About the Author

Richard

Tech Writer, IT Professional

Richard, a writer for Geek Rewind, is a tech enthusiast who loves breaking down complex IT topics into simple, easy-to-understand ideas. With years of hands-on experience in system administration and enterprise IT operations, he’s developed a knack for offering practical tips and solutions. Richard aims to make technology more accessible and actionable. He's deeply committed to the Geek Rewind community, always ready to answer questions and engage in discussions.

📚 Related Tutorials

How to View and Stop Sharing OneDrive Files
Windows How to View and Stop Sharing OneDrive Files
How to Start, Stop, and Restart Services in Windows 11
Windows How to Start, Stop, and Restart Services in Windows 11

No comments yet — be the first to share your thoughts!

Leave a Comment

Your email address will not be published. Required fields are marked *