From 73879461f46962580fc0f18d318c4c4f844d3f4e Mon Sep 17 00:00:00 2001 From: Daan Asscheman Date: Mon, 13 May 2024 10:27:51 +0200 Subject: [PATCH] Apache User permission issues. --- docker/backend.dockerfile | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/docker/backend.dockerfile b/docker/backend.dockerfile index ce41fda..84435a4 100644 --- a/docker/backend.dockerfile +++ b/docker/backend.dockerfile @@ -22,9 +22,8 @@ RUN apt-get install -y libxml2-dev libzip-dev libpng-dev ## run apache as non-root user # https://takac.dev/docker-run-apache-as-non-root-user-based-on-the-official-image/ RUN apt-get install -y libcap2-bin procps -RUN setcap 'cap_net_bind_service=+ep' /usr/local/apache2/bin/httpd -RUN chown www-data:www-data /usr/local/apache2/logs -USER www-data +RUN setcap 'cap_net_bind_service=+ep' /usr/local/bin/apache2-foreground +RUN chown -R www-data:www-data /var/log/apache2 # install additional PHP extensions RUN docker-php-ext-install pdo_mysql mysqli soap zip gd