Installazione TYPO3 · 7 min read · Sep 22, 2025

Come installare TYPO3 CMS su Ubuntu 22.04

TYPO3 è un sistema di gestione dei contenuti gratuito, open-source e di classe enterprise. È scritto in PHP e combina codice open-source con affidabilità e scalabilità. È multipiattaforma e può essere installato su tutti i principali sistemi operativi, inclusi Windows, Linux, macOS, ecc. È progettato per utenti principianti, quindi puoi facilmente personalizzarlo ed estenderlo senza scrivere codice. È semplice, reattivo, pronto per i dispositivi mobili ed è una scelta eccellente per mettere rapidamente online il tuo sito web.

Questo tutorial ti mostrerà come installare TYPO3 CMS con SSL Let’s Encrypt su Ubuntu 22.04.

Prerequisiti

  • Un server che esegue Ubuntu 22.04.
  • Un nome di dominio valido collegato all’IP del tuo server.
  • Una password di root configurata sul server.

Iniziare

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

apt update -y  
apt upgrade -y

Una volta che tutti i pacchetti sono aggiornati, puoi procedere al passaggio successivo.

Installa Apache, PHP e MariaDB Server

Successivamente, dovrai installare il server web Apache, MariaDB, PHP e altre estensioni PHP sul tuo server. Puoi installarli tutti con il seguente comando:

apt-get install apache2 mariadb-server php libapache2-mod-php php-common php-gmp php-curl php-intl php-mbstring php-xmlrpc php-mysql php-gd php-xml php-cli php-zip curl git gnupg2 -y

Dopo aver installato tutti i pacchetti, modifica il file php.ini e cambia alcune impostazioni consigliate:

nano /etc/php/8.1/apache2/php.ini

Cambia le seguenti righe:

memory_limit = 256M
upload_max_filesize = 100M
post_max_size = 100M
max_execution_time = 360
max_input_vars = 1500
date.timezone = UTC

Salva e chiudi il file, quindi riavvia il servizio Apache per applicare le modifiche:

systemctl restart apache2

Crea un database per TYPO3

Successivamente, dovrai creare un database e un utente per TYPO3. Prima, accedi alla shell di MariaDB con il seguente comando:

mysql

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

MariaDB [(none)]> CREATE DATABASE typo3db;

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

MariaDB [(none)]> GRANT ALL ON typo3db.* TO 'typo3user'@'localhost' IDENTIFIED BY 'password' WITH GRANT OPTION;

Successivamente, svuota i privilegi ed esci da MariaDB con il seguente comando:

MariaDB [(none)]> FLUSH PRIVILEGES;  
MariaDB [(none)]> EXIT;

A questo punto, il tuo database MariaDB è configurato. Puoi ora procedere al passaggio successivo.

Installa TYPO3 CMS

Prima, visita il sito ufficiale di TYPO3 e scarica l’ultima versione di TYPO3 utilizzando il comando curl:

curl -L -o typo3_src.tgz https://get.typo3.org/11

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

tar -xvzf typo3_src.tgz

Successivamente, sposta la directory estratta nella directory radice del web server Apache:

mv typo3_src-11.5.15 /var/www/html/typo3

Successivamente, dai i permessi appropriati con il seguente comando:

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

Una volta terminato, puoi procedere al passaggio successivo.

Crea un host virtuale Apache per TYPO3

Successivamente, crea un file di configurazione dell’host virtuale Apache per ospitare TYPO3 CMS. Puoi crearlo con il seguente comando:

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

Aggiungi le seguenti righe:


     ServerAdmin [email protected]
     DocumentRoot /var/www/html/typo3
     ServerName typo3.example.com
     
        Options +FollowSymlinks
        AllowOverride All
        Require all granted
     

     ErrorLog ${APACHE_LOG_DIR}/error.log
     CustomLog ${APACHE_LOG_DIR}/access.log combined


Salva e chiudi il file, quindi abilita il file di configurazione dell’host virtuale e il modulo di riscrittura con il seguente comando:

a2ensite typo3.conf  
a2enmod rewrite

Successivamente, riavvia il servizio Apache per applicare le modifiche:

systemctl restart apache2

A questo punto, il server web Apache è configurato per servire TYPO3. Puoi ora procedere al passaggio successivo.

Accedi a TYPO3 CMS

Se stai installando TYPO3 su un server fresco, dovrai creare un file FIRST_INSTALL all’interno della directory radice web di TYPO3. Puoi crearlo con il seguente comando:

touch /var/www/html/typo3/FIRST_INSTALL  
chown -R www-data:www-data /var/www/html/typo3/FIRST_INSTALL

Ora, apri il tuo browser web e accedi a TYPO3 utilizzando l’URL http://typo3.example.com. Dovresti vedere la seguente pagina:

Fornisci il tuo nome utente del database, la password, l’host e fai clic sul pulsante Continua. Dovresti vedere la seguente pagina:

Seleziona il nome del tuo database TYPO3 e fai clic sul pulsante Continua. Dovresti vedere la seguente pagina:

Successivamente, fornisci il tuo nome utente admin, la password, il nome del sito e fai clic sul pulsante Continua. Sarai reindirizzato alla pagina di accesso di TYPO3:

Fornisci il tuo nome utente admin, la password e fai clic sul pulsante Login. Dovresti vedere il dashboard di TYPO3 nella seguente pagina:

Sicurezza di TYPO3 con Let’s Encrypt

Mettere in sicurezza il tuo sito web con Let’s Encrypt Free SSL è una buona idea. Prima, installa il client Certbot per installare e gestire l’SSL. Puoi installarlo con il seguente comando:

apt-get install python3-certbot-apache -y

Una volta installato, esegui il seguente comando per mettere in sicurezza il tuo sito web con SSL Let’s Encrypt:

certbot --apache -d typo3.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 typo3.example.com
Enabled Apache rewrite module
Waiting for verification...
Cleaning up challenges
Created an SSL vhost at /etc/apache2/sites-available/typo3-le-ssl.conf
Enabled Apache socache_shmcb module
Enabled Apache ssl module
Deploying Certificate to VirtualHost /etc/apache2/sites-available/typo3-le-ssl.conf
Enabling available site: /etc/apache2/sites-available/typo3-le-ssl.conf

Successivamente, seleziona se reindirizzare o meno il traffico HTTP a HTTPS come mostrato di seguito:

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 Let’s Encrypt per il tuo sito web:

Enabled Apache rewrite module
Redirecting vhost in /etc/apache2/sites-enabled/typo3.conf to ssl vhost in /etc/apache2/sites-available/typo3-le-ssl.conf

- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
Congratulations! You have successfully enabled https://typo3.example.com

You should test your configuration at:
https://www.ssllabs.com/ssltest/analyze.html?d=typo3.example.com
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -

IMPORTANT NOTES:
 - Congratulations! Your certificate and chain have been saved at:
   /etc/letsencrypt/live/typo3.example.com/fullchain.pem
   Your key file has been saved at:
   /etc/letsencrypt/live/typo3.example.com/privkey.pem
   Your cert will expire on 2022-12-07. 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

Ora, puoi accedere al TYPO3 CMS in modo sicuro utilizzando l’URL https://typo3.example.com.

Conclusione

Congratulazioni! Hai installato con successo TYPO3 CMS e lo hai messo in sicurezza con SSL Let’s Encrypt su Ubuntu 22.04. Ora puoi creare facilmente il tuo sito web e blog tramite un browser 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.