Installazione software · 9 min read · Dec 18, 2025
Come installare FileRun su Ubuntu 22.04

FileRun è un’applicazione open-source e basata sul web per la condivisione di file per sistemi operativi basati su Linux. È molto simile a Google Drive, iCloud e DropBox e consente agli utenti di condividere e sincronizzare file su Internet. Può essere accessibile tramite app mobile, WebDAV e browser web. Ti consente di ospitare la tua soluzione di condivisione file nel cloud e accedere a tutti i tuoi file ovunque tramite un’archiviazione cloud sicura.
Questo post mostrerà come installare FileRun con Apache e Let’s Encrypt SSL su Ubuntu 22.04.
Prerequisiti
- Un server che esegue Ubuntu 22.04.
- Un nome di dominio valido puntato all’IP del tuo server.
- Una password di root configurata sul server.
Installa Apache, MariaDB e PHP
FileRun è scritto in PHP e utilizza MariaDB come backend del database. Quindi, dovrai installare Apache, MariaDB, PHP e altri pacchetti sul tuo server. Prima di tutto, installa il pacchetto Apache e MariaDB utilizzando il seguente comando:
apt-get install apache2 mariadb-server mariadb-clientDopo aver installato entrambi i pacchetti, dovrai installare la versione PHP php7.2-php7.4 sul tuo server. Tuttavia, Ubuntu 22.04 viene fornito con la versione PHP 8.1 nel repository predefinito. Quindi dovrai aggiungere il repository PHP Ondrej sul tuo server.
Prima di tutto, installa tutte le dipendenze richieste utilizzando il seguente comando:
apt install software-properties-common ca-certificates lsb-release apt-transport-https -ySuccessivamente, aggiungi il repository PHP utilizzando il seguente comando:
add-apt-repository ppa:ondrej/phpSuccessivamente, aggiorna la cache del repository e installa PHP con altre estensioni richieste utilizzando il seguente comando:
apt update
apt install php7.4 libapache2-mod-php7.4 imagemagick ffmpeg php7.4-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 unzip -yUna volta installati tutti i pacchetti, dovrai anche installare il caricatore IonCube sul tuo sistema.
Prima di tutto, scarica il caricatore IonCube con il seguente comando:
wget https://downloads.ioncube.com/loader_downloads/ioncube_loaders_lin_x86-64.tar.gzSuccessivamente, estrai il file scaricato con il seguente comando:
tar -xzf ioncube_loaders_lin_x86-64.tar.gz -C /usr/lib/phpSuccessivamente, crea un file di configurazione ioncube e definisci il percorso della sorgente IonCube:
nano /etc/php/7.4/apache2/conf.d/00-ioncube.iniAggiungi la seguente riga:
zend_extension = /usr/lib/php/ioncube/ioncube_loader_lin_7.4.soSalva e chiudi il file, quindi crea un file di configurazione PHP per FileRun:
nano /etc/php/7.4/apache2/conf.d/filerun.iniAggiungi le seguenti impostazioni:
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"Salva e chiudi il file, quindi riavvia il servizio Apache per applicare le modifiche:
systemctl reload apache2Crea un database per FileRun
Prima di tutto, metti in sicurezza l’installazione di MariaDB e imposta la password di root utilizzando il seguente comando:
mysql_secure_installationRispondi a tutte le domande come mostrato di seguito:
Enter current password for root (enter for none): PRESS ENTER
Set root password? [Y/n] Y
New password:
Re-enter new password:
Remove anonymous users? [Y/n] Y
Disallow root login remotely? [Y/n] Y
Remove test database and access to it? [Y/n] Y
Reload privilege tables now? [Y/n] Y Successivamente, accedi alla shell di MariaDB con il seguente comando:
mysql -u root -pUna volta effettuato l’accesso, crea un database e un utente con il seguente comando:
MariaDB [(none)]> CREATE DATABASE filerun;
MariaDB [(none)]> CREATE USER 'filerun'@'localhost' IDENTIFIED BY 'password';Successivamente, concedi tutti i privilegi al database FileRun con il seguente comando:
MariaDB [(none)]> GRANT ALL PRIVILEGES ON filerun.* TO 'filerun'@'localhost';Successivamente, svuota i privilegi ed esci da MariaDB con il seguente comando:
MariaDB [(none)]> FLUSH PRIVILEGES;
MariaDB [(none)]> EXIT;Una volta terminato, puoi procedere al passaggio successivo.
Scarica FileRun
Prima di tutto, scarica l’ultima versione di FileRun dal loro sito ufficiale utilizzando il seguente comando:
wget -O FileRun.zip https://filerun.com/download-latestUna volta scaricato FileRun, estrai il file scaricato utilizzando il seguente comando:
unzip FileRun.zip -d /var/www/html/filerun/Successivamente, imposta i permessi e la proprietà corretti con il seguente comando:
chown -R www-data:www-data /var/www/html/filerun
chmod -R 755 /var/www/html/filerunUna volta terminato, puoi procedere al passaggio successivo.
Crea un host virtuale Apache per FileRun
Successivamente, dovrai creare un file di configurazione dell’host virtuale Apache per FileRun. Puoi crearlo con il seguente comando:
nano /etc/apache2/sites-available/filerun.confAggiungi le seguenti righe:
ServerName filerun.example.com
DocumentRoot /var/www/html/filerun
Options Indexes FollowSymLinks
AllowOverride All
Require all granted
ErrorLog ${APACHE_LOG_DIR}/filerun.error.log
CustomLog ${APACHE_LOG_DIR}/filerun.access.log combined
Salva e chiudi il file, quindi attiva l’host virtuale Apache e abilita il modulo di riscrittura Apache con il seguente comando:
a2ensite filerun.conf
a2enmod rewriteSuccessivamente, riavvia il servizio Apache per applicare le modifiche:
systemctl restart apache2Puoi anche controllare lo stato di Apache con il seguente comando:
systemctl status apache2Dovresti vedere il seguente output:
? apache2.service - The Apache HTTP Server
Loaded: loaded (/lib/systemd/system/apache2.service; enabled; vendor preset: enabled)
Active: active (running) since Sat 2022-08-06 09:26:00 UTC; 7s ago
Docs: https://httpd.apache.org/docs/2.4/
Process: 21189 ExecStart=/usr/sbin/apachectl start (code=exited, status=0/SUCCESS)
Main PID: 21193 (apache2)
Tasks: 6 (limit: 2242)
Memory: 14.6M
CPU: 112ms
CGroup: /system.slice/apache2.service
??21193 /usr/sbin/apache2 -k start
??21194 /usr/sbin/apache2 -k start
??21195 /usr/sbin/apache2 -k start
??21196 /usr/sbin/apache2 -k start
??21197 /usr/sbin/apache2 -k start
??21198 /usr/sbin/apache2 -k start
Aug 06 09:26:00 ubuntu2204 systemd[1]: Starting The Apache HTTP Server...Una volta terminato, puoi procedere al passaggio successivo.
Accedi all’interfaccia web di FileRun
Ora, apri il tuo browser web e accedi all’interfaccia web di FileRun utilizzando l’URL http://filerun.example.com. Sarai reindirizzato alla seguente pagina:

Clicca sul pulsante Avanti. dovresti vedere la pagina di controllo dei requisiti del server:

Clicca sul pulsante Avanti. Dovresti vedere la pagina di configurazione del database:

Clicca sul pulsante Avanti. Una volta completata l’installazione, dovresti vedere la seguente pagina:

Clicca sul pulsante Avanti. Dovresti vedere la pagina di accesso a FileRun:

Fornisci il tuo nome utente admin, password e clicca sul pulsante Accedi. Dovresti vedere il dashboard di FileRun nella seguente pagina:

Sicurezza di FileRun con Let’s Encrypt SSL
È anche consigliato mettere in sicurezza il tuo sito web con Let’s Encrypt SSL. Prima di tutto, dovrai installare il client Certbot sul tuo server. Puoi installarlo con il seguente comando:
apt-get install python3-certbot-apache -yUna volta installato Certbot, esegui il seguente comando per mettere in sicurezza il tuo sito web con Let’s Encrypt SSL:
certbot --apache -d filerun.example.comTi verrà chiesto di fornire la tua email e accettare i termini di servizio come mostrato di seguito:
Saving debug log to /var/log/letsencrypt/letsencrypt.log
Plugins selected: Authenticator standalone, Installer None
Enter email address (used for urgent renewal and security notices) (Enter 'c' to
cancel): [email protected]
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
Please read the Terms of Service at
https://letsencrypt.org/documents/LE-SA-v1.2-November-15-2017.pdf. You must
agree in order to register with the ACME server at
https://acme-v02.api.letsencrypt.org/directory
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
(A)gree/(C)ancel: A
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
Would you be willing to share your email address with the Electronic Frontier
Foundation, a founding partner of the Let's Encrypt project and the non-profit
organization that develops Certbot? We'd like to send you email about our work
encrypting the web, EFF news, campaigns, and ways to support digital freedom.
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
(Y)es/(N)o: Y
Plugins selected: Authenticator apache, Installer apache
Obtaining a new certificate
Performing the following challenges:
http-01 challenge for filerun.example.com
Enabled Apache rewrite module
Waiting for verification...
Cleaning up challenges
Created an SSL vhost at /etc/apache2/sites-available/filerun-le-ssl.conf
Enabled Apache socache_shmcb module
Enabled Apache ssl module
Deploying Certificate to VirtualHost /etc/apache2/sites-available/filerun-le-ssl.conf
Enabling available site: /etc/apache2/sites-available/filerun-le-ssl.conf
Next, select whether or not to redirect HTTP traffic to HTTPS as shown below:Please choose whether or not to redirect HTTP traffic to HTTPS, removing HTTP access.
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
1: No redirect - Make no further changes to the webserver configuration.
2: Redirect - Make all requests redirect to secure HTTPS access. Choose this for
new sites, or if you're confident your site works on HTTPS. You can undo this
change by editing your web server's configuration.
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
Select the appropriate number [1-2] then [enter] (press 'c' to cancel): 2Digita 2 e premi Invio per installare il Let’s Encrypt SSL per il tuo sito web:
Enabled Apache rewrite module
Redirecting vhost in /etc/apache2/sites-enabled/filerun.conf to ssl vhost in /etc/apache2/sites-available/filerun-le-ssl.conf
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
Congratulations! You have successfully enabled https://filerun.example.com
You should test your configuration at:
https://www.ssllabs.com/ssltest/analyze.html?d=filerun.example.com
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
IMPORTANT NOTES:
- Congratulations! Your certificate and chain have been saved at:
/etc/letsencrypt/live/filerun.example.com/fullchain.pem
Your key file has been saved at:
/etc/letsencrypt/live/filerun.example.com/privkey.pem
Your cert will expire on 2022-4-29. To obtain a new or tweaked
version of this certificate in the future, simply run certbot again
with the "certonly" option. To non-interactively renew *all* of
your certificates, run "certbot renew"
- If you like Certbot, please consider supporting our work by:
Donating to ISRG / Let's Encrypt: https://letsencrypt.org/donate
Donating to EFF: https://eff.org/donate-leConclusione
Congratulazioni! hai installato con successo FileRun con Apache e Let’s Encrypt SSL su Ubuntu 22.04. Ora puoi ospitare il tuo server FileRun nel cloud e iniziare a condividere e sincronizzare i tuoi file, musica e foto con amici e familiari.
Ricevi i nuovi post nella tua casella di posta.
Nessuno spam. Disiscriviti in qualsiasi momento.