Hosting immagini · 8 min read · Dec 29, 2025

Crea un sito web di hosting immagini con Chevereto-Free su Ubuntu 22.04

Chevereto è un software di hosting e condivisione di immagini gratuito e open-source che ti consente di ospitare il tuo server di hosting immagini sul web. È una soluzione di hosting immagini autogestita, multipurpose, multiutente e completa che ti permette di creare siti web di hosting immagini reattivi. Offre molte funzionalità, tra cui più lingue, importazione di immagini in blocco, integrazione con i social media, più server e altro ancora.

In questo post, ti mostreremo come installare la soluzione di hosting immagini Chevereto su Ubuntu 22.04.

Prerequisiti

  • Un server che esegue Ubuntu 22.04.
  • Una password di root configurata sul server.

Iniziare

Prima di tutto, è consigliato aggiornare e aggiornare tutti i pacchetti di sistema all’ultima versione. Puoi aggiornarli eseguendo il seguente comando:

apt update -y  
apt upgrade -y

Una volta che tutti i pacchetti sono stati aggiornati, esegui il seguente comando per installare le dipendenze aggiuntive richieste:

apt install apt-transport-https ca-certificates curl software-properties-common -y

Una volta installate tutte le dipendenze, puoi procedere al passaggio successivo.

Installa Apache, PHP e MariaDB Server.

Prima di iniziare, dovrai installare il server LAMP sul tuo server.

Prima, installa il server Apache e MariaDB utilizzando il seguente comando:

apt install apache2 mariadb-server

Successivamente, aggiungi il repository PHP all’APT con il seguente comando:

add-apt-repository ppa:ondrej/php -y

Successivamente, installa la versione PHP 7.4 con altre estensioni richieste utilizzando il seguente 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 -y

Una volta installati tutti i pacchetti, puoi procedere al passaggio successivo.

Crea un database MariaDB

Prima, proteggi l’installazione di MariaDB e imposta una password di root eseguendo il seguente script:

mysql_secure_installation

Rispondi a tutte le domande come mostrato di seguito:

Enter current password for root (enter for none): Premi INVIO
Set root password? [Y/n]: Y
New password: Imposta-la-tua-nuova-password
Re-enter new password: Imposta-la-tua-nuova-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 a MariaDB con il seguente comando:

mysql -u root -p

Una volta effettuato l’accesso, crea un database e un utente con il seguente comando:

MariaDB [(none)]> CREATE DATABASE chevereto;  
MariaDB [(none)]> CREATE USER 'chevereto'@'localhost' IDENTIFIED BY 'password';

Successivamente, concedi tutti i privilegi al database Chevereto con il seguente comando:

MariaDB [(none)]> GRANT ALL PRIVILEGES ON chevereto.* TO 'chevereto'@'localhost';

Successivamente, svuota i privilegi per applicare le modifiche:

MariaDB [(none)]> FLUSH PRIVILEGES;

Infine, esci dalla shell di MariaDB con il seguente comando:

MariaDB [(none)]> EXIT;

Scarica Chevereto

Prima, crea una directory per Chevereto all’interno della directory radice del web di Apache utilizzando il seguente comando:

mkdir -p /var/www/html/chevereto/

Successivamente, naviga nella directory di Chevereto e scarica l’ultima versione di Chevereto con il seguente comando:

cd /var/www/html/chevereto  
wget https://github.com/rodber/chevereto-free/releases/download/1.6.0/1.6.0.zip

Una volta completato il download, estrai il file scaricato con il seguente comando:

unzip 1.6.0.zip

Successivamente, imposta i permessi e la proprietà corretti per la directory di Chevereto:

chown -R www-data:www-data /var/www/html/chevereto/  
chmod -R 775 /var/www/html/chevereto/

Configura Apache per Chevereto

Successivamente, crea un file di configurazione del virtual host di Apache per Chevereto utilizzando il seguente comando:

nano /etc/apache2/sites-available/chevereto.conf

Aggiungi le seguenti configurazioni:



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



Salva e chiudi il file quando hai finito. Successivamente, attiva il virtual host di Chevereto con il seguente comando:

a2ensite chevereto.conf

Successivamente, abilita il modulo di riscrittura di Apache e il modulo SSL con il seguente comando:

a2enmod rewrite ssl

Infine, riavvia il servizio Apache per applicare le modifiche:

systemctl restart apache2

Puoi anche verificare lo stato di Apache con il seguente comando:

systemctl status apache2

Dovresti 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 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...

Accedi all’interfaccia web di Chevereto

Ora, apri il tuo browser web e accedi all’interfaccia web di Chevereto utilizzando l’URL http://chevereto.example.com. Sarai reindirizzato alla pagina di configurazione del database:

Impostazione del database

Fornisci le informazioni del tuo database e fai clic sul pulsante Continua. Dovresti vedere la seguente pagina:

Installa Chevereto

Dettagli email

Ora, fornisci il tuo nome utente admin, password e modalità del sito web, quindi fai clic sul pulsante Installa Chevereto. Una volta completata l’installazione, dovresti vedere la seguente pagina:

Installazione di Chevereto completata con successo

Fai clic sul pulsante pannello di amministrazione. Dovresti vedere la pagina di accesso di Chevereto:

Accesso

Fornisci il tuo nome utente admin, password e fai clic sul pulsante = >. Dovresti vedere il pannello di controllo di Chevereto nella seguente pagina:

Pannello di controllo di Chevereto

Sicurezza di Chevereto con SSL di Let’s Encrypt

È anche consigliato proteggere il tuo sito web con SSL di Let’s Encrypt. Prima, dovrai installare il client Certbot sul tuo server. Puoi installarlo con il seguente comando:

apt-get install python3-certbot-apache -y

Una volta installato Certbot, esegui il seguente comando per proteggere il tuo sito web con SSL di Let’s Encrypt:

certbot --apache -d chevereto.example.com

Ti 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 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

Digita 2 e premi Invio per installare l’SSL di Let’s Encrypt per il tuo sito 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:

   Donando a ISRG / Let's Encrypt:   https://letsencrypt.org/donate
   Donando a EFF:                    https://eff.org/donate-le

Conclusione

Congratulazioni! hai installato con successo il server di hosting immagini Chevereto su Ubuntu 22.04. Ora puoi caricare le tue immagini sul server e accedervi da qualsiasi parte del web. Sentiti libero di chiedermi se hai domande.

Share: X/Twitter LinkedIn

Ricevi i nuovi post nella tua casella di posta.

Nessuno spam. Disiscriviti in qualsiasi momento.