Alojamiento de imágenes · 8 min read · Dec 29, 2025
Crea un sitio web de alojamiento de imágenes con Chevereto-Free en Ubuntu 22.04

Chevereto es un software de alojamiento y compartición de imágenes gratuito y de código abierto que te permite alojar tu propio servidor de alojamiento de imágenes en la web. Es una solución de alojamiento de imágenes autohospedada, multipropósito, multiusuario y con todas las funciones que te permite crear sitios web de alojamiento de imágenes responsivos. Ofrece muchas características, incluyendo múltiples idiomas, importación masiva de imágenes, integración con redes sociales, múltiples servidores y más.
En esta publicación, te mostraremos cómo instalar la solución de alojamiento de imágenes Chevereto en Ubuntu 22.04.
Requisitos previos
- Un servidor que ejecute Ubuntu 22.04.
- Una contraseña de root configurada en el servidor.
Comenzando
Primero, se recomienda actualizar y mejorar todos los paquetes de tu sistema a la última versión. Puedes actualizarlos ejecutando el siguiente comando:
apt update -y
apt upgrade -yUna vez que todos los paquetes estén actualizados, ejecuta el siguiente comando para instalar las dependencias adicionales requeridas:
apt install apt-transport-https ca-certificates curl software-properties-common -yUna vez que todas las dependencias estén instaladas, puedes proceder al siguiente paso.
Instalar Apache, PHP y el servidor MariaDB.
Antes de comenzar, necesitarás instalar el servidor LAMP en tu servidor.
Primero, instala el servidor Apache y MariaDB usando el siguiente comando:
apt install apache2 mariadb-serverA continuación, agrega el repositorio de PHP al APT con el siguiente comando:
add-apt-repository ppa:ondrej/php -yA continuación, instala la versión 7.4 de PHP con otras extensiones requeridas usando el siguiente comando:
apt install php7.4 libapache2-mod-php7.4 php7.4-cli php7.4-fpm php7.4-json php7.4-mysql php7.4-zip php7.4-gd php7.4-mbstring php7.4-curl php7.4-xml php7.4-bcmath -yUna vez que todos los paquetes estén instalados, puedes proceder al siguiente paso.
Crear una base de datos MariaDB
Primero, asegura la instalación de MariaDB y establece una contraseña de root ejecutando el siguiente script:
mysql_secure_installationResponde a todas las preguntas como se muestra a continuación:
Enter current password for root (enter for none): Presiona ENTER
Set root password? [Y/n]: Y
New password: Establece-tu-nueva-contraseña
Re-enter new password: Establece-tu-nueva-contraseña
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 MariaDB con el siguiente comando:
mysql -u root -pUna vez que hayas iniciado sesión, crea una base de datos y un usuario con el siguiente comando:
MariaDB [(none)]> CREATE DATABASE chevereto;
MariaDB [(none)]> CREATE USER 'chevereto'@'localhost' IDENTIFIED BY 'password';A continuación, otorga todos los privilegios a la base de datos Chevereto con el siguiente comando:
MariaDB [(none)]> GRANT ALL PRIVILEGES ON chevereto.* TO 'chevereto'@'localhost';A continuación, actualiza los privilegios para aplicar los cambios:
MariaDB [(none)]> FLUSH PRIVILEGES;Finalmente, sal del shell de MariaDB con el siguiente comando:
MariaDB [(none)]> EXIT;Descargar Chevereto
Primero, crea un directorio para Chevereto dentro del directorio raíz web de Apache usando el siguiente comando:
mkdir -p /var/www/html/chevereto/A continuación, navega al directorio de Chevereto y descarga la última versión de Chevereto con el siguiente comando:
cd /var/www/html/chevereto
wget https://github.com/rodber/chevereto-free/releases/download/1.6.0/1.6.0.zipUna vez que la descarga esté completa, descomprime el archivo descargado con el siguiente comando:
unzip 1.6.0.zipA continuación, establece los permisos y la propiedad adecuados para el directorio de Chevereto:
chown -R www-data:www-data /var/www/html/chevereto/
chmod -R 775 /var/www/html/chevereto/Configurar Apache para Chevereto
A continuación, crea un archivo de configuración de host virtual de Apache para Chevereto usando el siguiente comando:
nano /etc/apache2/sites-available/chevereto.confAgrega las siguientes configuraciones:
ServerAdmin [email protected]
ServerName chevereto.example.com
DocumentRoot /var/www/html/chevereto
ErrorLog ${APACHE_LOG_DIR}/chevereto.example.com_error.log
CustomLog ${APACHE_LOG_DIR}/chevereto.example.com_access.log combined
Options FollowSymlinks
AllowOverride All
Require all granted
Guarda y cierra el archivo cuando hayas terminado. A continuación, activa el host virtual de Chevereto con el siguiente comando:
a2ensite chevereto.confA continuación, habilita el módulo de reescritura de Apache y el módulo SSL con el siguiente comando:
a2enmod rewrite sslFinalmente, 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 - El servidor HTTP Apache
Loaded: loaded (/lib/systemd/system/apache2.service; enabled; vendor preset: enabled)
Active: active (running) since Sun 2022-08-28 07:22:12 UTC; 9s ago
Docs: https://httpd.apache.org/docs/2.4/
Process: 87027 ExecStart=/usr/sbin/apachectl start (code=exited, status=0/SUCCESS)
Main PID: 87032 (apache2)
Tasks: 6 (limit: 2242)
Memory: 14.1M
CPU: 111ms
CGroup: /system.slice/apache2.service
??87032 /usr/sbin/apache2 -k start
??87033 /usr/sbin/apache2 -k start
??87034 /usr/sbin/apache2 -k start
??87035 /usr/sbin/apache2 -k start
??87036 /usr/sbin/apache2 -k start
??87037 /usr/sbin/apache2 -k start
Aug 28 07:22:12 ubuntu2204 systemd[1]: Starting The Apache HTTP Server...
Acceder a la interfaz web de Chevereto
Ahora, abre tu navegador web y accede a la interfaz web de Chevereto usando la URL http://chevereto.example.com. Serás redirigido a la página de configuración de la base de datos:

Proporciona la información de tu base de datos y haz clic en el botón Continuar. Deberías ver la siguiente página:


Ahora, proporciona tu nombre de usuario de administrador, contraseña y modo del sitio web, luego haz clic en el botón Instalar Chevereto. Una vez que la instalación se haya completado, deberías ver la siguiente página:

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

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

Asegurar Chevereto con SSL de Let’s Encrypt
También se recomienda asegurar tu sitio web con SSL de Let’s Encrypt. 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 SSL de Let’s Encrypt:
certbot --apache -d chevereto.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 chevereto.example.com
Enabled Apache rewrite module
Waiting for verification...
Cleaning up challenges
Created an SSL vhost at /etc/apache2/sites-available/chevereto-le-ssl.conf
Enabled Apache socache_shmcb module
Enabled Apache ssl module
Deploying Certificate to VirtualHost /etc/apache2/sites-available/chevereto-le-ssl.conf
Enabling available site: /etc/apache2/sites-available/chevereto-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): 2
Escribe 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/chevereto.conf to ssl vhost in /etc/apache2/sites-available/chevereto-le-ssl.conf
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
Congratulations! You have successfully enabled https://chevereto.example.com
You should test your configuration at:
https://www.ssllabs.com/ssltest/analyze.html?d=chevereto.example.com
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
IMPORTANT NOTES:
- Congratulations! Your certificate and chain have been saved at:
/etc/letsencrypt/live/chevereto.example.com/fullchain.pem
Your key file has been saved at:
/etc/letsencrypt/live/chevereto.example.com/privkey.pem
Your cert will expire on 2022-11-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-le
Conclusión
¡Felicidades! Has instalado con éxito el servidor de alojamiento de imágenes Chevereto en Ubuntu 22.04. Ahora puedes subir tus imágenes al servidor y acceder a él desde cualquier lugar en la web. No dudes en preguntarme si tienes alguna pregunta.
Recibe nuevas publicaciones en tu bandeja de entrada.
No spam. Cancela la suscripción en cualquier momento.