FileRun is a self-hosted web-based file management system that allows you to securely access, organize, and share your files. In this comprehensive guide, we will walk you through the process of installing FileRun on an Ubuntu 22.04 system.
Step 1: Update System Packages
Before you begin, ensure that your system is up-to-date by running the following commands:
sudo apt update
sudo apt upgrade
Step 2: Install LAMP Stack
FileRun requires a LAMP (Linux, Apache, MySQL, PHP) stack to function. Install Apache, MySQL, PHP, and other necessary packages:
sudo apt install apache2 mysql-server php libapache2-mod-php php-mysql php-curl php-json php-mbstring php-gd php-zip php-imagick
Step 3: Configure MySQL
Secure your MySQL installation and create a database and user for FileRun:
sudo mysql_secure_installation
sudo mysql -u root -p
CREATE DATABASE filerun_db;
CREATE USER 'filerun_user'@'localhost' IDENTIFIED BY 'your_password';
GRANT ALL PRIVILEGES ON filerun_db.* TO 'filerun_user'@'localhost';
FLUSH PRIVILEGES;
EXIT;
Step 4: Download and Extract FileRun
Navigate to the Apache document root and download the latest version of FileRun:
cd /var/www/html
sudo wget https://filerun.com/download-latest
sudo unzip download-latest -d filerun
sudo chown -R www-data:www-data filerun
Step 5: Configure Apache
Create a new virtual host configuration file for FileRun:
sudo nano /etc/apache2/sites-available/filerun.conf
Add the following configuration:
<VirtualHost *:80>
ServerAdmin [email protected]
DocumentRoot /var/www/html/filerun
ServerName your_domain.com
<Directory /var/www/html/filerun>
Options FollowSymLinks
AllowOverride All
Require all granted
</Directory>
ErrorLog ${APACHE_LOG_DIR}/error.log
CustomLog ${APACHE_LOG_DIR}/access.log combined
</VirtualHost>
Enable the virtual host and Apache modules:
sudo a2ensite filerun.conf
sudo a2enmod rewrite
sudo systemctl restart apache2
Step 6: Finish Installation
Open a web browser and navigate to http://your_domain.com/system/install
. Follow the on-screen instructions to complete the installation. Provide the MySQL database details you configured earlier.
Step 7: Secure Your Installation
For security, it’s recommended to move the system/data
folder outside of the web root:
sudo mv /var/www/html/filerun/system/data /opt/filerun_data
Update the FileRun configuration to reflect the new data folder location:
sudo nano /var/www/html/filerun/system/data/config.php
Change the following line:
'path' => '/var/www/html/filerun/system/data'
To:
'path' => '/opt/filerun_data'
Step 8: Finalize Setup
Once the installation is complete, log in to your FileRun instance using the admin credentials you created during the installation process. From here, you can configure user accounts, set up folders, and start utilizing the powerful file management features of FileRun.
Congratulations! You’ve successfully installed FileRun on your Ubuntu 22.04 system, providing a secure and efficient platform for managing and sharing your files.