Skip to content

Commit

Permalink
Apache User permission issues.
Browse files Browse the repository at this point in the history
  • Loading branch information
dasscheman committed May 13, 2024
1 parent 6895617 commit 56b04c5
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions docker/backend.dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 56b04c5

Please sign in to comment.