How to Install FileRun with LAMP Stack on Debian 11
FileRun is a web-based file and sharing application. It can be used as a self-hosted Google Drive alternative. In this article, we are going to learn how to install FileRun on Debian 11. So, let’s get started.
Check FileRun Latest versions here.
Pre-requisites :
-
A system with Debian 11 installed and running.
-
root
access to the system. - LAMP Stack installed and running, for this, you can refer to one of our guides on installing the LAMP Stack (Apache, MariaDB, and PHP).
Once you're all set, we'll proceed with FileRun installation and configuration.
Create Database
Let us begin with creating a Database and a user. We will then grant the required privileges to the user so it can interact with the Database.
mysql -u root
CREATE DATABASE ccconcrete;
CREATE USER 'ccconcrete'@'localhost' IDENTIFIED BY 'UYGVc%$#Erfgt*&^%4';
GRANT ALL PRIVILEGES ON ccconcrete.* TO 'ccconcrete'@'localhost';
FLUSH PRIVILEGES;
quit
The above commands will give complete access to the user
ccconcrete
. We would suggest using a strong and long password.
Configuring Apache vHost
Now, create a new Apache configuration file dev.domainhere.info.conf
for FileRun with the following command.
Replace
dev.domainhere.info
with the domain name of your own for all the below code examples:
vi /etc/apache2/sites-available/dev.domainhere.info.conf
Now, press i
to go to INSERT
mode and type in the following lines of codes in the dev.domainhere.info.conf
file.
<VirtualHost *:80>
ServerName dev.domainhere.info
ServerAlias dev.domainhere.info
ServerAdmin admin@dev.domainhere.info
DocumentRoot /var/www/html/dev.domainhere.info
ErrorLog ${APACHE_LOG_DIR}/dev.domainhere.info_error.log
CustomLog ${APACHE_LOG_DIR}/dev.domainhere.info_access.log combined
<Directory /var/www/html/dev.domainhere.info>
Options FollowSymlinks
AllowOverride All
Require all granted
</Directory>
</VirtualHost>
Now make directory for FileRun files:
mkdir -p /var/www/html/dev.domainhere.info/
Enable SSL and Rewrite:
a2ensite dev.domainhere.info
a2enmod rewrite ssl
Restart Apache:
systemctl restart apache2
Enable http and https ( 80/443 )
To enable http and https connection through the firewall, follow the commands:
ufw allow 80/tcp
ufw allow 443/tcp
Download FileRun
Let's download FileRun:
cd /tmp
sudo wget -O FileRun.zip https://filerun.com/download-latest
sudo unzip FileRun.zip -d /var/www/html/dev.domainhere.info
sudo chown -R www-data:www-data /var/www/html/dev.domainhere.info
sudo chmod -R 755 /var/www/html/dev.domainhere.info
Configuring FileRun
Now open the Domain name from your browser, this will redirect you to configuring the final parts of the FileRun installation.
https://dev.domainhere.info/filerun
Replace the
dev.domainhere.info/filerun
with the actual IP or domain configured on the server.
Input the Database details which was configured earlier. Follow the below steps:
Now you have successfully installed FileRun with LAMP Stack on Debian 11.
CrownCloud - Get a SSD powered KVM VPS at $4.5/month!
Use the code WELCOME
for 10% off!
1 GB RAM / 25 GB SSD / 1 CPU Core / 1 TB Bandwidth per month
Available Locations: LAX | MIA | ATL | FRA | AMS