Instalación · 9 min read · Dec 18, 2025
Cómo instalar FileRun en Ubuntu 22.04

FileRun es una aplicación de intercambio de archivos de código abierto y basada en la web para sistemas operativos basados en Linux. Es muy similar a Google Drive, iCloud y DropBox y permite a los usuarios compartir y sincronizar archivos a través de Internet. Se puede acceder a través de una aplicación móvil, WebDAV y un navegador web. Te permite alojar tu propia solución de intercambio de archivos en la nube y acceder a todos tus archivos en cualquier lugar a través de un almacenamiento en la nube seguro.
Esta publicación mostrará cómo instalar FileRun con Apache y Let’s Encrypt SSL en Ubuntu 22.04.
Prerrequisitos
- Un servidor que ejecute Ubuntu 22.04.
- Un nombre de dominio válido apuntado a la IP de tu servidor.
- Una contraseña de root configurada en el servidor.
Instalar Apache, MariaDB y PHP
FileRun está escrito en PHP y utiliza MariaDB como backend de base de datos. Por lo tanto, necesitarás instalar los paquetes de Apache, MariaDB, PHP y otros en tu servidor. Primero, instala el paquete de Apache y MariaDB usando el siguiente comando:
apt-get install apache2 mariadb-server mariadb-clientDespués de instalar ambos paquetes, necesitarás instalar la versión de PHP php7.2-php7.4 en tu servidor. Sin embargo, Ubuntu 22.04 viene con la versión PHP 8.1 en el repositorio predeterminado. Así que necesitarás agregar el repositorio de PHP Ondrej en tu servidor.
Primero, instala todas las dependencias requeridas usando el siguiente comando:
apt install software-properties-common ca-certificates lsb-release apt-transport-https -yA continuación, agrega el repositorio de PHP usando el siguiente comando:
add-apt-repository ppa:ondrej/phpLuego, actualiza la caché del repositorio e instala PHP con otras extensiones requeridas usando el siguiente 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 vez que todos los paquetes estén instalados, también necesitarás instalar el cargador IonCube en tu sistema.
Primero, descarga el cargador IonCube con el siguiente comando:
wget https://downloads.ioncube.com/loader_downloads/ioncube_loaders_lin_x86-64.tar.gzA continuación, extrae el archivo descargado con el siguiente comando:
tar -xzf ioncube_loaders_lin_x86-64.tar.gz -C /usr/lib/phpLuego, crea un archivo de configuración de ioncube y define la ruta de la fuente de IonCube:
nano /etc/php/7.4/apache2/conf.d/00-ioncube.iniAgrega la siguiente línea:
zend_extension = /usr/lib/php/ioncube/ioncube_loader_lin_7.4.soGuarda y cierra el archivo, luego crea un archivo de configuración PHP para FileRun:
nano /etc/php/7.4/apache2/conf.d/filerun.iniAgrega la siguiente configuración:
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"Guarda y cierra el archivo, luego reinicia el servicio de Apache para aplicar los cambios:
systemctl reload apache2Crear una base de datos para FileRun
Primero, asegura la instalación de MariaDB y establece la contraseña de root usando el siguiente comando:
mysql_secure_installationResponde a todas las preguntas como se muestra a continuación:
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 A continuación, inicia sesión en la consola de MariaDB con el siguiente comando:
mysql -u root -pUna vez que inicies sesión, crea una base de datos y un usuario con el siguiente comando:
MariaDB [(none)]> CREATE DATABASE filerun;
MariaDB [(none)]> CREATE USER 'filerun'@'localhost' IDENTIFIED BY 'password';A continuación, otorga todos los privilegios a la base de datos FileRun con el siguiente comando:
MariaDB [(none)]> GRANT ALL PRIVILEGES ON filerun.* TO 'filerun'@'localhost';Luego, actualiza los privilegios y sal de MariaDB con el siguiente comando:
MariaDB [(none)]> FLUSH PRIVILEGES;
MariaDB [(none)]> EXIT;Una vez que hayas terminado, puedes proceder al siguiente paso.
Descargar FileRun
Primero, descarga la última versión de FileRun desde su sitio web oficial usando el siguiente comando:
wget -O FileRun.zip https://filerun.com/download-latestUna vez que se haya descargado FileRun, descomprime el archivo descargado usando el siguiente comando:
unzip FileRun.zip -d /var/www/html/filerun/A continuación, establece los permisos y la propiedad adecuados con el siguiente comando:
chown -R www-data:www-data /var/www/html/filerun
chmod -R 755 /var/www/html/filerunUna vez que hayas terminado, puedes proceder al siguiente paso.
Crear un host virtual de Apache para FileRun
A continuación, necesitarás crear un archivo de configuración de host virtual de Apache para FileRun. Puedes crearlo con el siguiente comando:
nano /etc/apache2/sites-available/filerun.confAgrega las siguientes líneas:
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
Guarda y cierra el archivo, luego activa el host virtual de Apache y habilita el módulo de reescritura de Apache con el siguiente comando:
a2ensite filerun.conf
a2enmod rewriteA continuación, reinicia el servicio de Apache para aplicar los cambios:
systemctl restart apache2También puedes verificar el estado de Apache con el siguiente comando:
systemctl status apache2Deberías ver la siguiente salida:
? 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 vez que hayas terminado, puedes proceder al siguiente paso.
Acceder a la interfaz web de FileRun
Ahora, abre tu navegador web y accede a la interfaz web de FileRun usando la URL http://filerun.example.com. Serás redirigido a la siguiente página:

Haz clic en el botón Siguiente. deberías ver la página de verificación de requisitos del servidor:

Haz clic en el botón Siguiente. Deberías ver la página de configuración de la base de datos:

Haz clic en el botón Siguiente. Una vez que la instalación haya finalizado, deberías ver la siguiente página:

Haz clic en el botón Siguiente. Deberías ver la página de inicio de sesión de FileRun:

Proporciona tu nombre de usuario de administrador, contraseña y haz clic en el botón Iniciar sesión. Deberías ver el panel de control de FileRun en la siguiente página:

Asegurar FileRun con Let’s Encrypt SSL
También se recomienda asegurar tu sitio web con Let’s Encrypt SSL. Primero, necesitarás instalar el cliente Certbot en tu servidor. Puedes instalarlo con el siguiente comando:
apt-get install python3-certbot-apache -yUna vez que Certbot esté instalado, ejecuta el siguiente comando para asegurar tu sitio web con Let’s Encrypt SSL:
certbot --apache -d filerun.example.comSe te pedirá que proporciones tu correo electrónico y aceptes los términos del servicio como se muestra a continuación:
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): 2Escribe 2 y presiona Enter para instalar el SSL de Let’s Encrypt para tu sitio 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-leConclusión
¡Felicidades! has instalado exitosamente FileRun con Apache y Let’s Encrypt SSL en Ubuntu 22.04. Ahora puedes alojar tu propio servidor FileRun en la nube y comenzar a compartir y sincronizar tus archivos, música y fotos con tus amigos y familiares.
Recibe nuevas publicaciones en tu bandeja de entrada.
No spam. Cancela la suscripción en cualquier momento.