commun:web_server
Ceci est une ancienne révision du document !
Table des matières
Configuration du conteneur du serveur web
Installation php8.1 apache2
sudo apt install apache2 php sudo apt install php8.1-apcu php8.1-bcmath php8.1-cli php8.1-curl php8.1-gd php8.1-gmp php8.1-igbinary php8.1-imagick sudo apt install php8.1-intl php8.1-mbstring php8.1-memcached php8.1-msgpack php8.1-mysql sudo apt install php8.1-opcache php8.1-phpdbg php8.1-readline php8.1-redis php8.1-xml php8.1-xmlrpc php8.1-zip sudo apt install redis
Configuration de SSL
ici.
Configuration de nextcloud en mode conteneur
sudo systemctl stop apache2
Partage du répertoire ''/media/stockage/system/nuage-data''
Sur l'hôte
sudo addgroup --system --gid 320 webserver sudo adduser --system --home /media/stockage/system/nuage-data/ --uid 320 --gid 320 webserver
map root on the LXD host GID 1 to our newly created UID/GID
sudo -s echo 'root:320:1' >> /etc/subuid echo 'root:320:1' >> /etc/subgid
sudo chown -R webserver:webserver nuage-data sudo chmod g+s nuage-data/
Savoir le uid et gid de www-data sur le conteneur
grep ^www-data /etc/passwd grep ^www-data /etc/group
Sur l'hôte de nouveau. Map UID and GID on the LXD host.
sudo -s echo -en "uid 320 33\ngid 320 33" | lxc config set webserver raw.idmap -
Activation des tâches répétitives de nextcloud
sudo crontab -u www-data -e
et ajout de la ligne suivant à la fin du fichier
*/5 * * * * php -f /var/www/html/nextcloud/cron.php
commun/web_server.1671361253.txt.gz · Dernière modification : (modification externe)
