Gibbon è un sistema di gestione della scuola gratuito e open source appositamente progettato per insegnanti, studenti, genitori e dirigenti. Aiuta gli insegnanti a trovare, contattare e aiutare i propri studenti. Consente agli insegnanti di pianificare, insegnare, raccogliere, valutare e restituire il lavoro in un unico processo semplificato. È uno strumento eccellente ed efficiente da un punto di vista unico che rende tutte le informazioni disponibili in un unico posto. Viene fornito con una semplice interfaccia basata sul Web che aiuta gli insegnanti ad accedere a tutti i dettagli degli studenti in movimento.
In questo tutorial, ti mostreremo come installare Gibbon LMS con Let's Encrypt SSL sul server Ubuntu 20.04.
Prerequisiti
- Un server che esegue Ubuntu 20.04.
- Un nome di dominio valido puntato all'IP del tuo server.
- Una password di root è configurata sul server.
Per iniziare
Innanzitutto, si consiglia di aggiornare i pacchetti di sistema all'ultima versione. Puoi aggiornarli con il seguente comando:
apt-get update -y
Una volta aggiornati tutti i pacchetti, puoi procedere al passaggio successivo.
Installa Apache, MariaDB e PHP
Successivamente, dovrai installare il server web Apache, MariaDB, PHP e altre estensioni PHP sul tuo sistema. Puoi installarli tutti con il seguente comando:
apt-get install apache2 mariadb-server php libapache2-mod-php php-common php-sqlite3 php-mysql php-gmp php-curl php-intl php-mbstring php-xmlrpc php-gd php-bcmath php-xml php-cli php-zip unzip git -y
Una volta installati tutti i pacchetti, modifica il file php.ini e imposta i valori desiderati:
nano /etc/php/7.4/apache2/php.ini
Modifica le seguenti righe con i valori richiesti:
memory_limit = 256M upload_max_filesize = 100M max_execution_time = 360 date.timezone = America/Chicago
Salva e chiudi il file quando hai finito. Quindi, puoi procedere al passaggio successivo.
Configura il database MariaDB
Successivamente, dovrai creare un database e un utente per Gibbon. Innanzitutto, accedi alla shell MySQL con il seguente comando:
mysql
Una volta effettuato l'accesso, crea un database e un utente con il seguente comando:
MariaDB [(none)]> CREATE DATABASE gibbondb;
MariaDB [(none)]> CREATE USER 'gibbon'@'localhost' IDENTIFIED BY 'password';
Quindi, concedi tutti i privilegi al database Gibbon con il seguente comando:
MariaDB [(none)]> GRANT ALL ON gibbondb.* TO 'gibbon'@'localhost' WITH GRANT OPTION;
Quindi, svuota i privilegi ed esci dalla shell MySQL con il seguente comando:
MariaDB [(none)]> FLUSH PRIVILEGES;
MariaDB [(none)]> EXIT;
Una volta configurato il database, puoi procedere al passaggio successivo.
Installa Gibbon
Innanzitutto, dovrai scaricare l'ultima versione di Gibbon dal suo sito Web ufficiale. Puoi scaricarlo con il seguente comando:
wget https://github.com/GibbonEdu/core/archive/v20.0.00.zip
Una volta completato il download, puoi decomprimere il file scaricato con il seguente comando:
unzip v20.0.00.zip
Quindi, sposta la directory estratta nella directory radice di Apache con il seguente comando:
mv core-20.0.00 /var/www/html/gibbon
Quindi, cambia la proprietà e l'autorizzazione del Gibbon con il seguente comando:
chown -R www-data:www-data /var/www/html/gibbon/
chmod -R 755 /var/www/html/gibbon/
Una volta terminato, puoi procedere al passaggio successivo.
Configura Apache per Gibbon
Successivamente, dovrai configurare Apache per servire il Gibbon. Per fare ciò, crea un file di configurazione dell'host virtuale Apache con il seguente comando:
nano /etc/apache2/sites-available/gibbon.conf
Aggiungi le seguenti righe:
<VirtualHost *:80> ServerAdmin [email protected] DocumentRoot /var/www/html/gibbon ServerName gibbon.example.com <Directory /var/www/html/gibbon/> Options FollowSymlinks AllowOverride All Require all granted </Directory> ErrorLog ${APACHE_LOG_DIR}/error.log CustomLog ${APACHE_LOG_DIR}/access.log combined <Directory /var/www/html/gibbon/> RewriteEngine on RewriteBase / RewriteCond %{REQUEST_FILENAME} !-f RewriteRule ^(.*) index.php [PT,L] </Directory> </VirtualHost>
Salva e chiudi il file quando hai finito. Quindi, abilita l'host virtuale Gibbon eseguendo il comando seguente:
a2ensite gibbon.conf
Quindi, abilita il modulo di riscrittura di Apache e riavvia il servizio Apache per applicare chconfigurationg anges:
a2enmod rewrite
systemctl restart apache2
A questo punto, il server Web Apache è configurato per servire Gibbon LMS. Una volta terminato, puoi procedere al passaggio successivo.
Accedi all'interfaccia Web Gibbon
Ora apri il tuo browser web e accedi all'interfaccia web di Gibbon utilizzando l'URL http://gibbon.example.com . Verrai reindirizzato alla seguente pagina:
Verifica tutti i requisiti di sistema, seleziona Inglese lingua e fare clic su Invia pulsante. Dovresti vedere la seguente pagina:
Fornisci il nome del database, il nome utente, la password e fai clic su Invia pulsante. Dovresti vedere la seguente pagina:
Fornisci la configurazione del tuo account, le impostazioni di sistema e le impostazioni dell'organizzazione, quindi fai clic su Invia pulsante. Una volta completata l'installazione, dovresti vedere la seguente pagina:
Quindi, fai clic su vai al tuo Gibbon home page , dovresti vedere la pagina di accesso di Gibbon nella pagina seguente:
Fornisci il nome utente e la password dell'amministratore e fai clic su Accedi pulsante. Dovresti vedere la dashboard di Gibbon nella pagina seguente:
Proteggi Gibbon con Let's Encrypt SSL
Successivamente, si consiglia di proteggere il tuo sito Web con Let's Encrypt SSL. Innanzitutto, installa il client Certbot utilizzando il seguente comando:
apt-get install python3-certbot-apache -y
Una volta installato, esegui il seguente comando per proteggere il tuo sito Web con Let's Encrypt SSL:
certbot --apache -d gibbon.example.com
Ti verrà chiesto di fornire la tua email e di accettare i termini del 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 gibbon.example.com Enabled Apache rewrite module Waiting for verification... Cleaning up challenges Created an SSL vhost at /etc/apache2/sites-available/gibbon-le-ssl.conf Enabled Apache socache_shmcb module Enabled Apache ssl module Deploying Certificate to VirtualHost /etc/apache2/sites-available/gibbon-le-ssl.conf Enabling available site: /etc/apache2/sites-available/gibbon-le-ssl.conf
Quindi, seleziona se reindirizzare o meno il traffico HTTP su 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 Let's Encrypt SSL per il tuo sito web:
Enabled Apache rewrite module Redirecting vhost in /etc/apache2/sites-enabled/gibbon.conf to ssl vhost in /etc/apache2/sites-available/gibbon-le-ssl.conf - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - Congratulations! You have successfully enabled https://gibbon.example.com You should test your configuration at: https://www.ssllabs.com/ssltest/analyze.html?d=gibbon.example.com - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - IMPORTANT NOTES: - Congratulations! Your certificate and chain have been saved at: /etc/letsencrypt/live/gibbon.example.com/fullchain.pem Your key file has been saved at: /etc/letsencrypt/live/gibbon.example.com/privkey.pem Your cert will expire on 2020-10-23. 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 a Gibbon LMS in modo sicuro utilizzando l'URL https://gibbon.example.com .
Conclusione
Congratulazioni! hai installato e configurato correttamente Gibbon LMS con Let's encrypt SSL su Ubuntu 20.04. Ora puoi implementarlo facilmente nella tua scuola ed esplorare Gibbon per nuove funzionalità e caratteristiche. Sentiti libero di chiedermi se hai domande.