From 56b04c52de70c385ad17c47c50b328a79a04cb4a Mon Sep 17 00:00:00 2001 From: Daan Asscheman Date: Mon, 13 May 2024 11:55:47 +0200 Subject: [PATCH] Apache User permission issues. --- docker/backend.dockerfile | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/docker/backend.dockerfile b/docker/backend.dockerfile index dd0940e..a550779 100644 --- a/docker/backend.dockerfile +++ b/docker/backend.dockerfile @@ -22,9 +22,9 @@ 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/bin/apache2-foreground +RUN setcap 'cap_net_bind_service=+ep' /usr/sbin/apache2 RUN chown -R www-data:www-data /var/log/apache2 -RUN chown -R www-data:www-data /usr/local/bin/apache2-foreground +# RUN chown -R www-data:www-data /usr/local/bin/apache2-foreground # install additional PHP extensions RUN docker-php-ext-install pdo_mysql mysqli soap zip gd