1sudo apt-get install apache2 php
1sudo apt-get install php-mysqlnd php-curl php-curl php-zip php-xml php-mbstring php-imagick
Unload/disable the following unncessary PHP extensions to optimize performance:
1sudo phpdismod readline shmop ftp ffi sysvsem sysvshm sysvmsg sockets gettext tokenizer mysqli
Once all the packages are installed, you will also need to install the IonCube loader on your system.
First, download the IonCube loader with the following command:
1sudo wget https://downloads.ioncube.com/loader_downloads/ioncube_loaders_lin_x86-64.tar.gz
Once the download is completed, extract the downloaded file with the following command:
1sudo tar -xzf ioncube_loaders_lin_x86-64.tar.gz -C /usr/lib/php
Next, create an ioncube configuration file and define the IonCube source path:
1sudo nano /etc/php/7.4/apache2/conf.d/00-ioncube.ini
Save and close the file, then create a PHP configuration file for FileRun:
1sudo nano /etc/php/7.4/apache2/conf.d/filerun.ini
Add the following configuration:
1expose_php = Off
2error_reporting = E_ALL & ~E_NOTICE & ~E_DEPRECATED
3display_errors = Off
4display_startup_errors = Off
5log_errors = On
6ignore_repeated_errors = Off
7allow_url_fopen = On
8allow_url_include = Off
9variables_order = "GPCS"
10allow_webdav_methods = On
11memory_limit = 128M
12max_execution_time = 300
13output_buffering = Off
14output_handler = ""
15zlib.output_compression = Off
16zlib.output_handler = ""
17safe_mode = Off
18register_globals = Off
19magic_quotes_gpc = Off
20upload_max_filesize = 20M
21post_max_size = 20M
22enable_dl = Off
23disable_functions = ""
24disable_classes = ""
25session.save_handler = files
26session.use_cookies = 1
27session.use_only_cookies = 1
28session.auto_start = 0
29session.cookie_lifetime = 0
30session.cookie_httponly = 1
31date.timezone = "UTC"
Save and close the file, then restart the Apache service to apply the changes:
1sudo systemctl restart apache2
There are plenty of guides online for this.
Next, log in to the MariaDB shell with the following command:
1sudo mysql -u root -p
Once you are log in, create a database and user with the following command:
1MariaDB [(none)]> CREATE DATABASE filerun;
2MariaDB [(none)]> CREATE USER 'filerun'@'localhost' IDENTIFIED BY 'password';
Replace password word with the password you wish.
Next, grant all the privileges to the FileRun database with the following command:
1MariaDB [(none)]> GRANT ALL PRIVILEGES ON filerun.* TO 'filerun'@'localhost';
Next, flush the privileges and exit from the MariaDB with the following command:
1MariaDB [(none)]> FLUSH PRIVILEGES;
2MariaDB [(none)]> EXIT;
Next, you will need to create an Apache virtual host configuration file for FileRun. You can create it with the following command:
1sudo nano /etc/apache2/sites-available/filerun.conf
Add the following lines:
1<VirtualHost *:80>
2 ServerName filerun.example.com
3
4 DocumentRoot /var/www/html/filerun
5
6 <Directory "/var/www/html/filerun">
7 Options Indexes FollowSymLinks
8 AllowOverride All
9 Require all granted
10 </Directory>
11
12 ErrorLog ${APACHE_LOG_DIR}/filerun.error.log
13 CustomLog ${APACHE_LOG_DIR}/filerun.access.log combined
14</VirtualHost>
Save and close the file then activate the Apache virtual host and rewrite module with the following command:
1sudo a2ensite filerun.conf
2sudo a2enmod rewrite
Next, restart the Apache service to apply the changes:
1sudo systemctl restart apache2
Download the FileRun installation zip archive from the FileRun client account: https://my.filerun.com
Once the FileRun is downloaded, unzip the downloaded file using the following command:
1sudo unzip FileRun.zip -d /var/www/html/filerun/
For the above, you might need to install the unzip utility:
sudo apt-get install unzip.
Next, set proper permission and ownership with the following command:
1sudo chown -R www-data:www-data /var/www/html/filerun/system/data
Open your server's URL in a browser and complete the web-based FileRun installation.
1sudo apt-get install imagemagick ffmpeg libvips libvips-tools libreoffice