GNU/Linux >> Linux Esercitazione >  >> Debian

Come installare DokuWiki con Let's Encrypt SSL su Debian 11

DokuWiki è un'applicazione wiki gratuita e open source scritta in PHP. Non richiede un database, è leggera e consente di creare e modificare contenuti direttamente dal browser.

Questa guida mostra come installare DokuWiki con Apache e Let's Encrypt SSL su Debian 11.

Prerequisiti

  • Un server Debian 11.
  • Un nome di dominio valido puntato all'IP del server.
  • Password root configurata sul server.

Aggiornare il sistema

apt-get update -y

Installare Apache e PHP

apt-get install apache2 php php-gd php-xml php-json -y
systemctl start apache2
systemctl enable apache2

Installare DokuWiki

wget https://download.dokuwiki.org/src/dokuwiki/dokuwiki-stable.tgz
mkdir /var/www/html/dokuwiki
tar -xvzf dokuwiki-stable.tgz -C /var/www/html/dokuwiki/ --strip-components=1
cp /var/www/html/dokuwiki/.htaccess{.dist,}
chown -R www-data:www-data /var/www/html/dokuwiki

Creare l'Apache Virtual Host

Crea /etc/apache2/sites-available/dokuwiki.conf con ServerName dokuwiki.example.com e DocumentRoot /var/www/html/dokuwiki.

a2ensite dokuwiki.conf
systemctl reload apache2

Proteggere DokuWiki con Let's Encrypt

apt-get install certbot python3-certbot-apache -y
certbot --apache -d dokuwiki.example.com

Scegli il redirect HTTP verso HTTPS per completare la configurazione.

Rinnovo automatico SSL

Il certificato Let's Encrypt dura 90 giorni. Puoi pianificare il rinnovo automatico con un cron job:

crontab -e

Aggiungi una riga simile a questa:

00 10 * * * root /usr/bin/certbot renew > /dev/null 2>&1

Accedere a DokuWiki

Apri il browser e visita https://dokuwiki.example.com/install.php. Configura nome wiki, utente amministratore e password.

Conclusione

Hai installato DokuWiki e lo hai protetto con Let's Encrypt SSL su Debian 11.

Debian
  1. Proteggere Apache con Let's Encrypt su Debian 10

  2. Come installare Tiki Wiki con Apache e Let's Encrypt SSL su Debian 10

  3. Installare Automad CMS con Apache e Let's Encrypt su Debian 10

  4. Installare ElkArte Forum con Apache e Let’s Encrypt su Debian 10

  5. Come Installare Let's Encrypt SSL con Apache su Debian 11

Installare Lighttpd con PHP, MariaDB e SSL Let's Encrypt su Debian 10

Installare la board Kanban Wekan con Nginx e SSL Let's Encrypt su Debian 10

Installare WordPress con Apache e SSL Let's Encrypt su Debian 11

Come installare il certificato SSL Let's Encrypt su Apache in Debian 11

Apache e certificato SSL gratuito Let's Encrypt su Debian 11 Bullseye: guida completa

Come installare Let’s Encrypt SSL su Ubuntu con Apache